Powerful onDoubleClick() Script

Description:

A very easy to use code that lets you use functions when you double click a movieclip.

Just copy the code in the timeline of your project that you need to use it and that’s all.

onDoubleClick(mc, function)

The first param, “mc”, is the target movieclip that will be doubleclicked, and the second is the name of the function that will be fired (without brackets)

Example:

Imagine that you have a movieclip called “ball” on the stage, and you want to move it 5 pixels by doubleclicking it, you just have to make your function, like:

function move(){ ball._x+=5 }

and then you just use the onDoubleClick() function and call move():

onDoubleClick(ball, move)

That’s all. The name of the function goes without the brackets.

Just 2kb.

About Support

As I dont check every day every file’s comments you will get faster support if you send me your questions/requests by e-mail, you can contact me using the contact form at the bottom of my profile.

Also if you are contacting me about a particular file, please send it’s url and name.

New File

Featured File

Best Seller

Files By Categories

Links

by
by
by
by
by
by