I need the number of images loaded so I can calculate the length of the parent imageholder holder the will be pushed to. I have tried all kinds of ways of tracing.
trace(event.target.content as XML )
race((event.target.content as XML).data.LoaderMax.ImageLoader.length())
trace((event.target.content as XML).data.LoaderMax.children().length())
his gave me a series of "null"s, but they do match the correct number of images loaded.
how can I get a number ? and can I pass that number ?
function imageCompleteHandler(event:LoaderEvent):void
{
var loadedImage:ContentDisplay = event.target.content as ContentDisplay;
loadedImage.alpha = 0;
trace(event.target.content as XML )
{
TweenLite.to(loadedImage, 5, {alpha:1});
};
galleryArr.push(loadedImage);
}