[TxMt] Re: Set AS3 class paths

Creighton, Gerry gcreighton at discmakers.com
Fri Apr 9 14:35:35 UTC 2010


I believe on my home machine, can't confirm at the moment, that I set a Shell Variable to look for
AS3 classes for any of my imports. I don't follow the Flex folder format since I don't want a bunch of copies
Of my AS3 classes, doesn't make sense. I want to keep all of my code in one place so I have an AS3 Folder that
Has all of my Actionscript 3 code in it... Ie com, net, org etc.
So when I import com.domain.utils.StringUtil;   the code will be imported.

I'm sure I'm not the only one doing it this way. This is just like setting the Library Path in your Flash preferences.

I'll try  your tips out Simon.

Thanks,

-Gerry


On 4/9/10 10:28 AM, "Simon Gregory" <simon at helvector.org> wrote:

> I'm setting up a new TextMate environment for work on a new computer and for the life of me
> Can't get my AS3 class path preference setup correctly. I'm using Simon Gregory's Actionscript 3 Bundle.
> I've already set different variations within the Preferences > Advanced > Shell Variables
> For TM_AS3_PATH but it's not finding the directory I have set for that variable.

The bundle doesn't use a env var called TM_AS3_PATH. Although it's not always necessary (ie if you're following a conventional project layout) you can try setting TM_FLEX_FILE_SPECS to specify the class you wish to compile. The compiler will then use that file, and the directory it's in as the root directory for your project source.

> Is there a setting to set within the flex-config.xml that I'm missing?
> Any tips or links would be much appreciated. I've tried the Google machine already.

You can specify the external library paths relative to TM_FLEX_FILE_SPECS  inside the compiler node of your app-config.xml using something like:

<source-path append="true">
  <path-element>../lib/as/bin/</path-element>
</source-path>

Cheers,
Simon

_______________________________________________
textmate mailing list
textmate at lists.macromates.com
http://lists.macromates.com/listinfo/textmate

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20100409/8c9dc365/attachment.html>


More information about the textmate mailing list