/*------------------------------------------------------------------------------ ** + getMinDepth(pMin) - mama 03/04/02 - mama@yamago.net ** int getMinDepth(pMin) ** récupère la plus basse profondeur ** pMin, paramètre optionnel, limite basse de la recherche de la profondeur ** minimum, si le paramètre n'est pas transmis pMin vaut 0 -------------------------------------------------------------------------------*/ MovieClip.prototype.getMinDepth= function (pMin) { var lBefore=Number.MAX_VALUE; if (!pMin) pMin=0; for (var z in this) { if (typeof this[z]=="movieclip" || this[z] instanceof TextField || this[z] instanceof Button || this[z] instanceof Video) { if (this[z].getDepth()1) lDepth=this[z].getDepth(); lBefore=this[z].getDepth(); } } return (lDepth>-16384) ? lDepth+1 : undefined; } ASSetPropFlags(MovieClip.prototype,"getMinDepth",1);