Featured FLA
» Author: Bugra Ozden
» Title: Skatalog v9 - product catalog
» Description: Create your product catalog easly and publish on your website or Create your image gallery, documents list, portfolio. Fully XML Driven
» More by Bugra Ozden
Featured Site
» Posted in the Flash Kit Links section
» Title: Creative DW Image Show PRO
» Description: Creative DW Image Show PRO is a Dreamweaver extension which enables the user to create multimedia presentations. It combines the features of the popular Creative DW Image Show with the ability to add professional text effects to slides (similar to After Effects). The product is very customizable: the user can choose the duration of the transition effects, the slide motion start and end position, zoom and panning type for both images and texts.
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.