Jump to content
Search Community

XMLLoader not Loading nodes when in LoaderMax

reyco1 test
Moderator Tag

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

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