John,

You can convert your Flex project to an AIR application pretty easily.  There's 
three basic steps involved:

1) Your application should be declared as inheriting from WindowedApplication, 
rather than Application in your main myapp.mxml file.

<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"; xmlns="*">

<!-- declaration of your app top-level fixtures goes here -->

</mx:WindowedApplication>

2) Create an AIR app descriptor file. Here's an example.  Name it myapp-app.xml 
and place in the same folder as your main myapp.mxml file. 

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/1.5.1";>
        <id>com.myapp.tester</id>
        <version>0.1</version>
        <filename>tester</filename>
        <name>FlexUnit Test Runner</name>
        <initialWindow>
                <content>tester.swf</content>
                <visible>true</visible>
                <systemChrome>standard</systemChrome>
                <transparent>false</transparent>
                <width>1024</width>
                <height>768</height>
        </initialWindow>
</application>

There is detailed documentation on the AIR app descriptor format on the Adobe 
site:

http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff1.html

3) Use the AIR MXML compiler (amxmlc rather than mxmlc) in your build scripts.  
If you're using Flex Builder, you can add an AIR Project Builder to your in the 
Project Properties > Builders pane.

That should be enough to get you started.  Good luck.

Michael Portuesi


--- In flexcoders@yahoogroups.com, John McCormack <j...@...> wrote:
>
> Is there any easy way to publish a Flex ActionScript Project as an AIR file.
> This project, by its nature, has no mxml tags.
> 
> John
>


Reply via email to