Writting Your First Apollo Application
May 11th, 2007 Noor
| Before you read this tutorial i recommend reading my previous tutorial on installing adobe apollo here |
| Apollo development goes into 4 basic steps |
|
| Like every language i start learning it with the “HelloWorld” application except when “8085 Assemblt Language” there we didn’t have HelloWorld :), anyways, |
| Will use Apollo SDK to develop the application, let start |
| Create a directory in the place you like and name whatever you want so that we can save our project files in it |
| As we mentioned that our first step will be to craete the application descriptor file which as an XML file that has basic information about the application we are developing. open your favorite text editor and type the following: |
| appId: is the unique value that identifies your appication so to make it unique, i have named as my domain name |
| name: is the name of the application that will be isplayed to the users. |
| publisher, description, copyright are optional values, they will be displayed in the installer interface while installing the application after it’s being packaged. |
| rootContent identifies the swf file that will be the root of your application as you can see systemChrome means that the application will inherit the look and feel of your operation system, transparent attribute set to false means that the application background will look apaque rather than transparant. |
| Save the file as Hello_ap.xml |
| Now will program the application so open your text editor again and type the following: (this is the MXML source code for the application) |
| The ApolloApplication component is a subclass of the Flex 2 Application component. It defines the main window of the application. The value of the title attribute will appear in the title bar of the main window |
| The Label component is used to display the simple text message “Hello Apollo”. |
| Save the file with the name HelloWorld.mxml |
| you can compile the SWF file, using the amxmlc command-line tool: the amxmlc utility calls the MXMLC compiler with options that tell it to use the Apollo libraries |
| Open you command prompt and navigate to the project working directory and type the following to compile the SWF file |
| amxmlc HelloWorld.mxml |
| If no errors are generated, the compiler generates the HelloWorld.swf file in the project directory.Now you can test the application, using the ADL command- line tool: |
| Type the following in the command-line window |
| adl Hello_ap.xml |
| IF there are no errors generted the output would be something like this |
![]() |
| I hope that this article was informative and thaks for viewing |
| King Regards, |
| Noureddine Elzaatari |
Posted in Adobe Apollo | 1 Comment »

