Skip to main content
Inspiring
May 1, 2006
Answered

_scale or _size something...

Hiya!

is there a function to scale objects/mc's ?

like
my_mc.size = 90%;?
This topic is closed to new replies. Start a new post to keep the conversation going.
Bishop_Neo_Correct answer
Participating Frequently
May 1, 2006
You might try using _xscale and _yscale

5 replies

Inspiring
May 3, 2006
David Stiller wrote:
>> my_mc._xscale = 0.7; // scale to 70%
>
> This would make the horizontal scale less than one percent. If you want
> 70%, use this ...
>
> my_mc._xscale = 70;
>
>

And if you want to scale the whole object (both horizontal and vertical,
use:

my_mc._xscale = 70;
my_mc._yscale = 70;
Translate
Inspiring
May 2, 2006
> my_mc._xscale = 0.7; // scale to 70%

This would make the horizontal scale less than one percent. If you want
70%, use this ...

my_mc._xscale = 70;


David
stiller (at) quip (dot) net
Dev essays: http://www.quip.net/blog/
"Luck is the residue of good design."


Translate
Participating Frequently
May 1, 2006
my_mc._xscale = 0.7; // scale to 70%

side note: scaling imported images make it jaggy.
Translate
Inspiring
May 1, 2006
mrmille,

> is there a function to scale objects/mc's ?
>
> like
> my_mc.size = 90%;?

What you're after is not a function, but a property. Check out the
"MovieClip class" entry of the ActionScript Language Reference for your
Owner's Guide on movie clips. All movie clip symbols are instances of the
MovieClip class, which defines their characteristics (properties), things
they can do (methods), and things they can react to (events).


David
stiller (at) quip (dot) net
Dev essays: http://www.quip.net/blog/
"Luck is the residue of good design."


Translate
Bishop_Neo_Correct answer
Participating Frequently
May 1, 2006
You might try using _xscale and _yscale
Translate