PDA

View Full Version : mx2004 Scaling: pixels or percent?


rockjock04
10-27-2003, 01:58 PM
I'm trying to do a very simple resize.

on(release){
_root.box._xscale=50;}

assume the above code has no syntax error, does this render me a movie clip that is 50 pixels wide, or 50% of it's original size?

littleRichard
10-27-2003, 06:16 PM
...percent

you can use _width and _height to set the dimensions in pixels.

farafiro
10-28-2003, 02:40 AM
trace(box._xscale+" _ "+box._width)
on(release){
_root.box._xscale=50;
trace(box._xscale+" _ "+box._width)
}