1 Reply Latest reply on May 1, 2007 3:56 PM by dr_ross

    use a variable name within a function?

    NickTheNameless
      here's my function....

      myInterval = setInterval (TTMO,15);

      function TTMO () {
      InstanceNameOfMovieClip._x -= (InstanceNameOfMovieClip._x - _xmouse)/10;
      InstanceNameOfMovieClip._y -= (InstanceNameOfMovieClip._y - _ymouse)/10-2;
      }

      instead of using the "InstanceNameOfMovieClip" can i use a variable name? i've tried, but it doesn't work. i also tried using the correct hierarchy too, such as this._parent.VariableName too.