今天,一个简单的传参,搞了大半天。一直在<noscript>加参数,怎么试都没用,Flash原来默认调用的是JS段:<script language="JavaScript" type="text/javascript">。
AS2源代码:
_root.aaa或者this.aaa
HTML源代码:
<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '500',
'height', '280',
'src', 'Record',
'quality', 'high',
'pluginspage', 'http://www.adobe.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'Record',
'bgcolor', '#ffffff',
'name', 'Record',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'Record',
'flashvars', 'aaa=aaa',
'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="500" height="280" id="Record" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="Record.swf?aaa=aaa" />
<param name="quality" value="high" />
<param name="flashvars” value="aaa=aaa″ />
<param name="bgcolor" value="#ffffff" />
<embed src="Record.swf?aaa=aaa" flashvars="aaa=aaa" quality="high" bgcolor="#ffffff" width="500" height="280" name="Record" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
</noscript>
《AS2中Flash传参问题》上有1条评论