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
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.
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 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.
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.
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.
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??
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
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.
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.. >.
Folkert Dec 22
Thanks a lot for all those examples and the updates with every beta release.
liuzq Dec 27
very good!
Thomas Jan 1
hello,
big thumbs up for this great adobe AIR overview!
grtz and happy new year
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.
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
Chirag Feb 6
Thanks alot for this resource .
Adel Mar 26
Thank you for this samples, really it is great resource.
mogs Mar 29
Excellent resource mate - thanks so much!
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.
steve lee Apr 7
kevin, big thumbs up for this great adobe AIR overview!
thank you.
Axel B. Apr 8
Your samples much appreciated! Thanks!
Venturi Apr 8
Thanks a lot for the tutorial, the outcome is really beautiful.
Nico Apr 10
It’s samples of Aptana Studio …
sohni Apr 10
Excellent Resource with very good comments already made thank you
Cody Apr 12
Again, thanks for the resource. Excellent info as usual…
MissDanni Apr 25
Kevin, another great update! Appreciate you being on top of things and sharing with the rest of us.
Tony Apr 26
As other have said thanks for the work you have put into this!
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.
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??
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
Kamran Apr 27
awesome resource Kevin, totally great info, can’t wait for latest news.
Cody Apr 27
Dragging files or dragging text?
Travis Apr 28
@Cody, I think it means dragging text.
These look like some great updates, thanks for keeping up posted.
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.
Matt Apr 29
Alex: I think that question was already asked above and no one knew the answer.
Why would ask the same again?
Elektro Apr 30
Thanks for great sample Kevin.
Date May 1
Another great post! Thats the way to go Kevin
Kadın May 2
Thanks for the article. Very clear and good brief.
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.
Ismail May 5
Amazing help kevin, thanks for the great posts