I have 1 mxml file which contains couple of components...this is like 1 screen...on clicking the next button it should call another mxml with a different set of components like 2 textfield etc....how to implement this navigation?
What type do these mxml files define? Canvases? Panels? Applications?
Neelima Mohan
Greenhorn
Joined: May 23, 2010
Posts: 27
posted
0
one file is 1 mxml with an application tag and a canvas within it. I want to call this mxml to call yet another mxml which again has a canvas details inside an application tag. this is to emulate a screen flow.
Visualize this requirement as a data entry form. On screenload the user types in data into the fields defined in the first mxml. There is a next button. On click of the next button the next mxml will be called and the fields defined in that second mxml gets displayed to the user. User types in the details and then finally clicks the save button to make a call to the service layer.
I am not able to get information on how to call 1 independent mxml from another mxml.
Thanks,
Neelima
This message was edited 1 time. Last update was at by Neelima Mohan
Narender Reddy Soma
Greenhorn
Joined: Jun 05, 2010
Posts: 22
posted
0
I think States would help, try googling Flex States.
and Inorder to call one mxml from another, you can do in two ways.
one is you can import the mxml as other class like Panel,Canvas etc and invoke method on it.
and another is compiling the dependant mxml and embed as local file.