Hi,
Just wondering how I could attain a class that is registered to a MovieClip in my SWF’s library when I load that SWF dynamically. I’ll try to explain more clearly.
If I want to create a new instance of an object in my library in this current fla, all I need to do with the MovieClip is right click it in the library and select “linkage…”. Then say “export for actionscript” and give it a class name so I can address that in my code. Say I name the class “person”, I would create the instance in this fla like so
addChild(new person());
That’s fine and dandy. But I want to load this SWF into another fla and access that class. I’ve already figured out how to access the MovieClips themselves when they are on the stage and have an instance name (in this example it’s instance name is person) by doing this (background is a Loader object that has an URLRequest to this SWF):
var person:MovieClip = Object(background.content).person;
But is there a way that I can grab the class of the person MovieClip?
icekube12jr