Featured FLA
» Author: Nick Kouvaris
» Title: Znax
» Description: Znax is a board game. Click 4 tiles of the same color and form squares as big as you can. You will erase all the tiles inside the square and collect points. Get maximum score if you make a square with game edges.
» More by:Nick Kouvaris
Featured Site
» Author Agence WOP Digital Agency
» Title: Electricdrum
» Description: French WOP Agency, 3D websites, Flash (Papervision, Away 3D), event or institutional projects. The agency operates on all digital projects: consulting, design, graphic design, development, online communication. The WOP agency follows you on the implementation of original, creative and optimized digital projects.
Loading the pictures or objects from an XML file
So here is the heart of all of this. You will need to create a simple xml file with the “pointers” to your picture locations.
XML.prototype.ignoreWhite = true;
//ignores the white bit bellow the picture
load_xml= function()
//calls a function that loads xml files
{
var myXML = new XML();
//instantiates the space for a xml variable
myXML.load("pointers.xml");
//loads a xml file called pointers.xml
myXML.onLoad = function(success)
{
if(success)
{
read_xml(this);
load_pictures(0);
return;
}
//in case of success loading flash will load to your picture array pictures stored where the
//pointers point to, so where are they? That’s what the xml file will tell flash
trace("error!");
}
}
//else it just keeps an error log to know what happened.