Flash Player 6.
my_mc.getDepth(): Number
None.
An integer.
Method; returns the depth of a movie clip instance. For more information, see "Managing movie clip depths" in Using ActionScript in Flash.
You can extend the methods and event handlers of the MovieClip class by creating a subclass. For more information, see "Assigning a class to a movie clip symbol" in Using ActionScript in Flash.
The following code traces the depth of all movie clip instances on the Stage:
for (var i in this) {
if (typeof (this[i]) == "movieclip") {
trace("movie clip '"+this[i]._name+"' is at depth "+this[i].getDepth());
}
}
MovieClip.getInstanceAtDepth(), MovieClip.getNextHighestDepth(), MovieClip.swapDepths()
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/mx2004/main_7_2/00001505.html
Comments
6ixX said on Aug 5, 2004 at 5:38 AM : No screen name said on Apr 12, 2005 at 6:37 PM : No screen name said on Apr 12, 2005 at 6:39 PM :