Part 2 of a picture gallery tutorial.
In order to keep script organized or to re use code, it is common practice to keep XML code on a separate file. Here is how we load it into Flash.
Due to security restrictions XML files are not allowed to be uploaded into my web host, Godaddy. Even so it is possible to download the same file with an TXT extension.
HERE IS THE SOURCE CODE!
// Avraham Saltoun
// solutions at say-web dot com
// FREE to USE, COPY and DISTRIBUTE
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest (“data/XMLData.xml”));
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
function xmlLoaded (event:Event) {
trace (event.target.data);
}






2 Responses to “How to Load XML into Flash from an External File”
Trackbacks/Pingbacks
Do you Have Facebook?…
Lets Be facebook friends I really like this post….
great info…
discover here…