I thought this would be simple. Then again, my AS knowledge is limited. I have a website that shares one .swf - it’s loaded into every page. I’m using flash vars to make the movie jump to a specific frame depending on the .html page that is loaded. But it’s not working. I’m setting the variable to the frame label I want the .swf to go to.
This is what’s on the first frame of my .swf:
var marker:String;
if (marker == null) {
gotoAndPlay ("intro")
}
else {
gotoAndPlay (marker)
}
My index page:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="900" height="295">
<param name="movie" value="918Final.swf" />
**[COLOR=DarkRed] <param name="FlashVars" VALUE="marker=intro">[/COLOR]**
<embed src="918Final.swf"
**[COLOR=DarkRed] FlashVars="marker=intro" [/COLOR]**
pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="900" height="295"></embed>
</object>
or here’s my “Films” page:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="900" height="295">
<param name="movie" value="918Final.swf" />
**[COLOR=DarkRed] <param name="FlashVars" VALUE="marker=films_now">[/COLOR]**
<param name="quality" value="high" />
<embed src="918Final.swf"
**[COLOR=DarkRed] FlashVars="marker=films_now"[/COLOR]**
quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="900" height="295"></embed>
</object>
On my index page, the movie loads and plays from the beginning (which is great), but when I click over to the “Films” page, the .swf just plays from the beginning again. Any help appreciated.
Thanks,
-LJH