Return to Snippet

Revision: 33170
at October 6, 2010 18:18 by alsodenn


Updated Code
private function removeChildren (container:MovieClip):void
{
  while (container.numChildren)
  {
    container.removeChildAt (0);
  }
}

//removeChildren (myHolder);

Revision: 33169
at October 6, 2010 17:35 by alsodenn


Initial Code
var i:int = container.numChildren;
while(i--)
{
  container.removeChildAt(i); 
}

Initial URL

                                

Initial Description

                                

Initial Title
delete all childs

Initial Tags

                                

Initial Language
ActionScript 3