Ok I have a problem, in that my flash wont do what I want it to.
I would like to host a swf file on my server, and have my users able to embed it in their web pages (on their own servers). I would like a variable to be passed through to the flash file from the embed code. At the moment I have tried both query string and FlashVars and neither seems to be working.
This is the embed code that I am using at the moment:
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="680" height="225">
<param name="movie" value="http://urlwithheld.com/flashbanners/680x225_coverflow.swf" />
<param name="FlashVars" value="trackingCode=http://ww2.urlwithheld.com/track/877338/dvd" />
<param name="allowfullscreen" value="false" />
<param name="allowScriptAccess" value="always" />
<param name="quality" value="high" />
<param name="menu" value="false" />
<!--[if !IE]> <-->
<object
data="http://urlwithheld.com/flashbanners/680x225_coverflow.swf"
width="680"
height="225"
type="application/x-shockwave-flash">
<param name="FlashVars" value="trackingCode=http://ww2.urlwithheld.com/track/877338/dvd" />
<param name="allowfullscreen" value="false" />
<param name="allowScriptAccess" value="always" />
<param name="quality" value="high" />
<param name="menu" value="false" />
<param name="pluginurl" value="http://www.adobe.com/go/getflashplayer" />FAIL (the browser should render some flash content, not this).
</object>
<!--> <![endif]-->
</object>
Now this doesn’t work. It does however work when I change the path of the swf to one located on my local machine, then I get the trackingCode variable passed into flash fine. But off a different server no variable at all is being passed to Flash.
Am I going about this the wrong way? I’m attempting to access the variable in actionscript using _level0.trackingCode
Thanks in advance for any help/discussion on this.