The code works but with an issue. When I load an image it replaces the current one loaded but when I alpha tween the image to zero I see both images fading out on top of each other like the first one is still loaded but underneath the current one. Any body run into this before? :hang:
var imageLoader:Loader;
function loadImage(url:String):void {
// Set properties on my Loader object
imageLoader = new Loader();
imageLoader.load(new URLRequest(url));
imageLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading);
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
}
//loadImage(“largeImages/k1.jpg”);
function imageLoaded(e:Event):void {
// Load Image
}
function imageLoading(e:ProgressEvent):void {
//trace(“loading”);
}
loadImage(“typical.jpg”);