AS3:
var param:Object = root.loaderInfo.parameters; if(param["num"]!=null) { requestNum =param["num"]; }
HTML:
<embed src="char.swf" flashvars="num=90" allowfullscreen="true" quality="high" width="258" height="156" wmode="transparent" align="middle" allowscriptaccess="always" type="application/x-shockwave-flash"></embed>
关键地方:
flashvars="num=90"
也可以传多个参数
flashvars="num=90&sex=男" 上面AS代码添加 param["sex"] 就好了