Jump to content
Search Community

LoaderMax without container specified!

thelbc test
Moderator Tag

Recommended Posts

Hi there,

 

I just get my hand into your new tool and so far it works like a charm.

 

I was just wondering what is the best way to add the content of a SWFLoader to stage when I want without specifying any container.

 

 var loader:SWFLoader = new SWFLoader("../deploy/main.swf", {name:"mainSWF"});

 

 

I tried different way but I can't find out how.

 

Cheers,

 

J.

Link to comment
Share on other sites

When you create a SWFLoader (or ImageLoader or VideoLoader), it immediately creates a ContentDisplay object (a Sprite) into which it will put the rawContent that it loads. You can use that ContentDisplay object whenever you want and put it wherever you want using the loader's "content" property. Like:

 

var loader:SWFLoader = new SWFLoader("../deploy/main.swf", {name:"mainSWF"});
addChild(loader.content);

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