veo
02-08-2008, 03:41 PM
For some reason my flashvars for a url are returning undefined.
The basic script is this:
var logoURL:String; // will be assigned via flashvars
logo_mc.onPress = function(){getURL(logoURL);}
if i change the var declaration to a value, it works. If I don't, it returns undefined. So I know that the code is right. I have added the flash vars in the param name as well in the embed. Any Ideas? Below is the script in the html that has the flash content.
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','800','heigh t','353','src','home_flash2','quality','high','plu ginspage','http://www.macromedia.com/go/getflashplayer','movie','home_flash2' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="800" height="353">
<param name="movie" value="home_flash2.swf" />
<param name="quality" value="high" />
<param name="FlashVars" value="logoURL=http://google.com" />
<embed src="home_flash2.swf" FlashVars="logoURL=http://google.com" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="353"></embed>
</object></noscript>
The basic script is this:
var logoURL:String; // will be assigned via flashvars
logo_mc.onPress = function(){getURL(logoURL);}
if i change the var declaration to a value, it works. If I don't, it returns undefined. So I know that the code is right. I have added the flash vars in the param name as well in the embed. Any Ideas? Below is the script in the html that has the flash content.
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','800','heigh t','353','src','home_flash2','quality','high','plu ginspage','http://www.macromedia.com/go/getflashplayer','movie','home_flash2' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="800" height="353">
<param name="movie" value="home_flash2.swf" />
<param name="quality" value="high" />
<param name="FlashVars" value="logoURL=http://google.com" />
<embed src="home_flash2.swf" FlashVars="logoURL=http://google.com" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="353"></embed>
</object></noscript>