5 Replies Latest reply on Jun 6, 2007 9:06 AM by michaeltowse

    if statement

    Damon Edwards Level 3
      i cant seem to get this to work right.. it always traces disabled... i want it to trace enabled once the timeline is passed frame 111, and to trace disabled from 1 - 111, but anything beyond that, enabled..

      var frameNumber:Number = 111

      if(_currentframe <= frameNumber) {
      trace("disabled");
      } else {
      trace("enabled");
      }