You can set up an xml file something like:
my_images.xml
Code:
<?xml version="1.0" encoding="utf-8" ?>
<images>
<image src="images/img0.jpg">Image One</image>
<image src="images/img1.jpg">Image Two</image>
<image src="images/img2.jpg">Image Three</image>
</images>
Load that into Flash using the method you learned in the tutorial(s) you read:
Code:
var my_xml:XML = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success:Boolean):Void
{
if (success)
{
//do your stuff
}
else //catch error loading xml
}
my_xml.load("my_images.xml");
Inside the onLoad function is where you want to start parsing through the xml nodes and grabbing the src of each:
Code:
var my_imgs_src:Array = [];
for (var i:Number=0;i<my_xml.firstChild.childNodes.length;i++) my_imgs_src.push(my_xml.firstChild.childNodes[i].attributes["src"];
Then load your images into empty movie clips and animate them however you want:
Code:
var mclstnr:Object = new Object();
var mcldr:MovieClipLoader = new MovieClipLoader();
mcldr.addListener(mclstnr);
mclstnr.onLoadInit = function(target_mc:MovieClip):Void
{
//use ._x and ._y to place the loaded picture on the screen
//then launch your animation
//if you want them to all start at exactly the same time, then make a counter,
//and each onLoadInit check for counter completion, if complete then launch animation
}
for (var i:Number=0;i<my_imgs_src.length;i++) mcldr.loadClip(my_imgs_src[i],_root.createEmptyMovieClip("image"+i,_root.getNextHighestDepth()));