MovieClip.sizeTo() , TextField.sizeTo()

Availability

Flash Player 6.

Usage

my_mc.sizeTo(size, seconds, animtype, delay, callback, extra1, extra2)

Parameters

size A number representing both _width and _height (as a pixel value)

Optionally you may now pass a string for relative value (like "-20" to end tween at 20 less than existing size).

Other parameters follow the tween() method.

Returns

Nothing.

Description

Shortcut method, following commands are identical (scaling my_mc to 250 pixels width & height in 0.5 seconds):

my_mc.sizeto(50,0.5);
my_mc.tween(["_width","_height"],[250,250],0.5);