PDA

View Full Version : use actionscript to edit flash movie size



McKingnl
April 12th, 2002, 06:56 AM
Hello,

I really need to use actionscript to edit my movie size.
i have a movie with the dimensions X=30 Y=30.

now i can use _xscale and _ysacale to edit the but when i load the swf file in a HTML page with for example a width=500
and height=200. the movie is scaled as a square. because it's initial size is 30x30.

how can i use actionscript / javascript to edit the size of the movie?

sinfiniti
April 12th, 2002, 11:33 AM
if you place it's center in the upper left corner you can just put this in it's timeline:
_x = 0;
_y = 0;
_width = 500;
_height = 200;

:)
jeremy