I have a bunch of thumbnails being added to a container and they tween their alphas from 0 to 1 when they are added, but sometimes they dont all fade in completely - some will show up very light, as if they got stuck with a low alpha during the tween.
I have seen this a few times before but never knew what the problem was.
help?
here’s the code (in that area)
var thumbTween:Tween;
function callThumbs():void{
for (var i:Number = 0; i < my_total; i++){
var my_project = my_images*.@Project;
var my_imageNumber = my_images*.@imageNumber;
var thumb_url = my_images*.@THUMB;;
var thumb_loader = new Loader();
thumb_loader.load(new URLRequest(thumb_url));
thumb_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
thumb_loader.x = (my_thumb_width+2)(my_project-1);
thumb_loader.y = (my_thumb_height+2)(my_imageNumber-1);
}
}
function thumbLoaded(e:Event):void{
var my_thumb:Loader = Loader(e.currentTarget.loader);
my_thumb.alpha = 0;
container_mc.addChild(my_thumb);
thumbTween = new Tween(my_thumb, “alpha”, None.easeNone, 0, 1, 1, true);
}