2. Extract and put bin directory into PATH
3. Create new file:
----- MyFirstAir-app.xml-------
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/1.0">
<id>eu.siilbek.janno.HelloWorld</id>
<version>0.1</version>
<filename>MyFirstAir</filename>
<initialWindow>
<content>MyFirstAir.swf</content>
<visible>true</visible>
<systemChrome>none</systemChrome>
<transparent>true</transparent>
<width>400</width>
<height>200</height>
</initialWindow>
</application>
4. Create new application file:
-----MyFirstAir.mxml----------
<?xml version="1.0"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" title="Hello World">
<mx:Style>
WindowedApplication
{
background-color:"0x999999";
background-alpha:"0.5";
}
</mx:Style>
<mx:Label text="Who is the bich now?" horizontalCenter="0" verticalCenter="0"/>
</mx:WindowedApplication>
5. Compile the stuff (this creates MyFirstAir.swf):
amxmlc MyFirstAir.mxml
6. Test it:
adl MyFirstAir-app.xml
7. And do the rest until you are bored. Only good reason for doing Air is that it looks "nice". Otherwise "USE JAVA"
No comments:
Post a Comment