# Tween Drawing API Rectangle

**URL:** <https://forum.kirupa.com/t/tween-drawing-api-rectangle/202489>\
**Category:** flash\
**Created:** [October 2, 2006, 2:06am UTC](https://forum.kirupa.com/t/tween-drawing-api-rectangle/202489 "2006-10-02T02:06:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pherank](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Post date:** [October 2, 2006, 2:06am UTC](https://forum.kirupa.com/t/tween-drawing-api-rectangle/202489/1 "2006-10-02T02:06:38Z")

</div>

I thought this was going to be easy, but…

I’m trying to create a rectangular mask - located at x:0, y:173 (1 pixel high ) - that will be stretched (\_yscale) to the bottom of the image using the Flash Tween Class. Trouble is, the entire rectangle moves as if if were using “\_y” instead of “\_yscale”. Tweening “\_height” doesn’t work any better. Can someone spot the problem with this file? If you comment out this line

var mask\_tween:Object = new Tween(maskClip, “\_yscale”, Strong.easeOut, 0, 100, 1, true);

then you will see the correct placement of the mask rectangle. It just doesn’t tween/scale properly.
