Mike Chambers

code = joy

AIR package added to as3corelib library

with 9 comments

We have been discussing the need for an AIR specific version of the as3corelib library, which would contain useful APIs for working with Adobe AIR. However, instead of creating a new library, I have added an AIR package to as3corelib which will contain AIR specific APIs.

Right now, there is only one class added, a FileTarget for the Flex Log framework, but I expect we will be adding more over time.

If you have any suggestions, post them in the comments.

Written by mikechambers

August 14th, 2008 at 10:16 am

Posted in General

9 Responses to 'AIR package added to as3corelib library'

Subscribe to comments with RSS or TrackBack to 'AIR package added to as3corelib library'.

  1. That’s cool. There could be various things and those got a home now.

    Thanks for doing this.

    -abdul

    Abdul Qabiz

    14 Aug 08 at 11:17 am

  2. Mike, it looks like the FileTarget gives a compile time error:

    1046: Type was not found or was not a compile-time constant: File. as3corelib/src/com/adobe/air/logging FileTarget.as line 53 1219534625038 2585

    Any thoughts on how to fix? I really need to use the library on a project I’m working on.

    Bryan Bartow

    23 Aug 08 at 4:42 pm

  3. @Bryan Bartow

    Bryan, you are getting that error because you are trying to compile a class that requires AIR APIs (File) in a Flash Player project.

    Just dont compile in anything in the air/ directories, and you will be fine.

    mike chambers

    mesh@adobe.com

    mikechambers

    23 Aug 08 at 6:13 pm

  4. I added the AIR libraries in the compile options and that cleared it right up. Thanks.

    Bryan Bartow

    27 Aug 08 at 7:54 pm

  5. hi mike; I tried to download the as3coreLib from the google site, but no go. The only downloads are from 2005 and dep’d. Am i missing something obvious?! would’nt be the first time. any help would be greatly apperiated.

    jason

    15 Sep 08 at 7:04 pm

  6. @jason

    Jason, the project is only available through SVN, so on “http://code.google.com/p/as3corelib/” click on the “source” tab and checkout the project.

  7. hi mike — i’m hoping to log to the file system (via FileTarget) from a release build, but I can only get file output from inside flexbuilder… is this intended behavior or am i doing something wrong? thnx

    dch

    5 Dec 08 at 9:31 pm

  8. @dch

    That should work. Is the release running in Adobe AIR? i.e. not in the browser?

    mike chambers

    mesh@adobe.com

    mikechambers

    11 Dec 08 at 12:26 pm

  9. yes, its running in the air runtime

    dch

    9 Jan 09 at 7:49 am

Leave a Reply