Quantcast
Channel: Adobe Community : All Content - AIR Development
Viewing all articles
Browse latest Browse all 2954

How to correctly load an external swf file into iosAir app? I'm getting blank screen.

$
0
0

So this code works flawlesly on Air for Android, it even works fine when I test the movie in Flash, but once I export it, I'm getting a blank screen. I made an swf with a square and withotu any code, and flash still fails to load it. It's weird cause everything works fine when I use the interpreter debugging option, but when I switch to standard debugging the blank screen appears on my ipad. I've read somewhere that it's caused by the way flash saves the link to external files. Thus after the file is compiled Flash fails to find the prefiously added files, which results in a blank screen. There's clearly something wrong with how the process of compiling the application.

 

 

Tried this:

 

var Xpos:Number = 0;

var Ypos:Number = 0;

var loader:Loader = new Loader();

 

var link:URLRequest = new URLRequest("Untitled-1.swf");

 

loader.load(link);

addChild(loader);

 

 

And this:

 

var ldr:Loader = new Loader();

ldr.load(new URLRequest("Untitled-1.swf"));

ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded, false, 0, true);

function loaded(event:Event):void {

addChild(event.target.content);

}

 

But nothing works. I'm still getting a blank screen. Is there any way to add the swf file manually into the descriptor file cause flash most likely messes it up? I don't really want to use through command line.


Viewing all articles
Browse latest Browse all 2954

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>