|
Download
|
|
import mx.transitions.Tween;
import mx.transitions.easing.*;
var xScaleT:Tween = new Tween(my_mc, "_xscale", Strong.easeOut, 0,
100, 6, true);
var yScaleT:Tween = new Tween(my_mc, "_yscale", Strong.easeOut, 0,
100, 6, true); |
Note: Press
the "refresh" button in the browser to play the animation
again. |
The tween transition class is imported.
import
mx.transitions.Tween;
All the easing transitions are imported to the
........
import mx.transitions.easing.*;
A new tween is contructed named "xScale" and defined using the tween class syntax:
Tween (object name, property, ease class, ,,,).
var xScaleT:Tween = new Tween(my_mc, "_xscale",
Strong.easeOut, 0, 100, 6, true);
A similar tween in contructed to control scaling in the y dimention.
var yScaleT:Tween = new Tween(my_mc, "_yscale",
Strong.easeOut, 0, 100, 6, true);
|