XMLLoader Class 3.0
Enjoyed this Post?
Subscribe to our RSS Feed, Follow us on Twitter or simply recommend us to friends and colleagues!
By Clemente Gomez
Rollover to read this author's bio or click through to see a full list of posts by this author.
Hello!
You can grab source files and bonus tutorials from the members area.
Premium Members
Source Files, Bonus Tutorials & More for all relevant Tuts+ sites in one subscription. Join Now
Hello!
Source Files, Bonus Tutorials & More for all relevant Tuts+ sites in one subscription
Facebook Graph API Development with Flash
Follow Activetuts+ editor Michael James Williams as he walks you through integrating Flash with Facebook! Learn to develop apps for the Facebook website and harness the Graph API in your external projects.
Follow Activetuts+ and Tuts+ on Twitter
- Coding Tricks of Game Developers: http://t.co/frHYZmX2
- @martinemmert oh wow! that's awesome
- ☆ Build an HTML5 MP3 Player With SoundManager 2 – Tuts+ Premium http://t.co/I8nhoyLQ
- ☆ Circular Motion in AS3: Make One Moving Object Orbit Another http://t.co/daRtMbCd
Join our newsletter!

Gughi Fassino Photojournalism - More
Active Basix
Just getting started? Start with our basix tutorials on the fundamentals. View All Basix Tutorials
Create a Tutorial, Get Paid!
Have something to teach the world? Want to earn money doing it? Tutorials, screencasts, and articles published here on Activetuts+ are largely contributed by readers just like you! We'll pay you great money for good content. Find Out More









XML Photography Template V2 only $40.00
Would be cool looks how it’s works
Thanks
Good one, Clemente! Thanks for contributing!
@vlasnn: you need to try the class itself to see how it works. Pretty handy though:)
@Vlasnn Sparky is correct, it isn’t a visual class. Stay tuned though, I will have a screencast soon to explain how to use it and its features.
@Sparky Thanks again
Hmmm…. Interesting. Gonna check it later!
I’ve noticed when I use this class online it’s having issues loading multiple xml files at once. Any updates? Thank you.
What kind of issues are you having? Email me at me [at] kreativeking.com. There is an update coming soon in the next coming weeks.
Hi iam trying to call the XMLloader class from a flash file. Here the example:
import flash.display.*;
import flash.events.*;
var xl:XMLLoader;
var array:Array;
xl = new XMLLoader();
array = new Array();
xl.addEventListener(Event.COMPLETE, loaded);
xl.addEventListener(ProgressEvent.PROGRESS, loading);
xl.loadXML(["http://flashden.net/feeds/user_item_comments/cg219.atom", "http://feeds2.feedburner.com/kreativeking?format=xml"], ["xml1", "xml2"], false);
function loaded(e:Event):void {
trace(e.target.data["xml1"]);
}
function loading(e:ProgressEvent):void {
trace(e.target.ratioLoaded);
}
I get this error:
xl.loadXML(["http://flashden.net/feeds/user_item_comments/cg219.atom", "http://feeds2.feedburner.com/kreativeking?format=xml"], ["xml1", "xml2"], false);
1137: Incorrect number of arguments. Expected no more than 2.
Is there something I am doing wrong. please let me know.
Thanx
yup, You’re making a mistake there:
loadXML() method uses 2 arguments only – loadXML($url:Array, $names:Array)
You’ve mixed it up with class constructor arguments –
XMLLoader([$url:Array, $cache:Boolean, $names:Array, $skipErrors:Boolean])
i’ve just read the attached example, which misslead u..
@author:
fix the attached sample code in main class file
i wonder what this class needs and what will return.. please post a sample how can i detect file is loaded and ready to go..