# Set \_xscale and y\_scale direction?

**URL:** <https://forum.kirupa.com/t/set--xscale-and-y-scale-direction/257260>\
**Category:** Uncategorized\
**Created:** [April 11, 2008, 7:38pm UTC](https://forum.kirupa.com/t/set--xscale-and-y-scale-direction/257260 "2008-04-11T19:38:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![toffe](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@toffe](https://forum.kirupa.com/u/toffe)\
**Post date:** [April 11, 2008, 7:38pm UTC](https://forum.kirupa.com/t/set--xscale-and-y-scale-direction/257260/1 "2008-04-11T19:38:36Z")

</div>

I’ve got a movieclip that I want to scale when a button is clicked.

I’m using the tween class to make the scaling smooth. It works fine when I test the movie within flash, but when I preview it in a browser the movieclip scales in the wrong direction. That is it turns upside down and scales to negative x and y values.

```auto
twXscale = new Tween(holder, "_xscale", easing.Strong.easeOut, holder._xscale, 80, 1, true);

```

What’s wrong ? Can I set the direction of the scaling or something ?

Thank you.
