我想做的事:获取 Flash Var,将 flashVar 设置为剪贴板。
html:
<embed src="setClip.swf" FlashVars="res=123" quality="high" TYPE="application/x-shockwave-flash">
动作脚本(3):
function loaderComplete(myEvent:Event)
{
this.flashVars=this.loaderInfo.parameters;
this.flashVarsLoaded=true;
this.useFlashVars();
}
function useFlashVars()
{
aaa.text = myFlashVars.res;
}
var myFlashVars=new Object();
myFlashVars.flashVarsLoaded=false;
myFlashVars.loaderComplete=loaderComplete;
myFlashVars.useFlashVars=useFlashVars;
this.loaderInfo.addEventListener(Event.COMPLETE, myFlashVars.loaderComplete);
aaa
当我打开 html 页面时,“ ”输入中没有文本。获取flash var然后将其插入剪贴板(as1、as2、as3)
的最佳方法是什么(我需要好的示例)?