If I were to do this I would return different data depending on user or admin login. The dataprovider would remain the same - just the data would change.
--- In [email protected], "yonghan79" <yongha...@...> wrote: > > Hi all,i'm trying to change Flex 3 ToggleButtonBar dataprovider on user or > admin log in..I'm trying to use 2 viewstack,one for user,one for admin and i > got a component where the login form is in the component..What should i do to > define the dataprovider on the mainbased on user log in??Thanks a lot... >

