I have a variable and based on its true/false value I want to display a
link. This is the link button, I don't just want to make it invisible
because it still takes up available space, I would actually like to remove
the child from the stage.

<mx:LinkButton id="aboutMeLink" label="?" click="showAbout(event)"/>


If I use the following

this.removeChild(aboutMeLink);

I get the following error, just wondering what im doing wrong.

The supplied DisplayObject must be a child of the caller.

Thank You
Dan Vega

Reply via email to