Adobe air aptana studio tutorial


















Set the file permissions so that the installer application can be executed. From a command line, you can set the file permissions with:. Some versions of Linux allow you to set the file permissions on the Properties dialog opened through a context menu. Adobe AIR is installed as a native package. In other words, as rpm on an rpm based distribution and deb on a Debian distribution. Currently AIR does not support any other package format.

Using the package installers:. The API that does this is the flash. Creating an Image Viewer in AIR With Drag and Drop Here, you will see how an AIR application can be created to accept image files using drag-and-drop and then individually display those images within the application window. This means associated files open in your AIR application. This greatly streamlines your ability to work with external files. This tutorial shows you how to do that.

This tutorial shows you how to do both with simple text data. Building an Adobe Air application with Flex In this tutorial, you will learn how to build an Adobe Air application with Flex, an open-source set of technologies for the development of rich Internet applications. The first thing you do is get everything in place to start running and building AIR applications. This tutorial requires a little knowledge of Flex. Snippage A few tuts on this page.

Random Pattern A simple app that creates patterns based on set parameters. Kuler Desktop Browse and search color themes from kuler. Digg Reader A Digg headline reader that uses all digg. This routine inspects each record, checking when the note was created and performing some basic formatting in preparation for displaying the note.

We create a new list item for each record, and place each note at the end of the list. We need to bind a new function to each of the Delete buttons. Note that the actual Delete images will be surrounded by links, each of which has its own unique identifier. We can leverage this fact to determine which note we want to delete. We have just one more database operation to flesh out: allowing our users to add new notes. This functionality is quite similar to both of the previous database operations, with two exceptions:.

The first few lines of this code fetch the values from each field. When we construct our database query, we add the user data from these form fields. Failing to do so could potentially result in a malformed query string, hence the escape calls that you see there. We also need to bind this new function to the Create Note button. This is very easy using jQuery — just add the following line, shown in bold, to your BindEvents function:. Replace your ShowNewNote function with the following lines:.

If there is, we copy that data into the main content area of our New Note form. This functionality is already supported by most major browsers, but AIR goes one step further by allowing us to directly manipulate the contents of the general clipboard.

We can close the application by calling the method air. However, AIR provides a sophisticated event system designed to deal with more complex operations that applications may need to perform.

One of these operations is to prevent default actions. In our case, this event is called air. We can check if the default exit action is being prevented by another area of the application using a simple procedure:. The AIR docs provide more information about handling application termination. If you hit any hurdles along the way, you can download the final project files to compare with your own. Aptana also allows you to easily package the application as an AIR file for deployment.

Click the air button on your Aptana toolbar. In the Adobe AIR Package Exporter dialog that appears, just confirm that the right project is selected, and that the application descriptor is called application.

To minimize file size, feel free to remove the AIR localizer and the excess jQuery files, then click Finish and an AIR package will be created for you.



0コメント

  • 1000 / 1000