📜 ⬆️ ⬇️

Hello World! in adobe air

Adobe AIR is a tool for developing interactive applications from Adobe. The features include the ability to develop cross-platform applications using HTML / Ajax, Flex, Flash.

For reference, let's make an example of “Hello World!” Using HTML.


')
Install the necessary programs

First of all, you need to download the Adobe AIR package itself (there are versions for Windows and MaxOSX, they promised to make the Linux version).
Then the SDK for application development

Set where it will be convenient for you, remember the path - it will be useful to you.

Creating a project file

Each AIR-project in HTML contains at least 2 files: the project description file and the main page of the application in HTML. Our example also uses another HTML file with formatted text for insertion via JavaScript. There is also an AIRAliases.js file for creating aliases with the AIR API classes.

To get started, create a HelloWorld folder. Copy the AIRAliases.js file from the SDK folder to your HelloWorld folder.

For large and complex applications, a more complex folder structure for scripts, images and styles may be required, but in our case one folder will suffice.

Creating a project description file

The simplest file looks like this:
 <application>
     <id> ... </ id>
     <version> ... </ version>
     <filename> ... </ filename>
     <initialWindow>
         <content> ... </ content>
         <visible> ... </ visible>
         <width> ... </ width>
         <height> ... </ height>
     </ initialWindow>
 </ application>



Source: https://habr.com/ru/post/31360/


All Articles