Hi,
I’m learning and I’m trying to build a xml picture loader function to display 10 pixs from an xml files on my stage.
This script does it well, all my pictures are one on another, and the problem I got is that it seems I can’t target only one picture to change its alpha to 1, I guess I’m messing with loader instead of movieclip objects or so on…I dont know really. can you help me ?
In my callFirst function, I d’like this to be working :
Tweener.addTween(tb_fullmag[0], {alpha:1, time:0.25, transition:"linear"});
private function loadCovers():void {
myXMLLoader.load(new URLRequest("xml/covers.xml"));
myXMLLoader.addEventListener(Event.COMPLETE, processXML);
}
private function processXML(e:Event):void {
var myXML:XML = new XML(e.target.data);
my_images = myXML.IMAGE;
my_total = my_images.length();
for (var i:Number = 0; i < my_total; i++) {
var cover_url = my_images*.@FULL;
tb_fullmag.push(["mag"+i]);
loader.load(new URLRequest(cover_url));
loader.alpha = 0;
globalContainer.addChild(loader);
loader.name = "loader"+i;
trace(loader.name);
loader.x = 100;
loader.y = 60;
}
callFirst();
}
Many thanks !