# Scaling an object with mx.transitionsHey all,

**URL:** <https://forum.kirupa.com/t/scaling-an-object-with-mx-transitionshey-all/148689>\
**Category:** Uncategorized\
**Created:** [May 22, 2005, 5:20pm UTC](https://forum.kirupa.com/t/scaling-an-object-with-mx-transitionshey-all/148689 "2005-05-22T17:20:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andehlu](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@andehlu](https://forum.kirupa.com/u/andehlu)\
**Post date:** [May 22, 2005, 5:20pm UTC](https://forum.kirupa.com/t/scaling-an-object-with-mx-transitionshey-all/148689/1 "2005-05-22T17:20:03Z")

</div>

Hey all,

Does anyone know how to scale an object (both height AND width) with mx.transitions? Is the only way to have 2 lines tweening the \_xscale and \_yscale at the same time? I hope not cuz I notice that this sometimes scales one linefaster than thetother and warps the image…

Hope someone can help…

sloppy:

```php

var car_twn = new mx.transitions.Tween(_root.main_screen.main_car, "_xscale", mx.transitions.easing.Regular.easeIn, _root.main_screen.main_car._xscale, 80, 350, false);

var car2_twn = new mx.transitions.Tween(_root.main_screen.main_car, "_yscale", mx.transitions.easing.Regular.easeIn, _root.main_screen.main_car._yscale, 80, 350, false);

```
