homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

Reaching home.html with Flash Button

10+ Year Member

Msg#: 446 posted 7:37 pm on Mar 18, 2005 (gmt 0)

Been scratching my head over this one, probably a very simple answer which I have missed:

Have set up a navigation dial for a website using eight flash buttons. 1 of the 8 heads to an outside site, so javascripted it to create a popup window. The other 7 buttons all link to pages within the site, so used relative addresses with simple and straightforward code to open them in the mainframe. Here's an example:

on (release) {
getURL("press.html", "mainFrame");

Nothing revolutionary. And just copied and pasted for all 7 buttons. 6 of the 7 work perfectly. The 7th is my "home" button. I have the home.html file sitting in exactly the same directory as the other .html files, in exactly the same relation to the .fla file. And yet while the "press" button above works perfectly, the "home" button returns a broken link with the same code:

on (release) {
getURL("home.html", "mainFrame");

A html "home" test button I created worked just fine. The home Flash button also works just fine if I change the target to press.html etc., so think its got something to do with the html page. Since "home.html" sets up some frames, thought maybe that was the issue and tried to divert the button to "body.html" instead (which sets up no frames and in fact has very similar code to press.html et.al.). That also returned a broken link. What am I missing? Must be something simple right?

thx for any help.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved