Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c03/h01/mnt/55667/domains/blog.michaeljbowen.com/html/wp-settings.php on line 472

Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c03/h01/mnt/55667/domains/blog.michaeljbowen.com/html/wp-settings.php on line 487

Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c03/h01/mnt/55667/domains/blog.michaeljbowen.com/html/wp-settings.php on line 494

Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c03/h01/mnt/55667/domains/blog.michaeljbowen.com/html/wp-settings.php on line 530

Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c03/h01/mnt/55667/domains/blog.michaeljbowen.com/html/wp-includes/cache.php on line 103

Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c03/h01/mnt/55667/domains/blog.michaeljbowen.com/html/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c03/h01/mnt/55667/domains/blog.michaeljbowen.com/html/wp-includes/theme.php on line 623
michaeljbowen.com » How to Overlay AIR 3.2 SDK in Flash CS 5.5 Professional
Home > Flash, iOS > How to Overlay AIR 3.2 SDK in Flash CS 5.5 Professional

How to Overlay AIR 3.2 SDK in Flash CS 5.5 Professional

March 9th, 2012

Getting the latest AIR SDKs to work with Flash CS 5.5 is a big pain.  The following steps will save you some trouble. (This is for Win 7, but something similar should work for Mac, I suppose)

Note: As always, make backups of anything that you overwrite.
It would be foolish to try this without a way to undo these changes.

1. Download the latest AIR 3.2 SDK here:
http://labs.adobe.com/downloads/air3-2.html

2. Extract the SDK

3. Rename the parent folder “AIR3.2″

4. Place the “AIR3.2″ folder in <FLASH CS5.5 DIR>\
(on Windows 7, this is located here: C:\Program Files (x86)\Adobe\Adobe Flash CS5.5)

5. Create a directory named “AIR3.2″ in  <FLASH CS5.5 DIR>\Common\Configuration\ActionScript 3.0\

6. Copy AIR3.2\frameworks\libs\air\airglobal.swc and paste it in the newly created <FLASH CS5.5 DIR>\Common\Configuration\ActionScript 3.0\AIR3.2 directory

7. Navigate to  <FLASH CS5.5 DIR>\Common\Configuration\Players\

8. Paste in the XML files found in this ZIP file: flashAirXML.zip

9. Remove (back up to somewhere) any other iOS XML file that already exists in  <FLASH CS5.5 DIR>\Common\Configuration\Players\
You can have multiple Android XML files here, but not iOS. I have no idea why.

That’s it.
You can now build to iOS with AIR 3.2 and take advantage of Stage3D!

