8 Replies Latest reply on Oct 17, 2007 3:18 PM by kglad

    delete this.onEnterFrame

    hcciii
      I am trying to understand using onEnterFrame to position MovieClips:

      Here is a simple, example:
      1) I have a MC on the stage: "content_mc"
      2) I position it on stage sucessfully but uncessfully delete onEnterFrame

      Here is the sample code:
      if (10 < content_mc._x) {
      this.onEnterFrame = function(): Void {
      content_mc._x += (10 - content_mc._x)* .15;
      trace("positioning ="+content_mc._x)
      }; // end onE
      } else {
      delete this.onEnterFrame;
      trace ("deleted onEnterFrame")
      };