flash接收外部参数(SWFobject)

var str:String = Application.application.parameters.myparam;

在js中这样写
var swfurl = "myswf.swf?progId=" + idVal;
    swfobject.embedSWF(swfurl, "repchartdiv", "1024", "500", "9.0.0", "expressInstall.swf");

也可以写成

var attributes = {
      "progId": idVal
    };
    
    swfobject.embedSWF("myswf.swf", "repchartdiv", "1024", "500", "9.0.0", "expressInstall.swf", null, null, attributes);



你可能感兴趣的:(flash接收外部参数(SWFobject))