Mega Code Archive
Remove a button from the application when the user presses it
public function removeButton():void {
myGroup.removeElement(myButton);
}
private function resetApp():void {
if (myGroup.numElements == 0) {
myGroup.addElement(myButton);
}
}