This content has been marked as final. Show 5 replies
its a little too complex for me. I can't even tell if this is what i need.
how about the Explorer Sample application that comes with flex. this is exactly what i want, given that all the apps are made in separate files
(Help->Flex Start Page and then under Flex Samples is the Flex Style Explorer )
Isn't this the solution i need? If i dig into the files of the installation folder, i can see that there are different '.mxml' files for the different modules. Except, i can't figure out how they are connected and loaded and what the structure is of the project folder that whoever built it had...
I have the same questions.
Any ideas here?
It is a little complex because the security model the Flash Player uses and because of the application domains. Basically, the domains allow you to decide how your applications are loaded. One method allows for complete sharing of data, resources, and function calls. Another method isolates them. You probably want the former.
How you organize your application structure is up to you. Some people develop and test the applications which are to be used as modules as separate projects. Then they have a master project which has the main application that loads them as needed. This project also includes the runtime shared library. Other people develop the RSL separately. Other folks just make one large project. It is really up to you.
If you are going to use multiple SWFs to make an application, seriously consider using RSLs - they will save the end user a ton of time downloading the SWFs because the SWFs that use the RSLs will be a fraction of the size they would be if they contained all the same code.
Read up on RSLs, SWFLoader, and LoaderContext. I'm making a note to provide a simple example on my blog that shows how to load one app into another and communicate between them.
I have been reading Roger Gonzalez's blog and he notes that developers (i dont know if you are) are releasing a library "mx.modules" in Flex 2.0.1.
Is that our dreamed solution?