PDA

View Full Version : help with button and motion tween


Walley
03-01-2011, 12:54 AM
lack of help...

Fayence
03-16-2011, 12:08 PM
Wow, that's the shortest question I've ever seen, other than "Bump" (but that had a question preceding it.)

For motion tweens, look up "Tween class".

Use these import statements:

import fl.transitions.Tween;
import fl.transitions.easing.*;

For every property to be tweened, compose a tween like so:

var t1:Tween = new Tween(cog, “x”, Regular.easeInOut, 100, 580, 3, true);

in which the parameters are
1. object to be tweened
2. property
3. easing type
4. starting value
5. ending value
6. duration
7. true if you want duration in seconds, false if you want duration in frames