Thats exactly what was going on... thanks for the response.
Thank You
Dan Vega
On Mon, Aug 4, 2008 at 10:29 AM, Michael VanDaniker
[EMAIL PROTECTED] wrote:
My guess is that you have something like this...
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Canvas id=canvas
mx:LinkButton id=aboutMeLink
/mx:Canvas
/mx:Application
If that's the case, the aboutMeLink is a child of canvas and you'll
need to call canvas.removeChild(aboutMeLink);
If you just want the LinkButton to not take up space you can set its
includeInLayout property to false.
--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dan
Vega [EMAIL PROTECTED] wrote:
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