Re: [flexcoders] hiding an applicationcontrolbar button

2009-03-06 Thread Greg Morphis
I tried that in the creationComplete function and the show function. Neither hid the tab/button On Fri, Mar 6, 2009 at 9:16 AM, Adrian Williams wrote: > Hi Greg, > >     does this not work for you? > > if (MyModel.getInstance().currentUser.useraccess == "99") > { >     aHeadlines.visible = true;

Re: [flexcoders] hiding an applicationcontrolbar button

2009-03-06 Thread Adrian Williams
Hi Greg, does this not work for you? if (MyModel.getInstance().currentUser.useraccess == "99") { aHeadlines.visible = true; } else { aHeadlines.visible = false; } Greg Morphis wrote: I'm trying to hide or destroy a button that's showing in an ApplicationControlBar. Basica

[flexcoders] hiding an applicationcontrolbar button

2009-03-06 Thread Greg Morphis
I'm trying to hide or destroy a button that's showing in an ApplicationControlBar. Basically when the user logs into the tool their information is checked and one button or another will show. The code currently looks like