# Hum... weird problem with passing vars

**URL:** <https://forum.kirupa.com/t/hum-weird-problem-with-passing-vars/166229>\
**Category:** Uncategorized\
**Created:** [October 18, 2005, 8:15am UTC](https://forum.kirupa.com/t/hum-weird-problem-with-passing-vars/166229 "2005-10-18T08:15:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simobk](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@simobk](https://forum.kirupa.com/u/simobk)\
**Post date:** [October 18, 2005, 8:15am UTC](https://forum.kirupa.com/t/hum-weird-problem-with-passing-vars/166229/1 "2005-10-18T08:15:34Z")

</div>

Hi all,

Ok, this is just some plain stupid problem… I’ve done this dozens of times, but I can’t find why it’s not working.

Basically, send a variable to flash called skipAnim.

My HTML :

```auto
 <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="809" height="71" id="header" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="assets/swf/header.swf?skipAnim=<?=$skipAnim?>" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ddceb0" />
<embed src="assets/swf/header.swf?skipAnim=<?=$skipAnim?>" quality="high" bgcolor="#ddceb0" width="809" height="71" name="header" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

```

The $skipAnim variable is generated by my PHP and is set to either ‘skip’ or ‘play’.

Now, here’s the actionScript :

```auto
if (_level0.skipAnim=='skip')
{
gotoAndStop('endAnim');
}

```

As you can see, this is just basic, but I don’t know why, it works perfect on Firefox and Netscape but never executes the gotoAndStop on IE.

You can see it in action at [http://www.marolli.com/tmp/](http://www.marolli.com/tmp/). Click the menu links on the right. The first link sets $skipAnim to ‘play’, and all the others set it to ‘skip’

Any idea on what could be wrong?

Thanks,

Simo
