Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

animation inside symbol depend of click counts

$
0
0

Hello

 

for example, there is a hammer hitting rock

if i clicked 1 time - rock cracked( animation inside symbol)

twice - semi destroyed

three times - fully destroyed

 

i've tryied  this, but it plays all animation at once:

-made stop() at the end of each animation

-clicking the symbol:

var i=0

i++

if(i==1){

play('1000')

}

i++

if(i==2){

play('2000')

}

and so on

 

 

but it plays all animation

 

where is the error? =)


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>