Hey up - I want to move my multiple externally loaded images a little each time they are added to the stage along the x axis via the Loader class.
It all works - But HOW do I access the added graphic synatically, so i can change its x pos?! Ive tried picLoader.x … but that’s the Loader - NOT the image…!!! thanks!!
private function setPics():void
{
for(var i:int = 0; i < xItems; i++)
{
loadImage(xData.xmlData.image*);
}
}
private function loadImage(url:String)
{
picLoader = new Loader();
picLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,addImage);
picLoader.load(new URLRequest(url));
}
private function addImage(e:Event):void
{
addChild(picLoader);
}
:insomniac: