Making objects follow the mouse

Tutorials Shared by the Internet Community


Making objects follow the mouse

Using scripting on a movie clip,


  • Total Hits - 28072

  • Total Votes - 103 votes

  • Vote Up - 46 votes

  • Vote Down - 57 votes

  • Domain -

  • Category - Flash/Math & Physics

  • Submitted By - Devesh Khanna

  • Submitted on - 2008-04-02 11:25:04


Well, as a bit of background, I saw a Flash ad on the net a while ago, which had an object that not only changed its rotation according to the mouse angle, but actually followed the mouse around the screen. Which got me wondering how they did it. It’s actually not as hard as you might think. All it took me was about an hour of trial and error to get it working.    More detail...

Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down