Jump to content
Search Community

RequiredWithRoot fails using LoaderMax..

jlressia test
Moderator Tag

Recommended Posts

Hi!

We need to manage sub-loaders when loads SWFs. We was using LoaderMax with the parameter "RequiredWithRoot " but "RequiredWithRoot" fails using LoaderMax but works fine using specifics loaders..

For example..

If I have this structure:

 

A.swf -> Load "B.swf" and "C.swf"

C.swf -> Load "D.swf"

 

If I use specifcs loaders (in this case swfLoader) I get at the end, the Complete event of component "A.swf".

But, If I made the same work using LoaderMax, I get the Complete event of component "A.swf" first and later the rest of events.

 

LoaderMax+SWFLoader.rar - Contains the source code that not works.

SWFLoader.rar - Contains the source code taht works fine.

 

Any help about this issue will be appreciated!

 

Regards

Jose Luis

 

[attachment=0]SWFLoader.rar[/attachment]

[attachment=1]LoaderMax+SWFLoader.rar[/attachment]

Link to comment
Share on other sites

That's because you put the requireWithRoot on the nested loaders instead of on the LoaderMax instance that contains them. It's kinda like they're hidden inside that wrapper so the parent SWFLoader can't find 'em. (kinda - that was an oversimplification). Once you correct that, it works fine :)

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