Actually the Java Compiler would perform exactly the same way the Flex Compiler 
would. 
Even if modern IDEs take care of finding the referenced classes and adding 
Import Statements.
All you should Need to do is add a:

import subdirectory.GameSequence;

Statement.

Chris

________________________________________
Von: Barry Gold <[email protected]>
Gesendet: Dienstag, 18. Februar 2014 16:46
An: flex mailing list
Betreff: mxmlc: finding other classes?

My splash screen includes a link with a click handler:

<s:RichText left="0" top="0" width="100%" height="100%">
   ... some text ...
   <s:a href="." click="gotoMainMenu">link text</s:a>
   ...more text...
</s:RichText>

The click handler is coded as follows:

</fx:Metadata>
<fx:Script >
   <![CDATA[
     import mx.events.ItemClickEvent;
     protected function gotoMainMenu(event: ItemClickEvent):void
     {
         GameSequence.mainMenu();
     }
   ]]>
</fx:Script>

"mainMenu" is a static method in class GameSequence, defined in
"GameSequence.as" in a subdirectory.

If this were Java, the compiler would automatically search the subtree
to find classes I reference.  What do I need to do here with mxmlc?

Reply via email to