1 Reply Latest reply on Dec 10, 2007 2:09 AM by nITiNkIlLeRmEeRuT

    Press Trace

    GeoffreyTo
      hi
      i just add this code to one of the layers and a button named as cbm
      i tried to trace the action but for some reason it the press function doesn't work as it didn't trace for a+1
      can anyone help me with this?
      thx very much
      act the var has been set to 0 initially.

      stop();
      trace("frame 2")
      cbm.onPress=function() {
      if (a == 0) {
      a = a+1;
      }
      trace("a+1")
      gotoAndStop("action a");
      }