# Passing variable, makes swf invisible?

**URL:** https://forum.kirupa.com/t/passing-variable-makes-swf-invisible/120350
**Category:** Uncategorized
**Created:** [August 23, 2004, 3:39pm UTC](https://forum.kirupa.com/t/passing-variable-makes-swf-invisible/120350 "2004-08-23T15:39:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![SoloDesignz](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@SoloDesignz](https://forum.kirupa.com/u/SoloDesignz)
#### Post date: [August 23, 2004, 3:39pm UTC](https://forum.kirupa.com/t/passing-variable-makes-swf-invisible/120350/1 "2004-08-23T15:39:48Z")

</div>

Hey…

Im passing a variable to the .swf file on an html page

/file.swf?variable=a

then using…  
[AS]  
if(variable != “a”){  
gotoAndStop(2);  
}  
[/AS]  
to goto frame 2, if the variable is not “a”

This works fine when i view just the .swf file, but when i view it in IE, nothing shows up, I cant even right click it…

Has anyone had a similar problem??

Thanks  
-Solo

---

<div class="post-metadata">

### Author: ![DieterStruik](https://avatars.discourse-cdn.com/v4/letter/d/439d5e/32.png) [@DieterStruik](https://forum.kirupa.com/u/DieterStruik)
#### Post date: [August 23, 2004, 5:35pm UTC](https://forum.kirupa.com/t/passing-variable-makes-swf-invisible/120350/2 "2004-08-23T17:35:14Z")

</div>

I think this happened to me before,  
Don’t know why this happens only that I send vars through a different way.  
Within the \<object\>…\</object\> tag you got some params. Add the following param:  
\<param name=“FlashVars” value="&var1=value1&var2=value2&" /\>  
and in the following \<embed\> add this attribute:  
FlashVars="&var1=value1&var2=value2&"  
To make things work in firefox mozilla. So skip the .swf?variable=a and do it my way.  
Check to be sure the \_root.varname to see if the vars are loaded properly before building ahead.

gr, Dieter
