flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Elena Geller <elena.gel...@gmail.com>
Subject Re: mxmlc: finding other classes?
Date Tue, 18 Feb 2014 15:49:33 GMT
Import yoursubdirectory.GameSequence

18 февр. 2014 г. 16:47 пользователь "Barry Gold" <BarryDGold@ca.rr.com>
написал:
>
> 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?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message