1 Reply Latest reply on May 15, 2007 6:27 AM by ashar2005

    Invoking one mxml from another

      Hi All,

      I have one main mxml file. On this file I have a button. On the click of a button I need to invoke/display another mxml file.

      Does any one knows how to do this?

        • 1. Re: Invoking one mxml from another
          ashar2005 Level 1
          if you want to use a button to switch views, put the other component inside of a "viewstate" or
          create a States tage and create a "state" in there where you put the call
          to the component inside of the state. Then create a function that either switches the viewstate,
          or the currentState, depending on which method you used. Then use the button's click event
          to call that function...