3 Replies Latest reply on Jan 11, 2010 10:28 PM by kglad

    MovieClip: Fade Out then Fade In

    Mr Playdo

      I need to produce an image gallery which when a thumbnail is pressed it loads a new image, fades out the previous image then fades in the new one.
      I have it fading in but I don't know how to fade the previous image out before.


      Here is my code so far:

      import mx.transitions.Tween;
      import mx.transitions.easing.*;

      var imageLoader:MovieClipLoader = new MovieClipLoader() ;
      var imageListener:Object = new Object () ;

      imageListener.onLoadInit = function() {
             var fadeIn:Tween = new Tween(holderMain.holderImage, "_alpha", Regular.easeIn, 0, 100, 60, false);

      holderMain.holderButton.button1.onRelease = function() {

      holderMain.holderButton.button2.onRelease = function() {


      Does someone understand how to do this?