I have two mxml files in my top-level src directory. The first is the main application. The second is a Text control that has the script for the game in it, as text to be read and parsed at run-time.

The two questions are:

1. How do I get the compiler to include this second file
2. How do I access the Text control's contents from a class in a different package?

The second file looks like this:

<?xml version="1.0" encoding="utf-8"?>
<mx:Text id="gameScript" name="script">
<mx:text>
// This is the script that controls the game

...


</mx:text>
</mx:Text>

Reply via email to