1 Reply Latest reply on Feb 9, 2007 12:42 AM by Cameron74

    flex builder2


      i need a urgent solution that how can we call MXML file from another MXML in an application we will have a number of files from that if we need to call a particular file when we click or press a button or a hyperlink
        • 1. Re: flex builder2
          If you are calling mxml for displaying other content, use states. In the state properties just include the name of the mxml file between custom tags. ie
          in your application tag included the path to your mxml files (xmlns:v="myDir.*")

          then in the main mxml file
          <mx:State name="showfile">

          call it by
          <mx:button label="Test" click ="this.currentState='showFile'"/>

          This is just a rough outline. Should be examples in the documentation. Hope this points you in the right direction.