页面部分:
flash部分ActionScript代码:
var varName:String;
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
for (varName in paramObj) {
myFlashVar = String(paramObj[varName]);
}
var myFlashVar:String;
var url=myFlashVar;
var myReq:URLRequest=new URLRequest(url);
var pic:Loader=new Loader();
pic.load(myReq);
addChild(pic);