3 Replies Latest reply on Jan 31, 2011 12:49 PM by kglad

    use mc instance name in onclip event

    lgreenwald

      Hi there!

       

      I’m using the following bit of AS2 on a couple of mc’s of my project so I would like to use the specific instance name in this:

      onClipEvent(enterFrame){
      this._x = this._x + (_root.intSlideToX – this._x ) /5;
      this._y = this._y + (_root.intSlideToY – this._y ) /5;     
      }

      It needs to call printMC, specifically.

      Here’s what’s on the button:
      on (release) {
      _root.intSlideToX = 642.5
      _root.intSlideToY = -187.3
      }

      printMC is NOT on the root level but the button is.

      Any help would be wildly appreciated!