Jump to content
Search Community

LoaderMax and custom loaded types

penny test
Moderator Tag

Recommended Posts

Hi,

 

what is the flow of writing own loaders? For example i would like to have a module loader - all my modules implement IModule interface, and i would like to have a property returning raw content casted to that interface.

Link to comment
Share on other sites

Sure, you should be able to simply cast the rawContent to what you need. And notice that in SWFLoader, there's a getSWFChild() method that will find a DisplayObject on the root of the swf by name. So you can just drop your assets onto the root level of a swf, name them, then subload that swf and do myLoader.getSWFChild("myObjectName") to snag one of the objects by name.

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...