Hello, Add all components in viewstatck.
Viewstack is having property selectedIndex it means child index of view stack. If suppose there are 3 components in viewstack and i want to show 1st component Then my code is like this; viewstack.selectedIndex = 0; Regards, Pradip Jadhav On May 15, 4:04 am, Daniel Gerep <[email protected]> wrote: > Hi fellas, > > What I need is very simple. > > I have a group of buttons and lots of components. > > Each button will call a specific component to a ViewStack. > > What I need is a function that will be called by a button click and it needs > to instanciate the correct component and add it to the ViewStack as a child. > > Thanks in advance. > > Sorry for any typos =) > > -- > Att > Daniel Gerep > [email protected] | > @danielgerep | > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/flex_india?hl=en. -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

