Jump to content
Search Community

SWFLoader - classes and children

buzz test
Moderator Tag

Recommended Posts

I am using SWFLoader to load a SWF. This swf has AS3 code for its main Document Class which implements a known interface. I want to get a reference to this main document instance, that is now instantiated and running once the SWF is loaded, and call methods on this interface. I do not want to create a new one, I want a reference to the one that is already running.

 

I understand how to use getClass to get access to a defined symbol in the swf and create a new instance.

 

I understand how to use getSWFChild to get access to one of the display objects that's already on the root.

 

But how do I get access to the whole main document class?

 

Sorry, I am new to flash and feel like I am finding my way in the dark, so this may not make sense. Perhaps there is something else I am looking for?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...