public void removeAllChildren(boolean cleanup){
  if (children_ == null)   return;
  for (int i=0; i < children_.size(); ++i) {
    CCNode child=children_.get(i);
    if (isRunning_)     child.onExit();
    if (cleanup)     child.cleanup();
    child.setParent(null);
  }
  children_.clear();
}

public void removeAllChildren ( boolean cleanup ) { if ( children_ == null ) return ; for ( int i = 0 ; i < children_ . size ( ) ; ++ i ) { CCNode child = children_ . get ( i ) ; if ( isRunning_ ) child . onExit ( ) ; if ( cleanup ) child . cleanup ( ) ; child . setParent ( null ) ; } children_ . clear ( ) ; }
removes all children from the container and do a cleanup all running actions depending on the cleanup parameter .
