1 Reply Latest reply on Jun 20, 2006 3:46 PM by .:}x-=V!P=-x{:.

    getNextHighestDepth question

    AsandJs
      Lets say I have two MCs on the stage on the same layer. I want to be able to drag both this movies but I want that when the user clicks to drag the movie it should come to the foreground of the movie. I'm using getNextHighestDepth on the on press even but not having any luck. Below is a sample of my code where red and blue and the names of my MCs.

      Thanks in advance.

      //***red movie click code***//

      this.red.onPress = function():Void {
      this.getNextHighestDepth();
      this.startDrag();
      };
      this.red.onRelease = function():Void {
      this.stopDrag();
      };

      //*** Blue Movie Clip Code ***//


      this.blue.onPress = function():Void {
      this.getNextHighestDepth();
      this.startDrag();
      };
      this.blue.onRelease = function():Void {
      this.stopDrag();
      };