Skip to main content
July 20, 2015
Answered

Double-click in ActionScript 1

  • July 20, 2015
  • 1 reply
  • 490 views

Hi,

I must create a mini-app consisting in a visual effect (moving smoke of colors) deployed on an image. Events are :

-- app shows the background image

-- visual effect starts on double-click (same-background + animation)

-- visual effect stops on double-click

-- app shows the background image again (no visual effect).

The client wants me to use an effect he provided to me.

The effect was done in ActionScript 1. Personally, I’m working with ActionScript 3 (CCS3, 4, 5).

Adapting the effect was OK, but adding the double-click created a problem : the visual effect simply stopped working.

I greatly need your help. I don’t know how to introduce the double-click (effect ON/OFF).

My deadline is almost here and I battle (without success) with this double-click since already four days.

Please, help a beginner !

This topic has been closed for replies.
Correct answer kglad

you're welcome.

p.s when using the adobe forums, please mark helpful/correct responses, if there are any.

1 reply

kglad
Community Expert
Community Expert
July 20, 2015

use getTimer to detect a double click.

July 23, 2015

Thank you,

Everything is OK now. You helped me enormous.

Thanks again (1000 times) !

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
July 23, 2015

you're welcome.

p.s when using the adobe forums, please mark helpful/correct responses, if there are any.