removeFromParent method

void removeFromParent ()
inherited

Removes this display object from its parent.

Implementation

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