# My flash vars not working. bleh

**URL:** <https://forum.kirupa.com/t/my-flash-vars-not-working-bleh/286857>\
**Category:** Uncategorized\
**Created:** [April 22, 2009, 1:23am UTC](https://forum.kirupa.com/t/my-flash-vars-not-working-bleh/286857 "2009-04-22T01:23:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeJazzHot](https://avatars.discourse-cdn.com/v4/letter/l/9dc877/32.png) [@LeJazzHot](https://forum.kirupa.com/u/LeJazzHot)\
**Post date:** [April 22, 2009, 1:23am UTC](https://forum.kirupa.com/t/my-flash-vars-not-working-bleh/286857/1 "2009-04-22T01:23:55Z")

</div>

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:

```auto
var marker:String;

if (marker == null) {
    gotoAndPlay ("intro")
}
else {
gotoAndPlay (marker)
}

```

My index page:

```auto
<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:

```auto
<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
