# Tweener: redrawing object being scaled to avoid scaling outline

**URL:** <https://forum.kirupa.com/t/tweener-redrawing-object-being-scaled-to-avoid-scaling-outline/327356>\
**Category:** flash\
**Created:** [February 23, 2012, 9:01pm UTC](https://forum.kirupa.com/t/tweener-redrawing-object-being-scaled-to-avoid-scaling-outline/327356 "2012-02-23T21:01:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpann](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tpann](https://forum.kirupa.com/u/tpann)\
**Post date:** [February 23, 2012, 9:01pm UTC](https://forum.kirupa.com/t/tweener-redrawing-object-being-scaled-to-avoid-scaling-outline/327356/1 "2012-02-23T21:01:44Z")

</div>

Using Tweener, I’m scaling a rectangular Sprite with a 3 pixel outline.

I want to only scale in the x-direction, meaning it gets thinner but not shorter. BUT, while the Sprite gets thinner, I don’t want the outline to get thinner using the same lineStyle.

I assume that to do this I would use the onUpdate param to continually execute the function that draws the Sprite, so that it draws it thinner and thinner. But I don’t know what to pass in the onUpdateParams.

Thoughts?

Or is this a bad use of tweening and I should just use a timer?

Thank you!
