Hey!
Could use some help here. Im trying to do some function that displays three images on a row.
I can load those via MovieClipLoader class and all that stuff. But the problem is I want them to fade in, one after one. This is my code so far:
When starting this function I write showPicture(1), showPicture(2) and showPicture(3), but this fades in all of the pics at the same time. Anyone got a solution?
function showPicture(i:Number):Void {
var mcLoader:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
var pictureFadeInTween:Tween = new Tween(target_mc, "_alpha", mx.transitions.easing.Regular.easeOut, 0, 100, 3, true);
};
mcLoader.addListener(mclListener);
mcLoader.loadClip("/bilder/fax"+i+".jpg","_root.sida3_huvudmeny_mc.bildvisare_mc.bildvisare_"+i);
}