Click to See Complete Forum and Search --> : flash menu & inline frame *need help*


shane_bokhari
07-27-2003, 10:21 AM
hi ppl
i have a flash menu on my page and an inline frame. i want the page in the inline frame to change when i click a button in the flash menu. plz tell me how??? thanx...

Khalid Ali
07-27-2003, 01:56 PM
I think in the falsh's getURL method you can set a target

webHeretic
07-27-2003, 09:03 PM
Here's one way to skin this cat:

In your .fla/.swf, place the following code in a button or movieClip:

on(release){
getURL("javascript:loadIFrame(myURL)");
}

In your javascript, place the loadIFrame function. I have hardcoaded yahoo as the new URL but you could just as easily have passed the URL to the function from Flash using the myURL parameter.

<script language="JavaScript1.2">
function loadIFrame(myURL) {
self.frames["inside_frame"].location="http://www.yahoo.com"; }

I got this to work. If you need any more help or clarification, please let me know. I prefer using fsCommand instead of getURL for many reasons but if you aren't doing some heavy javascripting with onBeforeUnload etc/, this should work for you.

bjharrington
06-15-2007, 05:51 PM
If I wanted to have the URL passed from flash, how would I set up the javascript?

Thanks,
BJ Harrington