Advertise with CSS-Flash.com  

Powerful onDoubleClick() Script

Image
 
Author:JuanCazala
00
Price:$3.00
Powerful onDoubleClick() Script 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.

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • Use the special tag [adsense:format:slot] or [adsense:format:[group]:[channel][:slot]] or [adsense:block:location] to display Google AdSense ads.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Allowed HTML tags: <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>

More information about formatting options