2 Replies Latest reply on Sep 9, 2007 12:36 PM by kglad

    Difference between on(release) and onRelease function

    OS_Design
      I have this script

      MovieClip.prototype.onRollOver = function()
      {
      if (this.hasOwnProperty("onRelease")) {
      trace(this + " has onRelease function");
      }
      };

      if i have a onRelease function like this

      mc.onRelease = function (){
      .....
      }

      hasOwnProperty("onRelease") works

      but if i have

      on(release){
      ...
      }

      hasOwnProperty("onRelease") does not works

      whats problem?