What have I done wrong here? I need a movieClip to fade out, pause, then a new movieClip to fade in.
What I've tried to do is to set the target_MC alpha to 0 and fade out the current mc. Then when the fadeOut has completed to setTimeOut. After this the mcs will swapDepths and the target_MC should fade up to alpha = 0.Code:fullPreloader.onLoadComplete = function() { load_01._visible = false; if (j == 1) { target_MC._alpha = 0; var fadeOut1:Tween = new Tween(fullImage_mc1, "_alpha", Linear.easeIn, 100, 0, 0.5, true); fadeOut.onMotionFinished = function() { setTimeout(display, 350); function display() { fullImage_mc2.swapDepths(target_MC); var fadeIn:Tween = new Tween(target_MC, "_alpha", Linear.easeIn, 0, 100, 0.5, true); } } } else { target_MC._alpha = 0; var fadeOut2:Tween = new Tween(fullImage_mc1, "_alpha", Linear.easeIn, 100, 0, 0.5, true); fadeOut.onMotionFinished = function() { setTimeout(display, 350); function display() { fullImage_mc2.swapDepths(fullImage_mc1); var fadeIn2:Tween = new Tween(target_MC, "_alpha", Linear.easeIn, 0, 100, 0.5, true); } } }
I've attached the flash and xml files. The images were too large.




Reply With Quote