Flash, iOS

  1. kurt
    March 14th, 2012 at 13:57 | #1

    hi thanks for the post but - “playerglobal.swc” doesn’t exist inside the AIR3.2 SDK RC 1 folder?

  2. March 14th, 2012 at 14:33 | #2

    Good catch. It should say “airglobal.swc”.
    I’ll update my instructions now.

  3. chunk
    March 16th, 2012 at 05:03 | #3

    Hi there, Im on OSX and tried this and followed through but I am getting a Namespace error (below)? and also when I preview cmd+enter I get no swf preview?

    /Users/**********/Desktop/test-app.xml: error 101: Namespace is missing

    Hopefully havent screwed my flash vers!

    any ideas?

    Thanks

  4. March 16th, 2012 at 08:08 | #4

    chunk, I haven’t tried this on a Mac.
    I’ll see if I can reproduce your error, but I probably don’t have time to do so until later this weekend.

    Did you make backup copies of files that you overwrote?

  5. Ooi
    March 19th, 2012 at 05:52 | #5

    Hi, I’m on Win7 and followed the steps above, but I getting following error:
    Error Creating Files.
    The AIR version set in the Publish Setting of the initial content SWF exceeds that allowed for the descriptor namespace.

    Pls help

    thanks

  6. st33d
    March 19th, 2012 at 12:56 | #6

    I’ve followed the steps exactly and on Windows XP with CS5.5 I get an alert saying:

    “iOS publishing requires files which are not installed. Please quit Flash Professional and run the original installer to ensure that all optional components are installed.”

    Before dicking around with it, it exported to iOS fine.

  7. March 19th, 2012 at 13:47 | #7

    Ooi, did you use the XML files I provided?
    Did you copy airglobal.swc to the specified directory?

  8. Ooi
    March 19th, 2012 at 20:57 | #8

    @admin
    Yup, I did. I copy Adobe Flash CS5.5\AIR3.2\frameworks\libs\air\airglobal.swc to
    Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0\AIR3.2
    and copy all the xml files provided into Adobe Flash CS5.5\Common\Configuration\Players and delete the original Airiphone.xml.
    Do I need upgrade to AIR3.0 before AIR3.2?

    Thanks

  9. Ooi
    March 19th, 2012 at 23:21 | #9

    Finally I managed publish my file, but I need change the -app.xml:
    to

    Am I do the correct way?

    thanks

  10. Ooi
    March 19th, 2012 at 23:22 | #10

    I mean change the [app-name]-app.xml
    application xmlns=”http://ns.adobe.com/air/application/2.6 to
    application xmlns=”http://ns.adobe.com/air/application/3.2

    thanks

  11. MrQ
    March 20th, 2012 at 11:14 | #11

    Hi, still have OOi’s Problem (Win7). In the …-app.xml is always marked “…./3.1″, even if i change it manually to 3.2 and make the file readonly.
    I get always the error:
    Error Creating Files.
    The AIR version set in the Publish Setting of the initial content SWF exceeds that allowed for the descriptor namespace. :(

  12. MrQ
    March 20th, 2012 at 11:24 | #12

    @MrQ
    addition: …i found out, that flash seems to use Flash CS5.5/AIR2.6/samples/descriptor-sample.xml to build the app’s xml. When i change the value to 3.2 within the descriptor-sample.xml, it seem’s to work.
    But why it takes this file out of the AIR2.6 folder and not the AIR3.2 folder?

  13. st33d
    March 21st, 2012 at 11:38 | #13

    Okay - went through it again, got it working. I didn’t understand the making two AIR3.2 folders.

    Got a Starling benchmark up and working on an iPod3G. It runs worse than the standard MovieClip benchmark I did. (Even checked the renderer was OpenGL.)

    D:

  14. March 21st, 2012 at 12:16 | #14

    @st33d, I’m glad to hear its working.
    It’s interesting that you have worse performance.
    Note that there are quite a few things that affect Starling when benchmarking.
    For example, be sure to build for iPhone as a “release” build instead of a quick/debug build.

  15. TheMonkeyTail
    March 28th, 2012 at 22:29 | #15

    hello! I’ve did this, but when I run my flash app it open and close, any idea?! :(

    all the best dude :)

  16. chunk
    March 29th, 2012 at 05:49 | #16

    yeah I made backups so I can reverse if need to etc…. thanks for the reply too @admin

  17. March 31st, 2012 at 11:21 | #17

    i’ ve followed te direction exactly and even rechecked but I keep getting the error “The air version set in the publish settings of the initial content exceeds that allowed for the descriptor namespace” any ideas?

  18. Kiu
    April 2nd, 2012 at 05:08 | #18

    Hi,
    Strange Problem: If I test any App ADL will open and immediately quit again with no errors. Very Strange. Any Ideas?

  19. April 4th, 2012 at 11:00 | #19

    @chunk
    hi, before i met the same thing with you, but i try to check the \ in the .xml for iOS line 3, and change become \\. it works when i execute the CMD+ENTER on my flash 5.5 OSX.

    and the result of my .ipa is faster than 2.6, but the .xml after you CMD+ENTER still show 2.6 version.
    :cheers:
    *sorry for my bad english if you didn’t undserstand. :D

  20. May 7th, 2012 at 00:20 | #20

    How do I get this working in Flash CS5? I followed these steps but apparently they don’t apply to flash cs5. The option to publish shows up, but I get the errors:

    (for air 3.2)- Atline 1 of file “Apollo_OpenSettingDialog.jsfl”:ReferenceError: Air2_5 is not defined

    (air for android 3.2) - Atline 1 of file “Apollo_OpenSettingDialog.jsfl”:ReferenceError: Air2_5_Android is not defined

    (air for iOS 3.2)- Atline 1 of file “Apollo_OpenSettingDialog.jsfl”:ReferenceError: Air2_5 is not defined

    The only instructions I can find are for flash cs5.5…

  21. May 8th, 2012 at 16:08 | #21

    @MrQ
    brilliant! finally got it working with updating the descriptor-sample.xml in the AIR2.6 folder! Thank you!

  22. brian
    May 23rd, 2012 at 23:17 | #22

    Apparently adobe is making 3.3 available now. Do you have 3.3 version xml files that I could use for it?

  23. May 24th, 2012 at 08:40 | #23

    @brian
    Brian, take a look at the XML files.
    You’ll be able to figure out how to tweak them.

    Also, note that Flash CS6 takes care of this problem so you don’t have to do any of these shenanigans.

  24. Fabio
    June 5th, 2012 at 15:09 | #24

    Im getting a definition flash.text.ReturnKeyLabel could not be found. It should be a library in AIR3.0 and up.

    Is is correct that I can only choose my player AIR 2.5, AIR 2.6, AIR for Android but not AIR 3.2?

  1. March 10th, 2012 at 12:57 | #1
  2. March 31st, 2012 at 18:30 | #2