Rectangle tool

Hi,
how can i make a rectangle tool with actionscript ?
please help.