Groups | Blog | Home
all groups > flash actionscript > june 2006 >

flash actionscript : getNextHighestDepth question


AsandJs
6/20/2006 9:22:03 PM
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();
};
.:}x-=V!P=-x{:.
6/20/2006 10:46:36 PM
AddThis Social Bookmark Button