RSS

Adobe Air 2.6 with Flash CS5

25 Mar

Download Adobe air 2.6
http://www.adobe.com/products/air/sdk/

 

Setting Up Flash CS5

1. replace Program FIles\Adobe\Adobe Flash CS5\Common\Configuration\ActionScript 3.0\AIR2.0\airglobal.swc with the airglobal.swc in the AdobeAIRSDK\frameworks\libs\air folder of the AIR 2.6 SDK zip file (AdobeAIRSDK.zip)

This lets you compile with the new SDK and use all the new API for camera roll, microphone, etc.

2. replace Program Files\Adobe\Adobe Flash CS5\AIK2.0 with the AdobeAIRSDK folder in the zip file (AdobeAIRSDK.zip) you downloaded from Adobe.

now you can do a test movie in Flash CS5 and it will use the new ADL for testing in Flash (finally works with landscape!).

Publishing

for publishing, unfortunately you cant use the built-in publish for iOS. i wrote this batch file and use it (also you can write an ant task if you use FDT/Flash Builder). This is for windows 64bit…

“C:\Program Files (x86)\Java\jre6\bin\java” -jar C:\AdobeAIRSDK\lib\adt.jar -package -target ipa-ad-hoc -storetype pkcs12 -keystore [KEYFILE].p12 -storepass [KEY PASSWORD] -provisioning-profile [MOBILE PROVISION FILE].mobileprovision [IPA NAME].ipa [XML FILE NAME].xml [SWF FILE NAME].swf Icon_29.png Icon_48.png Icon_57.png Icon_72.png Icon_512.png Default-Landscape.png Default-Portrait.png Default-PortraitUpsideDown.png Default-PortraitLandscapeLeft.png Default-PortraitLandscapeRight.png

i have a 64bit system so i had to specify the 32 bit JRE and use the ADT jar for packaging. now i just double-click the batch file and it compiles for iOS.

Original Post >>  http://forums.adobe.com/thread/826939?tstart=0

 
2 Comments

Posted by on March 25, 2011 in Android, flash, iPhone, Mobile Technology

 

2 responses to “Adobe Air 2.6 with Flash CS5

  1. knarrenheinz

    June 13, 2011 at 6:37 pm

    Thanks a lot 🙂

     
  2. Mikale

    August 25, 2011 at 3:04 am

    Hey.

    I updated my AIR SDK to 2.6 and it works testing in Flash CS5.

    Now I want to package to iPhone with the batch file above. I modified the file with to publish with the right certificates and file names, but when I double click the .bat file it just disappears. Nothing happens, no ipa file. What am I doing wrong? I have NEVER had any experience packaging with ADT before, I’ve always done it in Flash CS5. Could you explain how to do this a little please?

     

Leave a comment