How would I include an MXML file inline another MXML file?
I would like to include an MXML file in my MXML file in the same way you can include an external file in AS3 using the include directive. Using the include directive brings the code from the external file into the original file at compile time placing it in the same scope. For example, Application.mxml: <Application> <source="external.mxml"/> </Application> External.mxml: <Styles/> <Declarations> <Object id="test"/> </Declarations> I need to keep this code/mxml/xml in the external file in scope with the original. Do not ask me why I want to do this. Another example. Here is my current code