1 Reply Latest reply on Nov 12, 2009 2:19 AM by Sreelash

    detect the transition end

    Videostudio

      Salt
      I have a question,
      how can I detect when the transition ends?
      Thank you.

       

      ES this transition:

      import mx.transitions.*;
      import mx.transitions.easing.*;
      mx.transitions.TransitionManager.start(_root.SerieGranitogres.Superfici,{type:mx.transiti ons.Fade, direction:Transition.OUT, duration:0.5, easing:mx.transitions.easing.Strong.easeOut});

        • 1. Re: detect the transition end
          Sreelash

          Hi,

           

          I don understand what you doing with the following code:

           

          mx.transitions.TransitionManager.start(_root.SerieGranitogres.Superfici,{type:m x.transitions.Fade, direction:Transition.OUT, duration:0.5, easing:mx.transitions.easing.Strong.easeOut});

           

          anyways there is an event "onMotionFinished". The sample code for using "onMotionFinished", I have shown below. Please reply me after trying out this piece of code.

           

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


          var firstTween = new Tween(pic1, "_alpha", Regular.easeIn, 1, 100 , 0.2, true);


          firstTween.onMotionFinished = function(){
              preloader._visible = false;
          }

           

          Thanks and regards,

                                 Sreelash