ActionScript 3.0导入swf

时间:2016-02-25 04:37:08

标签: actionscript-3 actionscript

我对进口瑞士法郎有点麻烦。问题是导入的swf具有导出为影片剪辑类的影片剪辑。代码在这里: 导入的swf:

 class myBooks(){

    var myBg:MovieClip = new backGround();
    stage.addChild(myObjects);

和HOLDER flash文件:

    var txt:String = "Project/book2.swf";
    var myLoader:Loader = new Loader();
    var url:URLRequest = new URLRequest(txt); 
    myLoader.load(url); 
    addChild(myLoader);

当我尝试运行时,它显示我这样的错误:

   TypeError: Error #1009 cannot access a property or method of a null object reference at actions::myBooks()

1 个答案:

答案 0 :(得分:0)

尝试以下

url: "/Journal/AccountLookUp.aspx/accountFilter",
contentType: "application/json; charset=utf-8",

希望有帮助