AIR 2 / Flash Player 10.1 Beta Info

December 21, 2009By 10 Comments

The Adobe AIR 2.0 Beta and Flash Player 10.1 Beta releases are out and filled with some really cool, fun and powerful features. These are big releases as far as increasing developer productivity and in my opinion will further convince people to choose the Flash Platform as their technology direction.

I’ve been working with these two prereleases on top of Flash Builder (Flex 4) to build samples for Tour de Flex and made some notes on them as I’ve been trying the different APIs. I will summarize what I have learned so far and add to this post as I continue through them. Some of these may be totally obvious, but I will list them here anyway. The current Tour de Flex samples were built using the AIR 2.0 SDK build 121509. You can download AIR 2.0 Beta here. Some things to note:

1. Microphone Sample – this sample can be used with the internal microphone but you do need to make sure it is enabled and the volume is up. I also had to increase the volume on the Flash Player settings on my Macbook for the microphone to pick up the sound. To check your settings, go here and right click on the settings manager image, then choose ‘Settings’, and Microphone.

2. Gestures Sample – this sample requires multi-touch enabled hardware. I am using a Macbook which does have multi-touch support in the trackpad, but unless you have this or a multi-touch enabled device, the sample may not work for you. This article lists some devices that contain the support, as well as some other very useful info. Also, many samples out there are straight ActionScript classes that extend Sprite (for instance the one in the article referenced above). If you copy these into an AIR project and set the ActionScript class as the default application, you may find that you still see nothing when you run it. That is because you still need to go into the application descriptor file (yourappname-app.xml) and set the visible flag in the initial content to true. For instance:

		<!-- The main SWF or HTML file of the application. Required. -->
		<!-- Note: In Flash Builder, the SWF reference is set automatically. -->
		<content>[This value will be overwritten by Flash Builder in the output app.xml]</content>

		<!-- The title of the main window. Optional. -->
		<!-- <title></title> -->

		<!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
		<!-- <systemChrome></systemChrome> -->

		<!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
		<!-- <transparent></transparent> -->

		<!-- Whether the window is initially visible. Optional. Default false. -->

3. Global Error Handler Sample – this will only work right if you are running in ‘Run’ mode, debug mode will stop on the error itself and thus not be ‘handled’.

4. Native Process Sample – this sample assumes some default paths on the different OS’s, so if you have something custom then the ping may not work unless you change the path to the correct executable for your particular installation.

5. Socket Server Sample – this sample has two apps within it, a client app and a server app. The ServerSocket class is the new AIR 2 class allowing your app to be a socket server, and should first be started with the SocketServerSample.mxml file. Simply hit the ‘Listen’ button to start the server then run the SocketClientSample.mxml file to open the socket to the server and send data to it.

*** Note: Tour de Flex updated with the next five January 17, 2010 ***

6. Mass Storage Device Detection – this sample will allow you to access an external storage device such as a USB drive. Plug in an external device while running the sample and you will see the information about the device displayed as well as have the ability to browse the contents.

7. NetworkInfo – this sample will show your currently available network interfaces and some corresponding information about them.

8. Globalization – there are a few samples here that show how you can now do formatting of dates, numbers and currency based on a selected locale.

9. OS File Security Download – this sample shows how you can use the new File.downloaded property to check if a file has been downloaded or not. Run the sample and double click on a file, and a message will be displayed to indicate its download status.

10. DNS Lookup – this sample allows you to retrieve information about a specified Domain Name Server address. Simply run the sample and enter the domain name to perform a lookup. It also gives you the ability to specify an IP address and do a reverse lookup. This sample was based on a sample found here:

Lastly, here are some good links with more information and samples for these two prereleases:

Filed in: Adobe AIRFlex 4Flex/AIR Tags:

About the Author ()

Comments (10)

Trackback URL | Comments RSS Feed

Sites That Link to this Post

  1. Have you looked at Tour de Flex lately? « Greg Wilson's Ramblings | January 25, 2010
  1. Don Kerr says:

    Love the new Air 2 stuff on Tour! Thanks Holly!

    Merry Christmas!

    Don Kerr

  2. Don Kerr says:

    Hi Holly,
    Check out the two videos I made recently
    They are demos of Air 2.0 Multi-touch
    One of them is for a NASA project we are working on and the other combines the real-time data/Google Maps stuff I learned in your MAX class… but I added multi-touch to zoom and rotate to change the Yaw of the map.

    Fun stuff!

    • devgirl says:

      Hey Don! Just checked our your videos, super cool! You guys are working on some really neat cutting-edge stuff for NASA, it’s fun to see your progress. Thank you for sharing!! Holly

  3. Support for 10.1 is rising, and it’s looking amazing on many devices. This is definitely the best thing to happen to the mobile web in a long time.

  4. lordB8r says:

    Not sure why, but all the links I click on seem to point somewhere else and I just see a bunch of binary…

    • devgirl says:

      Hey there, which links are you referring to? I tried a bunch from the post and they seem, but are you referring to ones within Tour de Flex or links to other articles? Thanks!! Holly

      • lordB8r says:

        It’s very strange, but now the links are working. It might’ve been a firewall issues…Thanks for the great posts and community contributions! Keep up the good work.

        • devgirl says:

          Oh good, I’m glad the links are working now and thank you for the kind words 🙂 I noticed you have some really great content on your blog as well!

Leave a Reply