6 Replies Latest reply on Jan 30, 2007 6:56 AM by JeffreyGong

    open MXML component + button click

    ljonny18
      Hi,

      I have an MXML component within my Flex 2 Application, and within this component I have a button which when clicked, I want to "go / link to" (open) another MXML component.... e.g.:

      <mx:Application.......>
      <mx:panel............>
      <mx:button label="open other page" click="open the other MXML component etc..."/>
      </mx:panel>
      </mx:Application>


      Additionally I want to be able to pass a variable (on the same button click) to the component that is being opened on the button click, and use this variable within the second component......

      Could anyone suggest the best method of going about this?

      Thanks,
      Jon.