flash接收外部参数(SWFobject)

Posted on 2009-03-21 14:03 Robert Su 阅读(1934) 评论(0)  编辑  收藏
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);




只有注册用户登录后才能发表评论。


网站导航:
 

posts - 103, comments - 104, trackbacks - 0, articles - 5

Copyright © Robert Su