0 Replies Latest reply on May 29, 2015 12:54 PM by adolfj84385943

    how to temp save variable on adobe edge?!

    adolfj84385943 Level 1

      hey

      the code is

      var MyVar;
      if (sym.isPlaying())  return false;
      
      if(MyVar== 0){
      sym.play("First_Animate");
      MyVar= 1;
      }
      else {
      sym.play("Second_Animate");
      MyVar= 0;
      }
      
      

      when i click the MyVar

      it will set to 0

       

      so i wonder if i can temp save the var so the if statment can understand what to play next ?

      thx for help