7 Replies Latest reply on Jan 17, 2016 6:05 AM by joel_pau

    animation inside symbol depend of click counts

    Tram1

      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? =)