Resizing objects

guys … do you have any idea how i could do something like this?
http://www.rogue-development.com/objecthandles/MoveAndResize.swf
Are there any built in classes? anything already done? that i could use?

If i could … i would like to do something to add on objects that i want…to add those points around the object, points that i could drag and at the drag event they would change the WIDTH and the HEIGHT of the object. And then of course that drag and drop thing to change the X and the Y

any ideas?
[RIGHT]Thank you!
[/RIGHT]