# scaleX not working correctly when z is changed?

**URL:** <https://forum.kirupa.com/t/scalex-not-working-correctly-when-z-is-changed/318553>\
**Category:** flash\
**Created:** [January 23, 2011, 11:58pm UTC](https://forum.kirupa.com/t/scalex-not-working-correctly-when-z-is-changed/318553 "2011-01-23T23:58:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OMG](https://avatars.discourse-cdn.com/v4/letter/o/9dc877/32.png) [@OMG](https://forum.kirupa.com/u/OMG)\
**Post date:** [January 23, 2011, 11:58pm UTC](https://forum.kirupa.com/t/scalex-not-working-correctly-when-z-is-changed/318553/1 "2011-01-23T23:58:33Z")

</div>

Ordinarily when I press a key and use scaleX=-scaleX, the mc flips  
however when I change the z position of the mc, it only flips once after two keys. When I trace the scaleX it displays the correct result (1,-1,1,-1 and so on), but the mc doesn’t always flip… any idea?

thanks
