Archive

Adobe Air: Save to JPG and PNG helper class

December 2, 2009 by fMajakovskij

Based on my previous tutorial on how to save a Jpeg image from a DisplayObject, I’m releasing an helper class to do the same thing with a couple of lines of code.

Adobe Air: add NativeMenuItem to existing NativeMenu

If you want to add just a single (or more) NativeMenuItem on the your existing NativeMenu, you can do it without recreate all the NativeMenu structure.

FlarManager FlarToolKit bugs and fixes

November 22, 2009 by fMajakovskij

For those who are willing to use FlarManager with Flash CS4, there are some issues that can be easily fixed, allowing you to start to develop with.

Air: parent path and applicationDirectory

November 11, 2009 by fMajakovskij

Today I’ve learned that the only way, tested so far, to get parent paths from the applicationDirectory is using the File object constructor:

Making a Grid with arbitrary cells number

November 6, 2009 by fMajakovskij

This little snippet allow you to create a grid distribution by passing an arbitrary number of cells.
This is useful to built image gallery or any interface based on grid system layout.

Drag And Drop in Adobe Air

November 2, 2009 by fMajakovskij

One of the most famous feature of the Air framework is the ability to perform the “Drag&Drop” behaviour with your application.

This sample code show how to detect the “drag” action, check the file type then do the proper action on “drop” step.

The following part of code set the listeners you need to create your Drag&Drop feature. As mentioned in the code, you need a DisplayObject as canvas to avoid an issue which break the listeners (I don’t know whether it is a known bug..)