|
Help with Actionscript in Flash CS3
Hello, I'm using a "class" to animate some text and need the animation to restart every 8 seconds. I'm learning Flash and I can't make the actionscript replay the animation.
Here's the code that I have:
//
//stop();
//
import textTransition;
import mx.transitions.easing.*;
var t:textTransition = new textTransition(yourTextfield, {mode:"line", speed:2000, gap:700, ease:Elastic.easeOut, _yscale:0, _xscale:0, _alpha:100, _x:yourTextfield._width/2, _y:yourTextfield._height/2});
//
//
var t:textTransition = new textTransition(text1);
//At a later time use...
t.restart();
Any help is appreciated.
|