Samples Updated for AIR Beta 3

Every new update to Adobe AIR means one thing for me - a lot of additional work. When I first started putting together samples for the AIR Pocket Guide, it never occurred to me that I’d have to revisit them time and again. What started as a couple dozen examples has also now grown to be over forty (40) AIR samples, to include a number of full applications. That being said, I’m happy to announce that the samples update for AIR Beta 3 is complete, and are available for download.

  • Accessing data in the embedded SQLite database
  • Updating data in the SQLite database
  • Asynchronously reading text from a local file
  • Creating basic custom chrome
  • Connecting to the SQLite database
  • Adding custom window controls to custom chrome
  • Encoding a PNG using a Flash library
  • Full SQLite database example (create, read, update, delete)
  • Selecting a directory
  • Encoding a PNG using a JavaScript encoder
  • Selecting a file from the local disk
  • Dragging files into an AIR application
  • Applying Flash filters to HTML content
  • Creating a full screen window
  • Getting a list of files from the system clipboard
  • Testing connectivity to an HTTP endpoint
  • Save images of Yahoo! Maps to local disk as PNG
  • Custom chrome example using assets from Meebo
  • Selecting multiple files from disk
  • Creating a new native window
  • Drag complex content from AIR to native resource
  • Putting files on the system clipboard
  • Remembering user login with AIR encrypted local store
  • Using Flash Remoting from JavaScript
  • Scaling down a selected image
  • Determining the dimensions of an image
  • Capturing web cam images for a slideshow
  • Testing connection to any socket endpoint
  • Playing a sound file
  • Simple stopwatch application with custom chrome
  • Storing data in a SQLite database
  • Synchronously reading a text file from disk
  • Creating database tables in a SQLite database
  • Creating a temporary file
  • Dragging text from the system into an AIR application
  • Extracting the EXIF thumbnail from a JPEG image
  • Uploading a file in the background
  • Creating a basic popup window
  • Writing text content to a local file
  • Reading XML data using XMLHttpRequest (XHR)
  • 31 comments

    1. Keeto O. Dec 21

      One of the things that I really haven’t resolved in Beta 3 is dragging files into an AIR app that contains a classic sandbox. I’ve posted on the forums but I really didn’t find (or get) any answers.

      With your example, it seems that dragging files from the desktop to the app seems pretty straightforward. But when you couple it with the classic sandbox–urgh! Just plain urgh.

      In the previous beta, I could set up my app inside the classic sandbox like how you setup yours in you sample. When a ondrop event is fired from within the classic sandbox, the handler function (also inside the classic sandbox) will be able to get the filelist (through event.dataTransfer.getData) and process each file. But because of the new security implementations, this doesn’t work anymore and fires a FilePathAccess error.

      Sorry if this is getting long, but I find it stupid that I can’t access the file list or even pass it to a function inside through the parentSandboxBridge for processing. Yeah, I know that the classic sandbox should be able to access the API directly–but how are we going to handle drag events if we have a classic sandbox iframe set to 100% width and 100% height? It seems impossible and stupid.

      Sorry again.. But I’m just so frustrated.. >.

    2. Folkert Dec 22

      Thanks a lot for all those examples and the updates with every beta release.

    3. liuzq Dec 27

      very good!

    4. Thomas Jan 1

      hello,

      big thumbs up for this great adobe AIR overview!

      grtz and happy new year

    5. CD Jan 4

      Kevin,

      Thanks for the plethora of samples. I just started working with Flex and was very excited by AIR as I am working on small desktop apps. In particular I am very interested in the built-in SQLite and how it works as I have never used it. I really look forward to combing through all your samples.

      Thanks again for helping out a Flex noob.

    6. Adam McCrossan Jan 27

      Hi,

      Thanks for all the samples you have put together here :) I found them to be really helpful in the app. I’m currently working on.

      I do have one question that maybe you could help me with though, I didn’t know where else to ask so I thought maybe you could help?

      I have a large amount of jpeg URL’s stored as strings in my SQLite database, I need to populate the source’s of 10 image components in my mxml code with the string value of the first 10 URL’s stored in my db table.

      Can you please help?

      Many Thanks
      Adam

    7. Chirag Feb 6

      Thanks alot for this resource .

    8. Adel Mar 26

      Thank you for this samples, really it is great resource.

    9. mogs Mar 29

      Excellent resource mate - thanks so much!

    10. Mike Apr 1

      With your example, it seems that dragging files from the desktop to the app seems pretty straightforward. But when you couple it with the classic sandbox–urgh! Just plain urgh.

    11. steve lee Apr 7

      kevin, big thumbs up for this great adobe AIR overview!

      thank you.

    12. Axel B. Apr 8

      Your samples much appreciated! Thanks!

    13. Venturi Apr 8

      Thanks a lot for the tutorial, the outcome is really beautiful.

    14. Nico Apr 10

      It’s samples of Aptana Studio …

    15. sohni Apr 10

      Excellent Resource with very good comments already made thank you

    16. Cody Apr 12

      Again, thanks for the resource. Excellent info as usual…

    17. MissDanni Apr 25

      Kevin, another great update! Appreciate you being on top of things and sharing with the rest of us.

    18. Tony Apr 26

      As other have said thanks for the work you have put into this!

    19. Alex Apr 27

      One of the things that I really haven’t resolved in Beta 3 is dragging files into an AIR app that contains a classic sandbox. I’ve posted on the forums but I really didn’t find (or get) any answers.

    20. Zoe Apr 27

      This may not be the best place to post this inquiry, but i know it sprung up on a client app when Air Beta 2 was introduced. Air no longer allows for writing files to the applicationResourceDirectory (relative to the AIR app), but it does allow writing to the applicationStorageDirectory. Problem is, I’m downloading FLVs to play in a flex VideoPlayer component and the component only seems to support playing *relative* files. If I were able to write to applicationResourceDirectory, I’d be fine, but neither an absolute Windows file path (”C:\docs and settings\Application data…”) nor a “file:///C:\…” path will play in the VideoPlayer. Is there a way to make this work??

    21. Ambit Apr 27

      Kevin
      Thank you so much for the list of updates!! I have been looking everywhere.
      I agree with Keeto O it has been really frustrating. Though now using your example dragging files from the desktop to the app is really easy.
      Thanks again for taking the time to make this updated post!
      Thank Ambit

    22. Kamran Apr 27

      awesome resource Kevin, totally great info, can’t wait for latest news.

    23. Cody Apr 27

      Dragging files or dragging text?

    24. Travis Apr 28

      @Cody, I think it means dragging text.

      These look like some great updates, thanks for keeping up posted.

    25. Steve Apr 29

      Awesome review and a really useable resource. Its kind of you putting all of this info out here for the rest of us.

    26. Matt Apr 29

      Alex: I think that question was already asked above and no one knew the answer.
      Why would ask the same again?

    27. Elektro Apr 30

      Thanks for great sample Kevin.

    28. Date May 1

      Another great post! Thats the way to go Kevin ;)

    29. Kadın May 2

      Thanks for the article. Very clear and good brief.

    30. Tomelloso May 5

      Great compilation Kevin, now that AIR has been updated, for when a new post with new applications? Sure that you write new and useful post with an excellent compilation. Thanks.

    31. Ismail May 5

      Amazing help kevin, thanks for the great posts ;)

    Leave a reply