【来自KEVIN HOYT】【代码下载】【强烈推荐】Samples Updated for AIR Beta 3 | Kevin Hoyt

导读:


我只说两件事:第一件事是这篇文章提供了很多的AIR源代码下载。


第二件事就是下载的地址是: available for download.


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)
  1 comment
  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.

本文转自
http://blog.kevinhoyt.org/2007/12/18/samples-updated-for-air-beta-3/

你可能感兴趣的:(JavaScript,sqlite,chrome,Flash,AIR)