1 Reply Latest reply on Jan 27, 2009 12:12 PM by clbeech

    Tweening onto stage and then off

    youngjon
      Hi All,

      I wondered if someone could please help.

      I am trying to create a transition whereby a movieclip tweens onto the stage and stays there for approx. 5 seconds and then tweens off in the opposite direction. And then possibly another movieclip repeats the process. Basically, I have say 3 logo's which I would like to tween onto the stage and then off in turn. I have managed the first tween onto the stage but now cannot figure out the rest.

      I'm using AS2.0

      [code]

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

      TransitionManager.start(img1, {type:Fly, direction:Transition.IN, duration:1, easing:Back.easeInOut, startPoint:6});

      I would appreciate anyones input.

      J.
        • 1. Tweening onto stage and then off
          clbeech Level 3
          if you want to do this repeatedly, then i think you may want to use an array and the Tween class, as well as a setInterval to control the operation of the image 'out' and back in tweening. you will also need to use an event handler of the Tween in order to trigger the next sequence, so It's going to be a bit more complex, more like this: