AIR Samples

Welcome to the Adobe AIR JavaScript Samples
Synchronous File Access (Text)
Create a Text File
Select Any Single File
Select a Single Text File
Select Multiple Image Files
Select a Directory
Get a Directory Listing
Determine if a File Exists
Determine the Size of a File
Read a Text File
Delete a Single File
Create a Directory
Delete a Directory
Append Text to an Existing File
Create a Temporary File
Move a Temporary File to the Desktop
Synchronous File Access (Binary)
Determine if a Selected File is JPG, PNG or GIF
Determine the Dimensions of an Image File
Encode a PNG Image File
Encode a JPG Image File
Scale an Image File to Fit
Clipboard Access
Put Text on the Clipboard
Put a File on the Clipboard
Put Multiple Files on the Clipboard
Put Both Text and File on the Clipboard
Put a Bitmap on the Clipboard
Determine the Types of Content on the Clipboard
Get Text From the Clipboard
Get Files From the Clipboard
Get a Bitmap From the Clipboard
Clear the Clipboard
Remove a Specific Type of Content from the Clipboard
Drag and Drop
Drag Text Out of This Application
Drag a File Out of This Application
Drag Something From Another Source Onto Here
Access Only the Text Content Dragged Onto Here
Access Only the Files Dragged Onto Here
Drag a Bitmap Into This Application
Convert a Dragged Bitmap to a PNG Image File
Allow Only Text Dragged Onto Here
Allow Only Files Dragged Onto Here
Synchronous SQLite Access
Create a Blank Database
Determine if a Table Exists
Create a New Table
Populate a Database Table
Read All Records From a Database Table
Read a Single Record From a Database Table
Update a Record in a Database Table
Delete a Record From a Database Table
Delete All the Records From a Database Table
Encrypted Local Store
Put Some Data Into the Local Store
Get Some Data Out of Local Store
Remove Some Data in the Local Store
Remove All the Data in the Local Store
Native Windows
Create a New Native Window
Create a Native Window That Cannot Be Resized
Create a Native Window That Cannot Be Maximized
Create a Native Window That Cannot Be Minimized
Enforce a Maximum Size for a Native Window
Enforce a Minimum Size for a Native Window
Position a New Window in the Center of the Screen
Control Initial Position and Size of New Window
Create a Native Window With Initial Content
Make a Native Window Always in Front
Create a Native Window Without System Chrome
Create a Transparent Native Window
Programmatically Close This Application
Programmatically Maximize This Application
Programmatically Restore Window Size After Maximizing
Programmatically Minimize This Application
Provide an Alternative Handle for Moving a Window
Create Custom Chrome on a New Window
Network Availability
Determine if Application Can Connect to HTTP Endpoint
Determine if Application Can Connect to Socket Endpoint
Other
Play an MP3 Sound File
Call a Function in the Non-Application Sandbox