This document assumes that you have browsed the article about setting up the airsdk and installed the Ubuntu10.04LTS system. 1. Install vim and configure flexsdk install vim: sudoapt-getinstallvim download flexsdk4.1 from Adobelabs and decompress it to any directory, such as/usr/share/flex/sdks. Vim ~ /. Bashrc add PATH = $ PATH at the end of the configuration file:
This article assumes that you have browsed the article about setting up the air sdk and installed the Ubuntu 10.04 LTS system.
1. Install vim and configure the flex sdk
Install vim:
sudo apt-get install vim
Download the flex sdk 4.1 from Adobe labs and decompress it to any directory, such as/usr/share/flex/sdks.
vim ~/.bashrc
Add PATH = $ PATH:/usr/share/flex/sdks/flex_sdk_4.1/bin at the end of the configuration file.
2, AIR Hello World
Alt + F2, open gnome-terminal
echo $PATH
If you see the flex sdk 4.1 path, the configuration is successful.
cd ~/$user/flexmkdir helloworldcd helloworldvim helloworld.mxml
Edit helloworld. mxml as follows:
version="1.0" encoding="utf-8"?>
xmlns:mx=
"http://www.adobe.com/2006/mxml"
layout=
"absolute"
title=
"Hello World"
backgroundAlpha=
"0.5"
>
text=
"Hello World"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
>
Creating a hellworld-app.xml File
vim helloworld-app.xml
The content is as follows:
xmlns="http://ns.adobe.com/air/application/2.0">
>
sban.flex.helloworld>
>
0.1>
>
helloworld>
>
>
helloworld.swf>
>
true>
>
standard>
>
false>
>
400>
>
300> >>
3. Compile and run
amxmlc helloworld.mxmladl helloword-app.xml