On 4/28/07, gotjosh819i <[EMAIL PROTECTED]> wrote: > Well not sure how I would remove it with this current setup:
> <!-- viewStack Controller :: viewController --> > > <mx:ViewStack id="viewController" selectedIndex="0" > width="100%" height="600" > > <view:Administration id="adminView" > showEffect="fadeIn" hideEffect="fadeOut" enabled="false"/> > </mx:ViewStack> If the role permissions do not match, you can do this: viewController.removeChild(adminView); That'll remove the admin view from the view stack, while still keeping it around in memory (you have a reference to it). You can add it back later, or whatever.

