# Simple Shapes

**URL:** <https://forum.kirupa.com/t/simple-shapes/301176>\
**Category:** flash\
**Created:** [December 4, 2009, 3:36pm UTC](https://forum.kirupa.com/t/simple-shapes/301176 "2009-12-04T15:36:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hobia1](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@hobia1](https://forum.kirupa.com/u/hobia1)\
**Post date:** [December 4, 2009, 3:36pm UTC](https://forum.kirupa.com/t/simple-shapes/301176/1 "2009-12-04T15:36:25Z")

</div>

Hi Guys please forgive me for this post but I really am stuck.  
The answer must be so simple but…2nd pair of eyes requested.

I am simply trying to create a filled trapezoid.  
Here is what I have so far, could anyone show pity and help this learner?

var trapezoid:Shape = new Shape();  
trapezoid.graphics.lineStyle(2, 0xFFD700, 1, false, LineScaleMode.VERTICAL,  
CapsStyle.NONE, JointStyle.MITER, 10);  
trapezoid.graphics.beginfill(0xFFD700);  
trapezoid.graphics.moveTo(0,600);

```
        trapezoid.graphics.lineTo(0, 0);
        trapezoid.graphics.lineTo(300, 150);
        trapezoid.graphics.lineTo(300, 450);
        trapezoid.graphics.lineTo(0, 600); 

```

trapezoid.graphics.endfill();  
this.addChild(trapezoid);

Best  
F
