# Just drawing a simple rectangle!

**URL:** <https://forum.kirupa.com/t/just-drawing-a-simple-rectangle/273993>\
**Category:** Uncategorized\
**Created:** [October 23, 2008, 2:51pm UTC](https://forum.kirupa.com/t/just-drawing-a-simple-rectangle/273993 "2008-10-23T14:51:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simononestop](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@simononestop](https://forum.kirupa.com/u/simononestop)\
**Post date:** [October 23, 2008, 2:51pm UTC](https://forum.kirupa.com/t/just-drawing-a-simple-rectangle/273993/1 "2008-10-23T14:51:24Z")

</div>

Hi I need some help scripting a simple rectangle. Im know every one is going to say it is already on here or read the help files, but im an idiot!! I need a real basic example. and ive been searching for a good half a day.  
so far I have this

\_root.createEmptyMovieClip(“holder”,1);  
holder.lineStyle(1,0,100);

holder.moveTo(100,100);  
holder.lineTo(100,(deckWidth_100));  
holder.lineTo((deckHeight_100),(deckWidth_100));  
holder.lineTo((deckWidth_100),(deckHeight_100));  
holder.lineTo((deckHeight_100),(100));

All I want to do is get flash to draw and fill a rectangle who’s width and height is a variable (it is entered in m by the user) as simple as possible.
