Just drawing a simple rectangle!

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,(deckWidth100));
holder.lineTo((deckHeight
100),(deckWidth100));
holder.lineTo((deckWidth
100),(deckHeight100));
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.