# Draw a shape with a registration point bottom left?

**URL:** https://forum.kirupa.com/t/draw-a-shape-with-a-registration-point-bottom-left/296363
**Category:** Uncategorized
**Created:** [September 14, 2009, 8:11am UTC](https://forum.kirupa.com/t/draw-a-shape-with-a-registration-point-bottom-left/296363 "2009-09-14T08:11:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lope](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@lope](https://forum.kirupa.com/u/lope)
#### Post date: [September 14, 2009, 8:11am UTC](https://forum.kirupa.com/t/draw-a-shape-with-a-registration-point-bottom-left/296363/1 "2009-09-14T08:11:54Z")

</div>

I need to have 2 kinds of masks, one with a registration point in the top left so that when I tween its height it expands downwards, and one with a registration point in the bottom left so that when I tween its height it expands upwards?

how do i do that, with code ofcourse?

i have made something but i dont know if its the right way:  
(this expands downwards, but i dont know how to get it to expand upwards)

```auto
import gs.TweenLite;

var subMask:Shape = new Shape();
var gr:Graphics = subMask.graphics;

gr.beginFill(0x0000FF, .2);
gr.drawRect(0, 0, 100, 1);
gr.endFill();

addChild(subMask);

TweenLite.to(subMask, 1, { height: 100 });

```
