I’m new to Flex and I’m trying to write a program with lots of content in it. There’s a sidebar, a main content pane with tabs, etc.
I want to be able to create MXML files (like sidebar.MXML, tab1.mxml, etc.) that I can then load into the sidebar or load into a certain tab. That would make my code a lot more manageable instead of writing all that code inside of the main MXML file.
Can I do this? I have already modularized some of my code by putting them in custom components, but I would really like to be able to load content from other MXML files, much like I can do in PHP:
<?php include 'someFile.php'; ?>
Okay, it looks like there is no way to do this, other than using custom components.