Flex Import Class from a Module within a sub directory
Posted
by Tom
on Stack Overflow
See other posts from Stack Overflow
or by Tom
Published on 2010-04-22T04:05:38Z
Indexed on
2010/04/22
4:13 UTC
Read the original article
Hit count: 280
I put some modules in a module folder. How do I import classes with the import statement when I'm in a sub folder?
This won't work, not like classes which are in packages.
modules/SomeModule.mxml
<?xml version="1.0"?>
<mx:Module>
<mx:Script>
<![CDATA[
import Fruit.Apple;
]]>
</mx:Script>
</mx:Module>
Directory:
. |-- Fruit |-- Apple.as |-- Modules |-- SomeModule.mxml `-- application.mxml
© Stack Overflow or respective owner