Line square

i want to know how to make a square that draws it self in actionscript
I was thinkning line tos
but can someone help me clear it up