Hello,
I’ve read the tutorials and posts at Adobe but can’t get this to work. My url passes this to the page with my.swf movie:
http://www.etc/myswf.html?var1=3&var2=A
var1 and var 2 are set depending on the button pressed on the previous page.
This is what I have for the code on the page with my.swf - but it doesn’t work. Any suggestions?
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
html body etc ...
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '800',
'height', '600',
'src', 'myswf',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'myswf',
'bgcolor', '#ffcc00',
'name', 'myswf',
'menu', 'true',
'allowScriptAccess','sameDomain',
'movie', 'myswf',
'FlashVars', 'var1=var1&var2=var2',
'salign', ''
); //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=8,0,0,0" width="800" height="600" id="myswf" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="myswf.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffcc00" />
<param name="FlashVars" value="var1=var1&var2=var2">
<embed src="my.swf" FlashVars="var1=var1&var2=var2" quality="high" bgcolor="#ffcc00" width="800" height="600" name="myswf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
I have “var1=var1&var2=var2” this way because in my.fla movie I pick up var1 = var1 from the URL and var2 = var2.
Thanks!
Charles