2 Replies Latest reply on Apr 30, 2010 7:02 AM by suludi81

    Page navigation

    suludi81 Level 1

      I have created 3 mxml components for my application and i would like them to act as pages.I would like to call these components from my main file which consists of just an application toolbar and some logo.I know i can put them in a viewstack and link it with navigation containers,but i would like to call them from my application toolbar which has three link buttons.What really interests me is how Flex deals with page navigation(i am a Flex newbie)?

       

      p.s. sorry for my english

       

       

      Mirko

        • 1. Re: Page navigation
          David_F57 Level 5

          hi,

           

          Hopefully you are using Flashbuilder, this has excellent state management and in some ways using the states are much cleaner than viewstacks(personal opinion), any way the following example shows states used to navigate between components, buttons can move between the state and in the first state the component sends an event to the app which switches states. Its very basic but displays ways you can use states with components.

           

          http://gumbo.flashhub.net/wizard/  source included (right click on the app to choose show source)

           

           

          David.

          1 person found this helpful
          • 2. Re: Page navigation
            suludi81 Level 1

            Yes i am using Flex Builder,and thank you for answer.Working with states to call components may be just what i needed.