ActionScript.org Flash, Flex and ActionScript Resources - http://www.actionscript.org/resources
Geting Start with the AIR Flash CS3 Professional
http://www.actionscript.org/resources/articles/681/1/Geting-Start-with-the-AIR-Flash-CS3-Professional/Page1.html
Alpesh Vaghasiya

work in flash base company, Have a experience in Flex and ActionScript programming, Flash, Adobe AIR and love to do programming in ActionScript 3.0

 
By Alpesh Vaghasiya
Published on October 29, 2007
 
this tutorial give you a quick, hands-on tutorial on how to create adobe AIR application using Flash CS3.  it teaches you how to create and package a simaple Hello Adobe AIR application using Adobe Flash CS3 Professional.

Create an Adobe AIR Application in Flash
For Geting Start with AIR Flash CS3 professional how may thing you require.
  • Adobe Flash CS3 Professional
  • Adobe AIR Runtime
Let Install AIR for flash

if you don't have flash cs3 installed. you must install it before installing Adobe AIR runtime and the update for Flash CS3. if you already have Flash CS3 installed, you can proceed to install the adobe AIR runtime.

  • Close any adobe application and any internet browsers that you have open on you computer.
  • Now, run Adobe AIR Runtime Setup. if you havn't setup then download for this Download Flash CS3 Upadte
To Install Adobe AIR Runtime
  • Choose the download file for your operating syste, winodws or Macintosh, from the Adobe Labs Downloads Page
  • Save it to location on you computer.
  • Dowble click the download file that you saved - for example, air_b2_win_061107 - to begin the setup procedure.
  • Click Run in response to the open file - security warning.
  • Click Add in response to the adobe integrated runtime setup dialog box.
  • when setup is complete, click finish to close the adobe integrated runtime setup dialog

Create an Adobe AIR Application in Flash

Now this application give you a quick, hands-on tutorial on how to create adobe AIR application using Flash CS3. it teaches you how to create and package a simaple Hello Adobe AIR application using Adobe Flash CS3 Professional.

Create the Hello Adobe AIR application in flash.

  • Launch Flash
  • In the Welcome Screen, click on Flash File (Adobe AIR) to create empty FLA file with Adobe AIR publish settings. see below figer.



  • Click ok to respond to the summary dialog, Authoring for adobe AIR with Flash CS3. This dialog takes a few seconds to come up the first time.  see above figer.
  • Select the text tool in the Tools panel and create a static text field (the default) in the center of the stage. make it wide enought to contain 15 to 20 characters.
  • Enter the text "Hello Adobe AIR" in the Text Fields. see in figer.

  • Save it file and Give it name AdobeAIR
  • for Test Applicatoin, press CTRL + ENTER or select Control -> Test Movie To Test Appliatoin With AIR
  • It's show one windows with "Hello Adobe AIR" text like this figers.


Testing the application

To test the Hello Adobe AIR application

Press Ctrl + Enter or select Control ->Test Movie to test the application with the AIR runtime.

To use the Debug Movie feature, you must add ActionScript code to the application. You can try it quickly by adding a trace statement like the following:

[as]trace("Running AIR application using Debug Movie");[/as]

Press Ctrl + Shift + Enter, or select Control->Debug Movie to run the application with Debug Movie.

Select the Commands > AIR - Applications and Installer Settings menu item to open the AIR - Application & Installer Settings dialog .

Click the Select Icon Images button and open the Icon Images dialog. You will see the Adobe custom icons here and you should notice the custom icon settings. You will also see the icons for your application here when you install your application's AIR file. The icons are not needed for this application so you can close this dialog when you're finished.

Sign the Adobe AIR package with a self-signed digital certificate:

  1. Click the Set… button for the Digital Signature prompt to open the Digital Signature dialog box.
  2. Click the Create... button to open the Self-signed digital certificate dialog box
  3. Complete the entries for Publisher name Organizational unit, Organizational name, E-mail, Country, Password, and Confirm Password.
  4. Specify the type of certificate. The certificate Type option refers to the certificate's level of security: 1024-RSA uses a 1024-bit key (less secure), and 2048-RSA uses a 2048-bit key (more secure). When you're finished click OK.
  5. Save the information in a certificate file by completing the Save as entry or clicking the Browse... button to browse to a folder location. (For example, C:/Temp/mycert.pfx).
  6. Enter the same password that you assigned in step c in the Digital Signature dialog box and click OK. For more information about signing your Adobe AIR applications

To create the application and installer file, click the Publish button in the Application and Installer Settings dialog. Note that you must execute Test Movie or Debug Movie to create the SWF and application.xml files before creating the AIR file.

To install the application, double click the AIR file in the same folder where you saved your application.

Click the Install button in the Application Install dialog.

Review the Installation Preferences and Location settings and make sure that the 'Start application after installation' checkbox is checked. Then click Continue.

Click Finish when the Installation Completed message appears.