7 Replies Latest reply on Oct 6, 2006 2:53 PM by Peter Lorent

    There is no method with the name 'getNextHighestDepth'.

    Level 7
      I have this code functioning in the first frame of a move but I am now
      trying to incorporate it into a class file

      I am getting the error "There is no method with the name
      'getNextHighestDepth'."
      here is my code:
      var lvl:Number = 0;
      function
      createColorClip(MyLblPosition,dsplyColor,dsplyX,dsplyY,dsplyW,dsplyH,ClipName)
      {

      lvl = this.getNextHighestDepth();
      this.createEmptyMovieClip(ClipName, lvl);
      same error

      this.createEmptyMovieClip(ClipName, this.getNextHighestDepth(););
      ....
      I have read that I need to import mx.core.UIObjects but this class already
      extends another class and simply including the UIObjects is not enough .
      any Ideas?