Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash Frame To Frame link 1

Status
Not open for further replies.

killbuzz

Technical User
Mar 21, 2001
103
US
Hi all! I have a flash navigation bar on the lefthandside of my website and i have three Frames in my index.html site. (Top) (leftHandSide) (Center) What i want to do, is have the lefthandside frame with the flash be able to click on the buttons and it send a command to open the center frame up to what that link has without having a popup. Whats the java script for that i have looked everywhere. Im making the site with DreamWeaver

PS the flash on the lefthandside has 5 buttons in it. I need all of them to be able to open the center frame up.

Thanks
 
Wouldn't know about Dreamweaver, but my guess is you can establish a frameset within Dreamweaver the same way I usually do it by hand. Once you're frameset is established, simply target your center or main frame on your Flash buttons with that frame name. If your center frame name is main then use something like this:

on (press){
getURL(" "main");
}

Or...

on (press){
getURL("my_movie.swf", "main");
}

Regards,
new.gif
 
That first example would be:
Code:
on (press){
getURL("[URL unfurl="true"]http://www.yahoo.com/",[/URL] "main");
}
[code]

...Without the extra ";" Tek-tips added on my first example.

Regards,
 [img]http://iquebec.ifrance.com/Francoisgill/new.gif[/img]
 
Ok i have the flash On the side. and i want the center to open when they click the link i put center where main was and it didnt work the side open up isnt there a java script for this i looked on Dream weaver and nothing talks about this..

Thanks also if you wanna idea of what im talking about you can go to and look at it. the link is on the top im changing that and making it on the side where the Picture of the month is.

Thanks again
 
the target like i said is main....or whatever name you have the frame as...the big frame or bottom or right frame is always main unless you change it.
 
i tried that and it opens it in the same frame instead of the center frame i did what oldnewbie said and it still wont work
 
Post the html from Dreamweaver! Or e-mail it to me at oldnewbie@hotmail.com

Regards,
new.gif
 
Yep! Only way to check what you've named your frames in your framset!
new.gif
 
From your html...

<frame name=&quot;topFrame&quot; scrolling=&quot;NO&quot; noresize src=&quot;Top.htm&quot; >
<frameset cols=&quot;187,596&quot; rows=&quot;*&quot;>
<frame src=&quot;Side.htm&quot;>
<frame name=&quot;mainFrame&quot; src=&quot;Center.htm&quot;>


So I gather that your main frame's name would be mainFrame, and that's the name you should be using in your buttons in the side frame.
Code:
on (press){
getURL(&quot;[URL unfurl="true"]http://www.yahoo.com/&quot;,[/URL] &quot;mainFrame&quot;);
}

Or...

on (press){
getURL(&quot;my_movie.swf&quot;, &quot;mainFrame&quot;);
}
Regards,
And might I be blessed with your vote!
new.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top