Rotates to point at mouse?

I was jusat sitting there one day and suddenly thought:

“I need to make a movieclip point towards the mouse!”

I have no particular reason to do this but I thought it would be interesting.

Could you set the rotation according to the mouses y position maybe?

Thanks

anyone?

There is an open source example at moock.org
Check this link, http://moock.org/asdg/codedepot/ , and look towards the bottom in the section “motion > follow the leader”

thanks, I’ll look @ it now

Senocular also has a file like this I think … browse through the FMX files section on his site: http://www.senocular.com

http://www.actionscript.org/tutorials/advanced/Mouse_Angle_Detection_II/index.shtml

tadaaaa :smiley:

Thanks everyone

soon i wiil know trig and this wiil make sense… i hope…

thank you!

one voets may be thinking of is:
http://www.senocular.com/downloads/index.php?subaction=showfull&id=1074710585&ucat=1&kind=1