AIR package added to as3corelib library
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.






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
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
@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
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
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
@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.
Pierre-Olivier Charlebois
16 Sep 08 at 3:24 pm
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
@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
yes, its running in the air runtime
dch
9 Jan 09 at 7:49 am