Scale Rotate on MouseEvent.MOUSE_DOWN

Hi all!
I got a problem and I just can’t find any working solutions for actionscript 3. I’m not an actionscript guru like many of you guys and so I can’t figure out how to make this work. The attachment shows just what I’m looking for. A simple button that when pressed rotates and scales the content depending on mouse position.

Yeah I know I’m lazy, but a function like this would take me weeks to figure out on my own with all the math functions involved.

Any suggestion is [FONT=&quot][/FONT]progress.