PDA

View Full Version : targeting external html frames from mx


vcuchris
03-12-2003, 06:58 PM
I've got a frameset composed of two frames. The top is to me a menu bar and remain static while the user is on the site, the bottom will react to menu selections driven by a .swf that i've got embedded in the top frame. How do i target the bottom frame (A different html file) from my .swf so that when a menu selection is made from the top, the actual content displays in the bottom frame?

thanks.

.c

oldnewbie
03-12-2003, 07:11 PM
on(release){
getURL("http://www.yourserver.com/your.html", "main_frame");
}

Or...

on(release){
getURL("http://www.yourserver.com/your.swf", "main_frame");
}


Replace "main_frame" by your bottom frame's name in the frameset.

vcuchris
03-12-2003, 07:42 PM
That was actually one of the first things I tried, but still no success. I've tried the following:

on (release) {
getURL("http://www.paddleva.com", "htmlhome");
}

and

on (release) {
getURL("http://www.paddleva.com", "htmlhome.htm");
}

"htmlhome" is in the same directory as the the invoking html file which contains the embedded swf.

oldnewbie
03-12-2003, 08:30 PM
You have to give names to each frame in the frameset. Assuming your top frame was named "top_frame" and your other frame "main_frame", you would use...

on(release){
getURL("http://www.paddleva.com/htmlhome.htm", "main_frame");
}

The second parameter of getURL, in this case, is the name of the targeted frame in the frameset, and has nothing to do with which html will be used.

Read up on naming framesets!

vcuchris
03-12-2003, 09:21 PM
Got it. Thanks.

.c

3create
04-12-2003, 01:38 AM
This forum is the greatest... Thanks for the info... Even months after this was posted