Jump to content
GreenSock

reyco1

XMLLoader not Loading nodes when in LoaderMax

Recommended Posts

Hi,

 

Here we go:

 

I have an XML that has a bunch of loader nodes:

 

<mdiGame>
<mdiAssets>
 <MP3Loader autoPlay="false" load="true" id="bigWin"   url="assets/sounds/Big WIn.mp3" />
 <MP3Loader autoPlay="false" load="true" id="letterNoMatch"  url="assets/sounds/Letter No Match.mp3" />
 <MP3Loader autoPlay="false" load="true" id="letterPickUp"  url="assets/sounds/Letter Pickup.mp3" />
 <MP3Loader autoPlay="false" load="true" id="letterPlace"  url="assets/sounds/Letter Place.mp3" />
 <MP3Loader autoPlay="false" load="true" id="matchWord"   url="assets/sounds/Match Word.mp3" />
 <MP3Loader autoPlay="false" load="true" id="background"  url="assets/sounds/Quantum_Jazz_-_03_-_Jingle_Jazz.mp3" />
</mdiAssets>
</mdiGame>

 

That xml is being loaded within a LoaderMax instance along side other elements:

 

var gameXmlLoader:XMLLoader = new XMLLoader(gameXmlPath, {name:"gameXml"});
  _assetLoader.append( gameXmlLoader );
  gameXmlLoader = null;

  _assetLoader.load();

 

My problem is that the assets in teh xml are not being loaded along with the xml itself... Is that how its supposed to work?

Link to comment
Share on other sites

Did you activate the MP3Loader first so that XMLLoader could recognize those?

 

LoaderMax.activate([MP3Loader]);

  • Like 1
Link to comment
Share on other sites

YOU ROCK!!!! That was the problem :)

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