Passing Parameters into a Flex Application Before Runtime
You can pass parameters into a Flex application before runtime using automation libraries.
Compile your application with the appropriate automation libraries.
Use the standard Flex mechanism for the parameter as you typically would.
Passing Parameters into a Flex Application
Precompiling the Flex Application for Testing