External swf import into Animate/AIR for iOS app
Hi
I am creating apps for AIR for iOS.
I am using external swfs that I am loading into the main app.
In testing on the Mac it worked fine once I started using Loader COntexts and Application Domains for the external swfs.
I also found that where the external swfs shared the same classes they were more likley to clash and I also needed to switch off Automatically declare stage instances in some of the files creating the external swfs.
I had it all working good but now I have published to the iPad it isnt working.
I realised that I could only use ApplicationDomain.currentDomain in AIR for iOS - whereas before I was creating a seperate ApplicationDomain for each Loader context.
Now - just using ApplicationDomain.currentDomain - some of the external swfs load and others dont.
The ones that load ok either:
aren't using external classes (I did the coding on the timeline back in the day) these load fine
or arent sharing any classes from a shared class library.
A typical error I get when trying to load the external swf when using ApplicationDomain.currentDomain
is
ReferenceError: Error #1056: Cannot create property mc1_mc on Main.
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at Main()[/Volumes/PASSPORT815/EY 0-6 Content Devt/Multi Media/EY Superfile/iPad Files/Move/Main.as:127]
Does anyone have any tips as to what is causing this and how to avoid this?
Best
Tommy Banana
