Do not use the ViewStack as the dataProvider.  Build the navigation
system's dataProvider as needed for the curent user, include the view
index in each item. On click, assign the item.viewIndex property value
to the viewStack.selectedItem.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Derrick Anderson
Sent: Wednesday, July 30, 2008 11:55 AM
To: [email protected]
Subject: [flexcoders] permission based ui

 

hi, i have my main UI setup with a ToggleButtonBar whos dataprovider is
a viewstack.  I need to incorporate permissions into my application,
some users won't have access to the 'Setup' section for example- is
there an easy way to do this or do i need to subclass ToggleButtonBar?
how do you all handle permissions in mxml layout?  i have many examples
of this, form sections that are permission based and such, I don't know
the best way to handle it.

thanks,
derrick anderson

 

Reply via email to