Ipad不会从As3加载本地SWF文件

时间:2023-02-06 12:44:39

I have 2 SWF files that is inside the app, i packeged it with AIR 14.0 to an IPA, it is just an image of a loading screen, but it won't load, when i publish it to test on my ipad.

我有2个SWF文件在应用程序内,我用AIR 14.0打包到IPA,它只是一个加载屏幕的图像,但它不会加载,当我发布它在我的ipad上测试。

I am not sure what to do.

我不知道该怎么做。

loader.load(new URLRequest("com/clark/LoadingScreen.swf"));

        loader.contentLoaderInfo.addEventListener(Event.COMPLETE,swfIn);

        e.target.loader.content.width = stage.stageWidth/2;
                e.target.loader.content.scaleY = e.target.loader.content.scaleX;
        e.target.loader.content.x = (stage.width/2)-(e.target.loader.content.width/2);
        e.target.loader.content.y = (stage.height/2)-(e.target.loader.content.height*1.5);

        addChild(loader);

1 个解决方案

#1


1  

here is some information from adobe about this topic http://blogs.adobe.com/airodynamics/2012/11/09/packaging-and-loading-multiple-swfs-in-air-apps-on-ios/

以下是adobe关于此主题的一些信息http://blogs.adobe.com/airodynamics/2012/11/09/packaging-and-loading-multiple-swfs-in-air-apps-on-ios/

#1


1  

here is some information from adobe about this topic http://blogs.adobe.com/airodynamics/2012/11/09/packaging-and-loading-multiple-swfs-in-air-apps-on-ios/

以下是adobe关于此主题的一些信息http://blogs.adobe.com/airodynamics/2012/11/09/packaging-and-loading-multiple-swfs-in-air-apps-on-ios/