Hi guys!
Trying to remove all instances of the thumbLoader, but since I can´t use getChildByName, I don´t know how to do it!
Any ideas?
for (var n:int = 0; n < images.length(); n++)
{
if (images[n].attribute("source") == event.target.name)
{
var thumbList = images.@source[n].parent().parent().image;
for (var o:int = 0; o < thumbList.@thumb.length(); o++)
{
thumbLoader = new Loader();
thumbLoader.load(new URLRequest(thumbList.@thumb[o]));
thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbHandler);
thumbLoader.x = o * 175 + 140;
thumbLoader.y = 590;
addChild(thumbLoader);
thumbLoader.name = thumbList.@source[o];
}
}
}
function thumbHandler(event:Event):void
{
fadeTween=new Tween(event.target.content,"alpha",None.easeNone,0,1,1,true);
}
It would be even better if I could use the Tweenclass to fade them out before removing them, but that´s overkill for now, but yes, would be nice
Thanks in advance
/rundevo