jQuery and AIR: Creating a new AIR project in Aptana
comments (12) Views: 21,574
Let's get started by walking through how to create a new AIR project in Aptana. You can use the HTML walkthrough below, or view the screencast of the same process by clicking the "watch video" icon above (might be a good idea to maximize your browser window first).
Start by opening Eclipse/Aptana Studio and making sure you're in the Aptana perspective.
From the File menu, select New > Project
Type the word AIR into the text box at the top of the next screen. Click the words "Adobe AIR Project", then click Next.
The next dialog shown is the true beginning of your AIR project creation.
- Type in your desired Project name into the box at the top
- Depending on where you store your projects, leave the default location alone, or fill it in with the location of your Eclipse workspace.
- Main HTML file is simply the first page that will be loaded by your AIR application. Name it whatever you like
- Leave Application sandbox unchecked as none of the examples we'll be working with require anything different
- Ignore the Jaxer portion of this box
- Click Next
One of the beautiful things about the new AIR project wizard in Aptana is that almost every attribute that can be set in the Application.xml file can also be set in the wizard.
- The ID attribute is what your computer will call your application internally. I recommend changing this to the same name as your application. If your app is called Fire & Forget, then the ID should also be Fire & Forget
- Name: the name of your application.
- Filename: the name of the executable for your application
- Version: the curent version of your application
- The last 4 input fields relate to the icon for your application. Aptana gives you an icon to start with. Change this as desired.
This next dialog allows you to set defaults for the appearance of your application.
- Window style: will your app use standard OS chrome, or custom chrome with transparency
- Sizing options: Will your app be resizeable, minimizable, or maximizable. Warning, if you uncheck these options, good user interface design dictates that you, the developer, provide custom alternatives
- Dimension options:
- Window width: the initial width and height of your application
- Initial X & Y position: where your app will be located when it loads the first time.
note that these values can be overridden as part of your application development
- Minimum/maximum width: the smallest/largest values to which your app can be resized
The AIR SDK offer several very useful frameworks for application development. This next screen allows you to automatically have Aptana add the selected frameworks into your application directory.
Click the finish button and, based on your choices, you should see something like this in your Project window.
- Great job, you just created your first AIR project! Stay tuned for more posts in this series.
If this article was interesting, or helpful, or even wrong, please consider leaving a comment, or buying something from my wishlist. It's appreciated!