Skip to content

Instantly share code, notes, and snippets.

@hernanBeiza
Created December 30, 2014 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hernanBeiza/dcbc25893aae8e01775c to your computer and use it in GitHub Desktop.
Save hernanBeiza/dcbc25893aae8e01775c to your computer and use it in GitHub Desktop.
AS3 - Vaciar MovieClip
//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