Adobe air browser application




















Some versions of Linux allow you to set the file permissions on the Properties dialog opened through a context menu. Adobe AIR is installed as a native package. In other words, as rpm on an rpm based distribution and deb on a Debian distribution. Currently AIR does not support any other package format. Using the package installers:. Download the rpm or Debian package, depending on which package format your system supports.

Only one version of the AIR runtime can be installed at a time; you cannot have both a release and a development version installed. In a web page in a browser , click a seamless install link for the application. Adobe AIR lets developers install applications via a link or other user interface element in a SWF file embedded in a web page.

In either case, if a different version of the application is already installed, the AIR application installer asks the user if they want to update to the new version. If an updated version of Adobe AIR is required, the updated version is automatically installed. On Mac OS, to install or update an AIR application, the user needs to have adequate system privileges to install to the application directory and administrative privileges if the application needs to update the runtime.

On Windows, a user needs to have administrative privileges. Once an AIR application is installed, it can update itself if the developer has added code to do so. See the next section, Enterprise deployment. See Adobe AIR configuration. IT administrators can deploy the following:.

Silently install the AIR application using the same tools used to deploy the runtime. Only IT administrators can suppress the Adobe AIR end-user license agreement display and only after accepting the terms and conditions on the organization's behalf.

Specify whether the application's program menu or shortcut appears on end-users desktop. You can use the getDirectoryListing method of a File object to get an array of File objects pointing to files and subdirectories at the root level of a directory. For more information, see Enumerating directories.

The File class includes the following methods that present a system dialog box in which the user can select a file to assign to the object:. These methods are each asynchronous. The browseForOpen and browseForSave methods dispatch the select event when the user selects a file or a target path, in the case of browseForSave.

With the browseForOpen and browseForSave methods, upon selection the target File object points to the selected files. The browseForOpenMultiple method dispatches a selectMultiple event when the user selects files. The selectMultiple event is of type FileListEvent, which has a files property that is an array of File objects pointing to the selected files. If the application has another browser dialog box open when you call a browse method, the runtime throws an Error exception. You can also modify the path of an existing File object by calling the resolvePath method or by modifying the nativePath or url property of the object, as in the following examples on Windows :.

Use to specify a path relative to the root directory of the installed application the directory that contains the application. For example, the following path points to an images subdirectory of the directory of the installed application:.

Use to specify a path relative to the application store directory. For each installed application, AIR defines a unique application store directory, which is a useful place to store data specific to that application. For example, the following path points to a prefs.

Certain operating systems, most notably iOS and Mac OS X, provide users the ability to automatically back up application files to a remote storage. In addition, on iOS there are restrictions on whether files can be backed up and also where files of different purposes can be stored. For further information see the next sections.

To specify that a file does not need to be backed up and iOS only can be deleted by the operating system if device storage space runs low, save the file in the cache directory File. This is the preferred storage location on iOS and should be used for most files that can be regenerated or re-downloaded.

To specify that a file does not need to be backed up, but should not be deleted by the operating system, save the file in one of the application library directories such as the application storage directory File.

This is required by Apple for content that can be regenerated or downloaded again, but which is required for proper functioning of your application during offline use. By default all files in the application library folders are backed up. On Mac OS X this is the application storage directory.

On iOS, this includes the application storage directory, the application directory, the desktop directory, documents directory, and user directory because those directories are mapped to application library folders on iOS.

Consequently, any files in those directories are backed up to server storage by default. If you are saving a file in one of those locations that can be re-created by your application, you should flag the file so the operating system knows not to back it up. On iOS, files in the application library folders such as the application storage directory or the documents directory are flagged as permanent and are not deleted by the operating system.

Save files that can be regenerated by the application and are safe to delete in case of low storage space in the application cache directory. You access the cache directory using the File. On other operating systems, this directory is mapped to a comparable directory. On Windows, the cache directory maps to the operating system temp directory. You can use the getRelativePath method to find the relative path between two files:. The second parameter of the getRelativePath method, the useDotDot parameter, allows for..

File and path names are not case sensitive on Windows and Mac OS. In the following, two File objects point to the same file:. However, documents and directory names do include capitalization. For example, the following assumes that there is a folder named AIR Test in the documents directory, as in the following examples:. The canonicalize method converts the nativePath object to use the correct capitalization for the file or directory name. On case sensitive file systems such as Linux , when multiple files exists with names differing only in case, the canonicalize method adjusts the path to match the first file found in an order determined by the file system.

You can also use the canonicalize method to convert short file names "8. Symbolic links allow a file to point to another file or directory on disk. Although similar, symbolic links are not the same as aliases. An alias is always reported as a file rather than a directory , and reading or writing to an alias or shortcut never affects the original file or directory that it points to.

On the other hand, a symbolic link behaves exactly like the file or directory it points to. It can be reported as a file or a directory, and reading or writing to a symbolic link affects the file or directory that it points to, not the symbolic link itself. The File class includes the isPackage and isSymbolicLink properties for checking if a File object references a package or symbolic link. The canonicalize method changes the path of a symbolic link to point to the file or directory to which the link refers.

The spaceAvailable property of a File object is the space available for use at the File location, in bytes. For example, the following code checks the space available in the application storage directory:. If the File object references a directory, the spaceAvailable property indicates the space in the directory that files can use.

If the File object references a file, the spaceAvailable property indicates the space into which the file could grow. If the file location does not exist, the spaceAvailable property is set to 0. If the File object references a symbolic link, the spaceAvailable property is set to space available at the location the symbolic link points to. Typically the space available for a directory or file is the same as the space available on the volume containing the directory or file. However, space available can take into account quotas and per-directory limits.

Adding a file or directory to a volume generally requires more space than the actual size of the file or the size of the contents of the directory.

For example, the operating system may require more space to store index information. Or the disk sectors required may use additional space. Also, available space changes dynamically. So, you cannot expect to allocate all of the reported space for file storage.

For information on writing to the file system, see Reading and writing files. In AIR 2, you can open a file using the application registered by the operating system to open it. Use the openWithDefaultApplication method of a File object to open the file. For example, the following code opens a file named test. The following code lets the user navigate to an mp3 file and open it in the default application for playing mp3 files:.

You cannot use the openWithDefaultApplication method with files located in the application directory.



0コメント

  • 1000 / 1000