View Full Version : Mouse Actions

CiB Vibrazy
12-23-2000, 03:12 PM
I am making an introduction for my Dads website..
I am want to do something that when you click in the background and image appears.
When u move your move and then click. (A happy face appears, then u move ur mouse again and click, then another happy face appears in a different place..)
Can someone help me please!!!


12-24-2000, 06:06 PM
You have to duplicate the movie clip, and you have to make a movieclip with startdrag call it mouse , that is for the x and y position of the mouse, then make an invisible button on the background and give it the code :

On (Press)
Set Variable: "n" = n + 1
Duplicate Movie Clip ("/face", face&n, n)
Set Property (face&n, X Position) = GetProperty("/mouse",_x)
Set Property (face&n, Y Position) = GetProperty("/mouse",_y)
End On

n = the depth of the movieclip, there can't be 2 depths at the same time , so that's why it is increased by 1.

face = the movieclip you wan't to duplicate

and mouse as I already told is for the mouse his x and y position

Good Luck