Flash scale draggin window

can anybody help me how do I code a moviclip that can be dragged and scaled as a regular window’s window. Lol. I’m currently using flash 8.
Thanks