# Fill a square?

**URL:** https://forum.kirupa.com/t/fill-a-square/82053
**Category:** flash
**Created:** [March 7, 2005, 1:02pm UTC](https://forum.kirupa.com/t/fill-a-square/82053 "2005-03-07T13:02:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Moofius](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@Moofius](https://forum.kirupa.com/u/Moofius)
#### Post date: [March 7, 2005, 1:02pm UTC](https://forum.kirupa.com/t/fill-a-square/82053/1 "2005-03-07T13:02:25Z")

</div>

How can I fill a square made with:

```auto
createEmptyMovieClip("Line",1);
Line.lineStyle(1,0x000000,100);
Line.moveTo(20, 20);
Line.lineTo(30, 20);
Line.lineTo(30, 30);
Line.lineTo(20, 30);
Line.lineTo(20, 20);

```

I have tested to write

```auto

 Line.beginFill(0x00ff00, 100);
 Line.endFill();

```

after it but it dident happen anything.  
Please help me =)
