# Use Tweener to extend oblique line

**URL:** <https://forum.kirupa.com/t/use-tweener-to-extend-oblique-line/321044>\
**Category:** flash\
**Created:** [April 8, 2011, 3:38pm UTC](https://forum.kirupa.com/t/use-tweener-to-extend-oblique-line/321044 "2011-04-08T15:38:18Z")\
**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:** [April 8, 2011, 3:38pm UTC](https://forum.kirupa.com/t/use-tweener-to-extend-oblique-line/321044/1 "2011-04-08T15:38:18Z")

</div>

Hello all,

I can use Tweener (caurina) to make a straight line grow horizontally from zero length to some given length, like this:

(after creating a horizontal line…)  
line.scaleX = 0;  
Tweener.addTween(line, {scaleX:1, time:1});

This works nicely. The method also works nicely for a vertical line using scaleY.

However, I want to do this type of tween with an oblique line. The problem is that tweening both scaleX and scaleY results in a line that not only extends but also grows from very thin to the intended thickness.

Is there a way that I’m missing to do a Tweener extension of an oblique line (preferably not 45 degrees, that has too much potential for being a special case).

If not Tweener I’m definitely open to learning a different tweening method.
