5 Replies Latest reply on Apr 10, 2013 11:03 PM by kglad

    delete myCountDown.onEnterFrame

    Ron Colmen Level 2

      How do I delete the onEnterframe. This is my code:

       

      function myCountDown(){

      //do something

      }

      RecLoad.onData = function(src) {

      if (condition == true) {

      _root.onEnterFrame = myCountDown; // works fine

      }

      }

       

      Clear_btn.onRelease = function () {

      delete myCountDown.onEnterFrame;  //does not respond

      }