Generate dynamic shape?

Hi,

I have created a movieClip through actionScript but now with to create a rectangular shape to it. I guess i could do it by drawing lines and then fill but is there an easier way?

Thanks