private function removeCloud() : void { for (var p:int = 0; p < _view.numChildren;){ var cloud:CloudCloud = _view.getChildAt(p) as CloudCloud; if (cloud != null){ _view.removeChild(cloud ); } else p++; } }