Question

I've created a client with login acces in Flex. After the succesful login i have to show a table based on a mySQL server. The database is composed by some tables, and I have created 6 flex mxml components with each own scripts for each of those tables. How can i load sub-applications, for example with a PopUpButton or a TabBar in the main application? Thanks in advance.

Was it helpful?

Solution

It sounds like you would do well to wrap your components in modules, and load them either when your ViewStack (controller by PopUpButton or TabBar) changes, or pre-load them while the the user is entering their login details.

You can have great control of loading a module, and when it's loaded fire an event to ask for login credentials or watch for the module loaded event and fire off an event with login credentials and anything else that might be needed by the module (and it's components) once loaded.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top