Jump to content
Search Community

combine XMLManager and LoaderMax

paulr test
Moderator Tag

Recommended Posts

Hello,

 

how is the best way to combine the advantages from the LoaderMax and the XMLManager? In my xml is swf content content to load and for this is the LoaderMax built, but there are no abilities for parsing. The XMLManager needs an url source and i don't see a way to pass the loaded content from XMLLoader. Has anybody experiences to share?

greetings pete

Link to comment
Share on other sites

Frankly, XMLManager isn't all that useful in AS3 because Adobe revamped the way XML works. It natively acts pretty much like arrays and you can access attributes by simply putting "@" before the attribute name, etc. Senocular put together a great article at http://www.senocular.com/flash/tutorial ... page=4#e4x

 

But if you really like the way XMLManager does things, you could certainly still use its xmlToObject() method and/or objectToXML() static methods. Just feed the XML that LoaderMax/XMLLoader loads to those like:

 

var parsed:Object = XMLManager.xmlToObject(loader.content);

 

(after it loads of course)

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