removeFromParent method

void removeFromParent ()

Removes this display object from its parent.

Implementation

void removeFromParent() {
  if (this.parent != null) {
    this.parent.removeChild(this);
  }
}