Hi Kirupa!
I’m using a preloader to load an external SWF then initiating it through its document class using this code:
[FONT="]private[/FONT][FONT="] [COLOR=#7F0055]function[/COLOR] loaderCompleteListener(event : Event) : [COLOR=#7F0055]void[/COLOR] {[/FONT][FONT="][/FONT]
[FONT="][/FONT] [FONT="] [/FONT][FONT="]var[/FONT][FONT="] loaderInfo : LoaderInfo = event.target [COLOR=#7F0055]as[/COLOR] LoaderInfo ; [/FONT][FONT="][/FONT]
[FONT="] [/FONT][FONT="]var[/FONT][FONT="] myMainApp:MyApplicationClass = loaderInfo.content [COLOR=#7F0055]as[/COLOR] MyApplicationClass;[/FONT][FONT="][/FONT]
[FONT="] [/FONT][FONT="]addChild(myMainApp);[/FONT][FONT="][/FONT]
[FONT="] [/FONT][FONT="]myMainApp.initialise();[/FONT][FONT="][/FONT]
[FONT="]}[/FONT][FONT="][/FONT]
The problem i’m getting is that the Flash that is being loaded has a lot of classes exporting on the first frame, which now cannot be accessed, and therefore I get “The definition of base class cannot be found” errors.
How do I ger the items in the library that export to AS accessible by the parent loading SWF.