I would like to load a new mxml application from the main.mxml file and need to pass the variable. For ex, I have main.mxml file which contain login information such as username, password and redirect to different mxml file(for entering Complete details about the student) called StudentDetail.mxml and I would like to pass the login user to this page. Could you please give me the solution how to achive this or sample code?
Each MXML file will not compile to a different .SWF file. Your entire Flex project will usually be compiled to one .SWF file and will be loaded to the client on request. Each MXML file will be a class, behavior of the MXML file will vary based on the Class/Component on which that is based on or extended from.
Pleaes find a sample on how to create simple login application at the URL below.
Hope this helps.
Thanks a lot! Let me have a look on this.