Ultrashock Forums > Flash > ActionScript
AS - AS2 or AS3 MovieClip Reaction to mouse

You are currently viewing our website as a guest which gives you limited access to forums, files and other resources.

Click here to join now for free, and start interacting with our members, download files and much more!

Click here if you are looking for our Flash files and other professional assets.
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!
AS - AS2 or AS3 MovieClip Reaction to mouse
Old 2008-10-22

Hi all,

I have been asked to develop a flash movie, which has shapes of the letters of the company name on the stage. Each shape is a separate movieclip and needs to react with the mouse on contact, in such a away like they are made of helium and floating on a string.

For instance pretend when you look at the stage you are looking down and if you hit the movie with the mouse, it moves and rotates in a certain direction and slowly makes its way back.

I have worked out the movement side of things, and just need to work out the rotation. The numbers I have to play with are

The Power of the mouse
The direction of the mouse (degrees)
The angle from the centre of the movieclip the mouse hit.

Am sure am not the first to try this so if there is any help, classes, functions please let me know

Cheers for reading and thanks in advance for any help.
postbit arrow Be the first to comment! | 448 views postbit arrow Reply: with Quote   
Registered User
toystoryii is offline
seperator
Posts: 1
2008-10-22
toystoryii lives in United Kingdom
seperator
Thread Tools
Display Modes Rate This Thread
Rate This Thread: