flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Moore" <Jason.Mo...@harksolutions.co.uk>
Subject RE: Air iOS app - Blank white screen
Date Fri, 28 Mar 2014 09:20:45 GMT
This works (tested on iPad3, adhoc package)... though there may be
better ways..

...
this._swfurl = new URLRequest("my.swf");
this._loader = new Loader();
this._loader.load( new URLRequest("my.swf") , new LoaderContext(false,
ApplicationDomain.currentDomain, null) );
this._loader.contentLoaderInfo.addEventListener(Event.COMPLETE,this.show
Swf);
....

private function showSwf(event:Event):void
{
	var container:UIComponent = new UIComponent();
	container.addChild(this._loader);
	this.addElement(container);
}
...

Note the UIComponent was the only way I could find to add the loader to
the display.

J :)

Mime
View raw message