PDA

View Full Version : pass information from one .mxml file to another .mxml file


arun vallappan
07-29-2007, 10:49 PM
can anyone please tell me how to send information stored in one text input to another .mxml file of the same flex project
thanks

dr_zeus
07-30-2007, 04:38 PM
Create a public variable or getter/setter pair in a Script block in the second MXML file. You can then pass anything you want into it.

paulreitz
07-31-2007, 05:53 PM
There are two other things you could do to achieve this: You could create a .as file with static properties, and import it into both files. or you can create a custom event class that includes the information you want to pass. Add an event listener to one, then dispatch the event from the other with the information.