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)
This entry was posted
on Tuesday, December 18th, 2007 at 12:16 pm and is filed under AIR, Ajax, HTML, JavaScript.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
December 21st, 2007 at 3:30 am
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.. >.
December 22nd, 2007 at 10:11 pm
Thanks a lot for all those examples and the updates with every beta release.
December 27th, 2007 at 5:08 am
very good!
January 1st, 2008 at 12:13 pm
hello,
big thumbs up for this great adobe AIR overview!
grtz and happy new year
January 4th, 2008 at 11:53 am
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.
January 27th, 2008 at 12:49 pm
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
February 6th, 2008 at 5:11 am
Thanks alot for this resource .
March 26th, 2008 at 11:05 pm
Thank you for this samples, really it is great resource.
March 29th, 2008 at 1:08 pm
Excellent resource mate - thanks so much!
April 1st, 2008 at 9:35 am
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.
April 7th, 2008 at 9:52 pm
kevin, big thumbs up for this great adobe AIR overview!
thank you.
April 8th, 2008 at 8:27 am
Your samples much appreciated! Thanks!
April 8th, 2008 at 5:00 pm
Thanks a lot for the tutorial, the outcome is really beautiful.
April 10th, 2008 at 4:22 am
It’s samples of Aptana Studio …
April 10th, 2008 at 8:01 pm
Excellent Resource with very good comments already made thank you
April 12th, 2008 at 7:41 pm
Again, thanks for the resource. Excellent info as usual…
April 25th, 2008 at 10:01 am
Kevin, another great update! Appreciate you being on top of things and sharing with the rest of us.
April 26th, 2008 at 9:14 pm
As other have said thanks for the work you have put into this!
April 27th, 2008 at 7:07 am
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.
April 27th, 2008 at 2:41 pm
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??
April 27th, 2008 at 5:52 pm
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
April 27th, 2008 at 9:57 pm
awesome resource Kevin, totally great info, can’t wait for latest news.
April 27th, 2008 at 10:08 pm
Dragging files or dragging text?
April 28th, 2008 at 1:43 pm
@Cody, I think it means dragging text.
These look like some great updates, thanks for keeping up posted.
April 29th, 2008 at 8:35 am
Awesome review and a really useable resource. Its kind of you putting all of this info out here for the rest of us.
April 29th, 2008 at 10:26 am
Alex: I think that question was already asked above and no one knew the answer.
Why would ask the same again?
April 30th, 2008 at 6:38 pm
Thanks for great sample Kevin.
May 1st, 2008 at 4:21 pm
Another great post! Thats the way to go Kevin
May 2nd, 2008 at 5:48 am
Thanks for the article. Very clear and good brief.
May 3rd, 2008 at 10:10 pm
thanks nice text
May 4th, 2008 at 5:46 pm
awesome resource Kevin, totally great info, can’t wait for latest news.. thanks
May 5th, 2008 at 5:55 am
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.
May 5th, 2008 at 10:21 am
Amazing help kevin, thanks for the great posts
May 9th, 2008 at 5:33 am
Thanks for your review! Your articles are always very useful!
May 9th, 2008 at 8:37 am
Thanks for the samples!
May 10th, 2008 at 2:21 pm
Excellent info as usual.
Thanks a lot for the tutorial and for all the samples you have put together here.
May 11th, 2008 at 1:47 am
Thank Kevin so much for the list of updates! Very clear and good brief. I have been looking everywhere.
May 13th, 2008 at 7:03 am
This kind of examples are very usefull to learn new features. Thank you Kevin we are waiting same kind of definitions everytime the program updated.
May 14th, 2008 at 3:52 am
This is good enough to digg, thanks for this great post !!
May 17th, 2008 at 10:58 pm
Fantastic update! Can’t wait for more good stuff to come out.
May 18th, 2008 at 5:16 pm
Thanks Kevin, I especially liked the “dragging” samples. It adds so much to the user interface.
May 19th, 2008 at 5:47 am
Kevin,
awesome resource as always.
roll on 1.0!
thanks.
May 26th, 2008 at 3:52 pm
Very nice samples updated for AIR beta 3 also i liked this article to read, Good Luck!
Thank,
Simon G.
June 5th, 2008 at 3:59 pm
Excellent and useful compilation. Really there are great examples to learn and see what people make with AIR. Thanks.
June 6th, 2008 at 3:02 pm
Great post Kevin.
Thanks,
Denis
June 8th, 2008 at 10:22 am
great article kevin, thanks alot
Carl
June 10th, 2008 at 12:25 pm
Thanks for the samples. Most useful!
June 11th, 2008 at 6:23 am
Thank you for taking the time to publish this information very useful!
June 12th, 2008 at 2:05 pm
thanks for this useful information kevin
June 13th, 2008 at 6:10 pm
These samples were very usefull for me.thanx for these.i liked the samples.hoping to hear full soon.
June 13th, 2008 at 7:24 pm
The work is always worth it because the adobe air music samples are so good and the same goes with this pack of samples.I am glad that you put it online on your.I was searching for them from sometime.
June 13th, 2008 at 8:31 pm
The samples are really nice.thank you for posting them here.Can u tell me where can i get these now??if you know where to get these then please mail me.Thank you.
June 19th, 2008 at 4:46 am
thanks for this useful information kevin
June 19th, 2008 at 4:46 am
thanks
June 19th, 2008 at 4:47 am
Kevin,
awesome resource as always.
roll on 1.0!
thanks.
June 19th, 2008 at 2:02 pm
Really there are great examples to learn
June 19th, 2008 at 5:35 pm
Amazing help kevin, thanks for the great posts and realy nice samples.
July 7th, 2008 at 11:04 pm
Hi Kevin
I have not visited your blog in while. This is great stuff. My God how long have you been learning this stuff. The information on this blog is always amazing. Thanks for sharing with the rest of us!!
July 10th, 2008 at 2:43 pm
Thanks a lot for all those examples and the updates with every beta release.
August 27th, 2008 at 8:02 am
Thanks so much for these expamples.
I´ve a question to the “Determining the dimensions of an image”-example. This is only working for jpg-files…how can I change this script to get it work on png´s and gif´s? Is this possible?
Thanks for any help.
August 29th, 2008 at 3:27 pm
Stefanie,
Each image format stores this type of information differently. You can use a hex editor along side the file format specifications of the images your interested to better understand how they’re put together, and where the dimension information is stored. That’s essentially how I got the JPG version working. There are open source libraries out there as well, which you might look at for the purposes of porting.
If you have an AIR application and PNG/GIF sizes are important, let me know via email at khoyt _ at _ adobe _ dot _ com. I’d be interested in hearing your use-case, and may even find some time to squeak out an example.
Thanks,
Kevin