1 Reply Latest reply on Oct 7, 2007 3:25 AM by chris.huston.t10

    mxml redirect to other mxml

    mark416 Level 1
      Hi,

      I am new for flex.I am confusing now.

      I want to build flex search function.I want to type the key word to search in first mxml page and then redirect to second page when I click search button and show all the search results(CFC handle this).

      I have following questions

      1.How to redirect from first mxml file to second mxml file.
      2.how to pass a variable from the first mxml file to second mxml page



      Thanks

      MK
        • 1. Re: mxml redirect to other mxml
          chris.huston.t10 Level 3
          There are at least two ways to do this. One way is to use modules and load the module for the search results. Check the docs for how to pass variables to a module.

          A second way that looks like it might suit your app better is just to use a viewStack. The first view would be your search page and the next view would be the search results. In this approach, you can keep everything in one mxml file and not have to worry about passing variables to modules.

          Vygo