I'm extending a Panel
to build a custom component. Without knowing what this will contain later, how can I add a method to temporarily hide all contents and displaying an internal object (which is normally invisible) instead?
That is, is there a better way than
for each (var ui:DisplayObject in this.getChildren()) {
ui.visible = false;
}
What I would love to do is swapping out the root content pane, but I don't know how to access it. Like this:
this._tempStore = this.removeChild(this.rootContentPaneObject);
this.rootContentPaneObject = this._myTemporaryReplacement;
Effectively, I'm trying to build a component which acts as a dropin replacement for a Panel
but which behaves similar to a ViewStack
.