11 Replies Latest reply: Oct 5, 2011 7:59 AM by TwoMogsCafe RSS

    How to Installing AIR3 SDK in Adobe Flash CS5.5?

    Porawee Community Member

      Hi All,

       

      Can  anyone help me, with installing AIR3 SDK in Adobe Flash CS5.5?,

      I try to extract rename AIR3.0 to AIR2.6 and copy to the same location as AIR2.6 in "C:\Program Files\Adobe\Adobe Flash CS5.5" and

      try to extract and add AIR3.0  to the same location as AIR2.6 in "C:\Program Files\Adobe\Adobe Flash CS5.5"

       

      But it's not work, I don't see publish for runtime AIR3.0.

       

      Thanks,

      Porawee

        • 1. Re: How to Installing AIR3 SDK in Adobe Flash CS5.5?
          Porawee Community Member

          I search from other site and found this :

           

          http://blog.prevail.co.nz/2011/06/21/overlaying-air2-7-in-flash-cs5/

           

          I follow step by step and replace AIR2.7 with AIR3.0 and Flash CS5 with Flash CS5.5

           

          It's well done with AIR3.0 and both iphone and android version.

           

          Thank.

          Porawee

          • 2. Re: How to Installing AIR3 SDK in Adobe Flash CS5.5?
            dasessig Community Member

             

             

            http://blog.prevail.co.nz/2011/06/21/overlaying-air2-7-in-flash-cs5/

             

             

            Hi There,

             

            I tried to install AIR3.0 to Flash CS5.5 (on MacOSX) as it is shown on this blog, but I had some problems/questions:

             

            1.)

            In step 12. of the blogpost what do I have to enter to the AirPhone.xml?

            - is the player id still PFI1_0?

            - is the version now 13?

            - Do I have to make any changes at the publishobject2 id / version oder intversion?

            - is the path platform "Mac" still Air2_5.bundle?

             

            2.)

            After I published my project ( for preview ) there just was a diffuse screen in the adl - the game did not start. No Objects were put on the screen.

             

            3.)

            After I published the same project / game as an .ipa file and put it on the iPad - it worked. The App started fine and I was able to play - BUT - all my grafics (illustrations / pngs) seemed blurred / out of focus. Publishing the same project with AIR2.7 all my grafics are looking very sharp / fine - even when they are scaled ( < 1 ).  

             

            Any ideas why that happend?

             

            Thanks a lot

            dasessig


            • 3. Re: How to Installing AIR3 SDK in Adobe Flash CS5.5?
              Porawee Community Member

              Ok dasessig, I will explain step by step with my solved for WIN version reference from original http://blog.prevail.co.nz/2011/06/21/overlaying-air2-7-in-flash-cs5/.

              * I have installed only Adobe Flash Professional CS5.5, not need CS5.0, I don't test in OSX version but i think it's same as WIN version.

               

                 1.  Download and extract the latest AIR 3.0 SDK.  and extrack to AIR2.6.

                      Note : I got this file "air3_rc1_sdk_win_090611.zip" and extrack files to "AIR2.6"

               

                 2.  Download and install Adobe Flash CS5.5.

               

                 3.  Closed Flash Professional CS5.5.

               

                 4.  Place the folder in either of the following locations:

                        WIN: C:\Program Files\Adobe\Adobe Flash CS5.5\

                        OSX: Applications/Adobe Flash CS5.5/

                      Note : It's will replace WIN: C:\Program Files\Adobe\Adobe Flash CS5.5\AIR2.6

               

                 5.  Create new folder name "AIR3.0" in "Adobe Flash CS5.5/Common/Configuration/ActionScript 3.0/"

               

                 6.  Browse to the Adobe\Adobe Flash CS5.5\AIR2.6\frameworks\libs\air\ and copy airglobal.swc.

               

                 7.  Paste the SWC "airglobal.swc" file in Adobe Flash CS5.5/Common/Configuration/ActionScript 3.0/AIR3.0/.

               

                 8.  Browse to Adobe Flash CS5.5/Common/Configuration/Players/ and copy "AdobeAIR2_6.xml" and paste to new copy file.

               

                 9.  Rename new copy file "AdobeAIR2_6.xml" to "AdobeAIR3_0.xml".

                      Note : Make sure you rename new copy file NOT original file "AdobeAIR2_6.xml"

               

                10.  Open and Edit "AdobeAIR3_0.xml" to match below xml :

               

              <?xml version="1.0" encoding="UTF-8"?>

              <players>

                <player id="AdobeAIR3_0" version="13" asversion="3" minasversion="3">

                  <name>AIR 3.0</name>

                  <publishobject2 id="Air2_5" version="2.6" intversion="2.6"></publishobject2>

                  <path platform="WIN">Air2_5.dll</path>

                  <path platform="MAC">Air2_5.bundle</path>

                  <playerDefinitionPath as2="$(UserConfig)/Classes/FP9;$(UserConfig)/Classes/FP8;$(UserConfig)/Classes/FP7" as3="$(AppConfig)/ActionScript 3.0/AIR3.0/airglobal.swc" />

                  <!-- This item is used to indicate that some UI integrated within Flash should be enabled for this player.

              -->

                  <feature name="multiScreenPublish" supported="false" />   

                  <feature name="mobileDebug" supported="true" />

                  <feature name="apolloPublish" supported="true" />

                  <feature name="apolloTestMovie" supported="force"/>

                  <feature name="apolloDebugMovie" supported="true"/>

                  <feature name="apolloPackaging" supported="true"/>

                  <feature name="publish_localPlaybackSecurity" supported="false" />

                  <feature name="publish_hardwareAcceleration"     supported="true" />

                  <feature name="useDefineFont4ForDeviceText"          supported="true" />

                  <feature name="useDefineFont4ForEmbeddedFonts"       supported="true" />

                  <feature name="textLayoutFramework"       supported="true" />

                  <encodingPresets>

                      <preset uuid="0c95a8ba-8b71-44d5-b269-8fd1cf89a6ed"  name="F4V - Same As Source (Flash 9.2 and Higher)" ext="f4v" default="true"/>

                  </encodingPresets>

                </player>

              </players>

               

              11.  Run Adobe Flash CS5.5 > File > New... > ActionScrip 3.0


                12.  Now you have new file "Untitled-1.fla" then add below code to frame 1.

                      import flash.desktop.NativeApplication;

                      trace(NativeApplication.nativeApplication.runtimeVersion);

               

                13.  goto menu File > Publish Setting...   select target Player : AIR 3.0


                14.  Test with menu Control > Test Movie > in AIR Debug Launcher (Desktop)

               

                15.  Finally, you should have output in panel like this :

                       [SWF] Untitled-1.swf - 2148 bytes after decompression

                       3.0.0.3880

               


                Note : AIR3.0 for iOS and Android is below, you should followed step 1-10 before.

               

                AIR3.0 for iOS : open and edit "AiriPhone.xml" in "C:\Program Files\Adobe\Adobe Flash CS5.5\Common\Configuration\Players"

               

              < ?xml version="1.0" encoding="UTF-8"?>

              <players>

              <player id="PFI1_0" version="13" asversion="3" minasversion="3">

                  <name>AIR for iOS</name>

              <publishobject2 id="Air2_5" version="3.0" intversion="3.0"></publishobject2>

              <path platform="WIN">Air2_5.dll</path>

              <path platform="MAC">Air2_5.bundle</path>

              <playerdefinitionpath as2="$(UserConfig)/Classes/FP9;$(UserConfig)/Classes/FP8;$(UserConfig)/Classes/FP7" as3="$(AppConfig)/ActionScript 3.0/AIR3.0/airglobal.swc" />

                  <!-- This item is used to indicate that some UI integrated within Flash should be enabled for this player.
              -->

                  <feature name="multiScreenPublish" supported="false" />

                  <feature name="mobileDebug" supported="true" />

                  <feature name="apolloPublish" supported="true" />

                  <feature name="apolloTestMovie" supported="force"/>

                  <feature name="apolloDebugMovie" supported="true"/>

                  <feature name="apolloPackaging" supported="true"/>

                  <feature name="publish_localPlaybackSecurity" supported="false" />

                  <feature name="publish_hardwareAcceleration"      supported="true" />

                  <feature name="useDefineFont4ForDeviceText"          supported="true" />

                  <feature name="useDefineFont4ForEmbeddedFonts"       supported="true" />

                  <feature name="textLayoutFramework"       supported="true" />

                  <feature name="rslLinkageSuppressed"       supported="true" />

                  <encodingpresets>

              <preset uuid="0c95a8ba-8b71-44d5-b269-8fd1cf89a6ed"  name="F4V - Same As Source (Flash 9.2 and Higher)" ext="f4v" default="true"/>

              </encodingpresets>

                </player>

              </players>

               

               

                 AIR3.0 for Android : open and edit "Android.xml" in "C:\Program Files\Adobe\Adobe Flash CS5.5\Common\Configuration\Players"

               

              < ?xml version="1.0" encoding="UTF-8"?>

              <players>

              <player id="android_0" version="13" asversion="3" minasversion="3">

                  <name>AIR for Android</name>

              <publishobject2 id="Air2_5_Android" version="3.0" intversion="3.0"></publishobject2>

              <path platform="WIN">Air2_5_Android.dll</path>

              <path platform="MAC">Air2_5_Android.bundle</path>

              <playerdefinitionpath as2="$(UserConfig)/Classes/FP9;$(UserConfig)/Classes/FP8;$(UserConfig)/Classes/FP7" as3="$(AppConfig)/ActionScript 3.0/AIR3.0/airglobal.swc" />

                  <!-- This item is used to indicate that some UI integrated within Flash should be enabled for this player.
              -->

                  <feature name="multiScreenPublish" supported="false" />

                  <feature name="mobileDebug" supported="true" />

                  <feature name="apolloPublish" supported="true" />

                  <feature name="apolloTestMovie" supported="force"/>

                  <feature name="apolloDebugMovie" supported="true"/>

                  <feature name="apolloPackaging" supported="true"/>

                  <feature name="publish_localPlaybackSecurity" supported="false" />

                  <feature name="publish_hardwareAcceleration"      supported="true" />

                  <feature name="useDefineFont4ForDeviceText"          supported="true" />

                  <feature name="useDefineFont4ForEmbeddedFonts"       supported="true" />

                  <feature name="textLayoutFramework"       supported="true" />

                  <feature name="rslLinkageSuppressed"       supported="true" />

                  <encodingpresets>

              <preset uuid="0c95a8ba-8b71-44d5-b269-8fd1cf89a6ed"  name="F4V - Same As Source (Flash 9.2 and Higher)" ext="f4v" default="true"/>

              </encodingpresets>

                </player>

              </players>

               

              Hope it's should work for you.

              Thank,


              • 4. Re: How to Installing AIR3 SDK in Adobe Flash CS5.5?
                okislev Community Member

                I did all that, and i can see 3.0.0.3880 but(!) I dont have "AIR for iOS" anymore as a player, and I can't set up the ios settings!

                I copied the text from your post into airiphone.xml

                what to do?


                • 5. Re: How to Installing AIR3 SDK in Adobe Flash CS5.5?
                  dasessig Community Member

                  Hi Porawee,

                   

                  thank you for your help!!!

                   

                  As I said I´m working ob Mac OSX, with Flash CS5.5 building an App for the iPad –  and unfortunately I still have the same problems as before.

                  7.  Paste the SWC "airglobal.swc" file in Adobe Flash CS5.5/Common/Configuration/ActionScript 3.0/AIR3.0/.


                    Note : AIR3.0 for iOS and Android is below, you should followed step 1-10 before.


                   

                  < ?xml version="1.0" encoding="UTF-8"?>

                  <players>

                  <player id="PFI1_0" version="13" asversion="3" minasversion="3">

                      <name>AIR for iOS</name>

                  <publishobject2 id="Air2_5" version="3.0" intversion="3.0"></publishobject2>

                  <path platform="WIN">Air2_5.dll</path>

                  <path platform="MAC">Air2_5.bundle</path>

                  <playerdefinitionpath as2="$(UserConfig)/Classes/FP9;$(UserConfig)/Classes/FP8;$(UserConfig)/Cla sses/FP7" as3="$(AppConfig)/ActionScript 3.0/AIR3.0/airglobal.swc" />

                   


                   

                  It only "works" when I name the folder in step 7. AIR 2.6 and when I´m changing the Airphone.xml to this:

                   

                  <?xml version="1.0" encoding="UTF-8"?>

                  <players>

                    <player id="PFI1_0" version="13" asversion="3" minasversion="3">

                      <name>AIR for iOS</name>

                      <publishobject2 id="Air2_5" version="2.6" intversion="2.6"></publishobject2>

                      <path platform="WIN">Air2_5.dll</path>

                      <path platform="MAC">Air2_5.bundle</path>

                      <playerDefinitionPath as2="$(UserConfig)/Classes/FP9;$(UserConfig)/Classes/FP8;$(UserConfig)/Classes/FP7" as3="$(AppConfig)/ActionScript 3.0/AIR2.6/airglobal.swc" />

                  .

                  .

                  .

                   

                  ... otherwise im getting this error message:

                  eror.jpg

                   

                   

                  Publishig the projekt to the adl i´m still getting a diffuse screen - nothing more. With Air3.0 (on Mac OSX / Flash CS5.5 / Air for iOS) the game looks like this in the adl:

                  diffuse.jpg

                   

                   

                   

                  and it should be looking like that (This is the same projekt using AIR2.7.1:

                  fine.jpg

                   


                  ... so testing with AIR3.0 is not really working. I allways have to publish the .ipa and this takes a lot of time.

                   

                  But at least the .ipa ist working fine on my iPad – besides some PNG Images which seem to be out of focus / blurred in some way. I don´t have this problem creating the .ipa file using AIR2.7 (.1).  on teh same project. Here EVERYTHING looks very sharp.

                   

                  Do you have an idea why I have those problems with the adl?

                   

                  And I wonder why I cant find any official readme files or instructions how to install AIR to flash from adobe itsself!?

                   

                  Thanks

                   

                  dasessig

                  • 6. Re: How to Installing AIR3 SDK in Adobe Flash CS5.5?
                    Porawee Community Member

                    Oh! okislev and dasessig , I'm very sorry it's my fault.

                     

                    Open file AiriPhone.xml in line

                         <publishobject2 id="Air2_5" version="3.0" intversion="3.0"></publishobject2>


                         **if you try publish with this line of xml after installed AIR3.0, it's will error like below:

                         Error :

                              At line 354 of file "ArtemisJSExtension.cpp":

                              Cannot find file C:/PROGRA~1/Adobe/ADOBEF~2.5/AIR3.0/bin/adl.exe

                         change it to:

                     

                         <publishobject2 id="Air2_5" version="2.6" intversion="3.0"></publishobject2>

                     

                    Open file Android.xml in line  

                         <publishobject2 id="Air2_5_Android" version="3.0" intversion="3.0"></publishobject2>

                     

                         **if you try publish with this line of xml after installed AIR3.0, it's will error like below:

                         Error :

                              At line 319 of file "ArtemisJSExtension.cpp":

                              Cannot find file C:/PROGRA~1/Adobe/ADOBEF~2.5/AIR3.0/bin/adl.exe

                         change  it to:

                         <publishobject2 id="Air2_5_Android" version="2.6" intversion="3.0"></publishobject2>

                     

                    it's should work properly.

                     

                    **if you have some trouble again try this below for test your app publish setting.

                    if you install Adobe Flash CS5 normally it's should have player list like below :

                         Player :

                              Flash Player 5

                              Flash Player 6

                              Flash Player 7

                              Flash Player 8

                              Flash Player 9

                              Flash Player 10

                              Adobe AIR 2.0

                              iPhone OS

                              Flash Lite 1.0

                              Flash Lite 1.1

                              Flash Lite 2.0

                              Flash Lite 2.1

                              Flash Lite 3.0

                              Flash Lite 3.1

                              Flash Lite 4.0

                     

                    But if you install Adobe Flash CS5.5 normally it's should have player list like below :

                         Player :

                              Flash Player 5

                              Flash Player 6

                              Flash Player 7

                              Flash Player 8

                              Flash Player 9

                              Flash Player 10

                              Flash Player 10.1 & 10.2

                              Flash Player 5

                              AIR 2.5

                              AIR 2.6

                              AIR for iOS

                              AIR for Android

                              Flash Lite 1.0

                              Flash Lite 1.1

                              Flash Lite 2.0

                              Flash Lite 2.1

                              Flash Lite 3.0

                              Flash Lite 3.1

                              Flash Lite 4.0

                     

                    You should try follow this step if make sure your Adobe Flash CS5.5 installed normally

                     

                         *I recommend Adobe Flash CS5.5 because i test it's with this version.

                         1.  Run Adobe Flash CS5.5

                              don't run program with open fla file

                     

                         2.  Goto menu File > New...


                         3.  In General tab under category Type : you will see list same as below.

                     

                              ActionScript 3.0

                              ActionScript 2.0

                              AIR

                              AIR for Android

                              AIR for iOS

                              Flash Lite 4

                              Adobe Devzice Central

                              ActionScrip 3.0 Class

                              ActionScrip 3.0 Interface

                              ActionScrip 3.0 File

                              ActionScrip 3.0 Communication File

                              Flash JavaScript File

                              Flash Project

                     

                         4.  Choose AIR for iOS and click OK button.

                     

                         5.  Now you have new file name Untitled-1

                     

                         6.  Goto File > Publish Settings... , you will see on panel like below

                              Player : AIR for iOS         [ wrench icon ]

                              Script : ActionScript 3.0   [ wrench icon ]

                     

                         7.  Finally, click [ wrench icon ] after AIR for iOS, then you will see panel AIR for iOS Settings

                     

                         **If you have problem or not success from step 1-7, i think your Adobe Flash have some critical problem

                         I recommend you should :

                         1.  Uninstall Adobe Flash CS5 and Adobe Flash CS5.5.

                     

                         2.  Make sure in C:\Program Files\Adobe NOT have folder Adobe Flash CS5 or Adobe Flash CS5.5


                         3.  Restart your computer.

                     

                         4.  Fresh, Install new Adobe Flash CS5.5

                     

                         5. Finally, try 1-7 step again if successed just try install AIR3.0 again.

                     

                    I test only in program Adobe Flash CS5.5 and windows install version.

                    if you have some problem about installation on iOS device and android device

                    you should create new post discussion topic in forum.

                     

                    Hope you enjoy with AIR 3.0.

                     

                    Thanks for your interesting.

                    Porawee

                    • 7. Re: How to Installing AIR3 SDK in Adobe Flash CS5.5?
                      Porawee Community Member

                      Umm.. dasessig,

                          I allways have to publish the .ipa and this takes a lot of time.

                           - yes, it's takes a lot of time when publish. I think because of ipa file must embed AIR runtime in ipa file.

                           Apple not allowed air runtime or flash player install on iOS device.

                       

                           Do you have an idea why I have those problems with the adl?

                           - it's my fault, i post how to solved that problem already.

                      I test performance my App on PC it's reduce ram eating from 56Mb to 11Mb and FPS rise up from 17 / 20 fps to 20 / 20 fps.

                       

                           And I wonder why I cant find any official readme files or instructions how to install AIR to flash from adobe itsself!?

                           - I think developer not release some of code that full connect to Adobe Flash CS5.5.

                      Maybe it's will release as plugin that Adobe Extension Manager can installed through Flash CS5.5 or embed in next version Flash CS6.

                      • 8. Re: How to Installing AIR3 SDK in Adobe Flash CS5.5?
                        dasessig Community Member

                        Porawee - thanks for the update!

                         

                        I did everything as you described it. I even un - and reinstalled Flash CS5.5. Now there is no more Error message using AIR 3.0 - but in the adl I still only get a difuse screen ( as shown above). Is this an OSX only Bug with the adl? I hope adobe can fix this soon. ... or are there any setting I should not use ( maybe in the AS3 / Publishing or AIR for iOS settings?)

                         

                        ... its very hard to work with this adl "bug" as I always have to publish the .ipa file, install it on the iPad test it ... and so on.

                         

                        So if you have any more clues - i´d like to hear it!

                        • 9. Re: How to Installing AIR3 SDK in Adobe Flash CS5.5?
                          Porawee Community Member

                          Hi dasessig,

                           

                          I think AIR3.0 not completed on this time and not stable for all device. We will waiting until the end of released version,

                          then try again. I think some hard code in AIR3.0 is problem and cause of incomplete installation and critical bug on screen.

                           

                          But if you hope it's may have some method to complete installation and testing on device,

                          I collect some thread that maybe help you track to your problem.

                           

                          this link discuss about "AIR 3.0 and iOS":

                               http://www.actionscript.org/forums/showthread.php3?p=1099481

                           

                          this link similar my post about "Overlaying AIR 2.7 SDK for Flash Professional CS5.5"

                               http://www.youtube.com/watch?v=EttlK-l4Zdg

                               http://kb2.adobe.com/cps/908/cpsid_90810.html

                           

                          this link is my other topic in this forum "How to Installing AIR3 SDK in FlashDevelop 3 ?"

                               http://forums.adobe.com/thread/907365?tstart=0

                           

                          this link is useful about working of AIR that making app with AIR SDK Only! "AIR 101"

                               http://www.senocular.com/flash/tutorials/air101/

                           

                          Hope you success,

                          Porawee

                          • 10. Re: How to Installing AIR3 SDK in Adobe Flash CS5.5?
                            aviv_heiwleil Community Member

                            hi....

                            thank you for sharing this.

                             

                            I did all the steps very carefully (including the fixes);, and I can see AIR 3 on my publishing list.

                            but When I try to publish some simple code (trace statement) in Android or IOS I get a list of errors

                            starting with

                            1172: Definition __AS3__.vec:Vector could not be found?

                             

                            Any ideas what went wrong

                             

                            I'm using CS5.5 on WIN

                            • 11. Re: How to Installing AIR3 SDK in Adobe Flash CS5.5?
                              TwoMogsCafe Community Member

                              hi Porawee

                              Thank you for this article - perhaps you can help me get everything right.

                              I have run through all your steps, including your amendments, but i am getting this error:

                              error_AIR3 install.png

                              I have tried removing all your edits, and thhis removes the error.

                              Do you have an idea what might be causing this?

                              I have CS5.5, on Win7 64

                              Thank you.