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.
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.
Today I’ve learned that the only way, tested so far, to get parent paths from the applicationDirectory is using the File object constructor:
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.
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..)
Comments