is there any way to have an external html file with a link on it go to a page with a flash movie on it and go to a specific frame lable or movie?
Thanks,
Aaron
is there any way to have an external html file with a link on it go to a page with a flash movie on it and go to a specific frame lable or movie?
Thanks,
Aaron
Yes it is possible.
you can call your flash movie like this from the HTML page :
http://www.someplace.com/flashMovie.swf?currentFrameVar=4
Now, you need to setup your flash file to react if you send him the variable currentFrameVar. It should look something like this :
// Place it on the first frame of your movie SWF
if(_root.currentFrameVar)
_root.gotoAndStop(parseInt(_root.currentFrameVar));
/* You can pass more variables to your flash movie this way. For
example myMovie.swf?var1=value1&var2=value2&var3=value3
parseInt() function is to make sure we treat the variable as a number,
not a string. If you want to go to a frame label you should remove the
function call.
Read more on this function here :
[http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary621.html](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary621.html)
*/
Hope it helps.
but how would i call from one page(index.html) to another page(about.html) that has the flash peice embeded in it. It seems like the link is just calling the swf file and will open just that filw and not the html page it was embeded in.
THANKS for the reply this did help a ton!!!
Aaron
In the embed tags, when you specify the URL of your movie, you just add the file.swf?var=value there. There are 2 places you need to perform the change in your HTML code.
So the link would be <a href=“http://www.somesite.com/about.htm?file.swf?var=value”> some link to page 2
i am sorry for being so slow but can you give me an example?
Also thanks for helping me out on this! i cant tell how much this has helped me!
Thanks shortcut06!
You’re welcome. It’s not exactly like that. Open the SOURCE of your page, you should see something like that :
[font=Tahoma][size=1]<OBJECT classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0” WIDTH="[color=#0000cc]468[/color]" HEIGHT="[color=#0000cc]60[/color]" id=“name” ALIGN="">[/size][/font]
[font=Tahoma][size=1]<PARAM NAME=movie VALUE="[color=#008000]movie.swf[/color]"> [/size][/font]
[font=Tahoma][size=1]<PARAM NAME=quality VALUE=[color=#0000cc]high[/color]> [/size][/font]
[font=Tahoma][size=1]<PARAM NAME=bgcolor VALUE=[color=#0000cc]#FFFFFF[/color]> [/size][/font]
[font=Tahoma][size=1]<EMBED src="[color=#008000]movie.swf[/color]" quality=high bgcolor=#FFFFFF WIDTH="[color=#0000cc]468[/color]" HEIGHT="[color=#0000cc]60[/color]" NAME=“movie” ALIGN="" TYPE=“application/x-shockwave-flash” PLUGINSPAGE=“http://www.macromedia.com/go/getflashplayer”>[/size][/font]
[font=Tahoma][size=1]</embed> [/size][/font]
[font=Tahoma][size=1]</OBJECT>[/size][/font]
[font=Tahoma][size=1][/size][/font]
[font=Tahoma][size=3]You see src=movie.swf ? and param name=movie value=“movie.swf” (IN GREEN)[/size][/font]
[font=Tahoma][size=3][/size][/font]
[font=Tahoma][size=3]Well change those to :[/size][/font]
[font=Tahoma][size=3][/size][/font]
[font=Tahoma][size=3]src=movie.swf?var=value [/size][/font]
[font=Tahoma][size=3]param name=movie value=“movie.swf?var=value”[/size][/font]
[font=Tahoma][size=3][/size][/font]
[font=Tahoma][size=3]That’s the way to do it.[/size][/font]
:: Copyright KIRUPA 2024 //--