Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-12-2003, 06:58 PM   #1
vcuchris
Registered User
 
Join Date: Feb 2003
Location: Richmond, VA
Posts: 68
Send a message via AIM to vcuchris
Question targeting external html frames from mx

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
vcuchris is offline   Reply With Quote
Old 03-12-2003, 07:11 PM   #2
oldnewbie
Banned by AS.org Staff
 
Join Date: Mar 2002
Posts: 10,533
Default

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.
oldnewbie is offline   Reply With Quote
Old 03-12-2003, 07:42 PM   #3
vcuchris
Registered User
 
Join Date: Feb 2003
Location: Richmond, VA
Posts: 68
Send a message via AIM to vcuchris
Angry still no luck

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.
vcuchris is offline   Reply With Quote
Old 03-12-2003, 08:30 PM   #4
oldnewbie
Banned by AS.org Staff
 
Join Date: Mar 2002
Posts: 10,533
Default

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!
oldnewbie is offline   Reply With Quote
Old 03-12-2003, 09:21 PM   #5
vcuchris
Registered User
 
Join Date: Feb 2003
Location: Richmond, VA
Posts: 68
Send a message via AIM to vcuchris
Talking Oooooooooooooooohhhhh.

Got it. Thanks.

.c
vcuchris is offline   Reply With Quote
Old 04-12-2003, 01:38 AM   #6
3create
Registered User
 
Join Date: Apr 2003
Posts: 6
Default

This forum is the greatest... Thanks for the info... Even months after this was posted
3create is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:52 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.