Created
December 30, 2014 15:56
-
-
Save hernanBeiza/dcbc25893aae8e01775c to your computer and use it in GitHub Desktop.
AS3 - Vaciar MovieClip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Vaciar el contenedor | |
private function vaciarContenedor(contenedor:MovieClip):void { | |
//Borrar todos los objetos en el contenedor | |
for (var i:int = contenedor.numChildren - 1; i >= 0; i--){ | |
contenedor.removeChildAt(i); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment