Air app works on Android, wont start when republished for iPad
Hi,
I am using Flash Professional CS5.5 on Windows.
I am looking to convert an existing set of published SWF files and MP3 files and wrap them up in a small Air app to work on mobile devices. I took those SWFs and MP3s and created a new Air app project for Android and published it and it seems to work just fine. For your reference, I just had the Air app start up the first SWF by using Loader and URLRequest to load in the SWF that was bundled into the app. The code I used to do this is:
var swfLoader:Loader = new Loader();
addChild(swfLoader);
var bgURL:URLRequest = new URLRequest("0001/myswf.swf");
swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadProdComplete);
swfLoader.load(bgURL);
function loadProdComplete(e:Event):void {
trace("file loaded");
}
Next, I tried the exact same thing for an iPad: I created a new Air app for iOS, loaded my certificate and mobile provisioning profile, copied the same 8 lines of code as above and included my SWFs and MP3s.
I published, used iTunes on my Mac to sync it, but no go. I can get a very simple Air app running on iOS that does nothing but display some graphics, but I seem to be stuck with loading complex SWFs.
Has anyone done this before?
Thanks,
Bob