Document directory
- Ext. Air. Clipboard clipboard
November 24,200 8 by Aaron Conran
In fact, we have been paying attention to Adobe AIR, and with the subsequent cooperation with Adobe, we have been focusing on ext. the air package has enhanced several functions, including adding new categories of sound, forms, databases, information, clipboard, and file system interfaces. At the same time, we will list new examples to show how to use these new features. One example is the ext player. A simple MP3 player is an Ext. Air. musicplayer class plus the Ext. Air. Sort y class. You can install the ext player or download resources.
Ext. Air. musicplayer MP3 player
Ext2.0.2 introduces an Ext. Air. Sound class for playing short music, which is useful for sending signals and ringtones. However, the Ext. Air player is designed to play music or broadcast for a long time, so that you no longer need to play multiple files at the same time. Music playback supports all basic operations, including stop, pause, play, and skipto. This music player allows developers to add music and podcasts on Air-to quickly use ext applications.
VaR MP = new Ext. Air. musicplayer (); MP. adjustvolume (0.5); MP. Play (URL );
Ext. Air. Sort y
The new generic y class can distribute operating system information to notify users. Even if the application is not visible, important messages will pop up. Another benefit is that it does not affect the UI of the current browser or the main interface, and can still ensure that messages can be popped up. In particular, it is very important to display notifications at the operating system level.
VaR MSG = 'title: {0} <br/> ARTIST: {1} '; var sample = new Ext. air. Y ({MSG: string. format (MSG, id3info. songname, id3info. artist), icon :'.. /famfamfam/music.png '});
Application of window forms and Application Software
Methods and configurations for form control do not exist originally. We have added them here. These methods are: Re-sort the window, set the window that is always front-end and can be full screen. As a Singleton, the methods and configurations for adding common window operation tasks do not exist. Ext. Air now opens a new window. As a single piece, ext. Air. app can set your application to run at startup and become the current activity window.
Ext. Air. App. launchonstartup (true );
Ext. Air. Clipboard clipboard
The Ext. Air clipboard allows you to communicate with the clipboard system. Developers can set a specific format, such as whether the clipboard has data, set data and obtain data. At this point, it can be said that the default air. clipboard. generalclipboard has made great progress. In the future, ext may be improved, for example, the Integrated drag-and-drop function.
Ext. air. clipboard. setdata ('air: text', 'sample set on the clipboard'); var DATA = ext. air. clipboard. getdata ('air: text ');
Ext. Air. videopanel video panel
The video panel Ext. Air. videopanel is a new class embedded in the Flash video and involved in extlayout layout management. This means that you can embed a video layout in any layout, which is a layout configuration item you are familiar with, such as adding a toolbar and buttons. You only need to provide a FLV source playback or a camera connection interface, you can use videopanel, or even watch the video in a high-resolution full screen.
VaR Vp = new Ext. viewport ({layout: 'fit ', items: [{ID: 'video', xtype: 'videopanel'}]}); Ext. getcmp ('video '). loadvideo ('sample. flv ');
The future of air and Ext. Air
Adobe AIR allows website developers to use existing technologies to create desktop applications. Air is an application software that can be developed on Windows, OSX, or Linux during cross-platform running (the Linux version is currently in the testing stage ). Adobe AIR 1.5 was released in Adobe Max last week. Its new features include data encryption, WebKit (including squirrelfish), and Flash Player 10.
EXT will soon add support for encrypted SQLite data. Another interesting technology of Adobe air1.5 is pixelbender. pixelbender can be considered as an air filter, which can quickly highlight images or videos and filter their applications. Another important feature of air is that many people do not know how to mix Ajax, Flash, and flex technologies to form an air program. You can find some existing open-source ActionScript, and immediately add them to the program if they are available. Adobe's new project, alchemy, can even integrate C or C ++ code into the ActionScript virtual machine, and then assume that ext should have the software code to the air platform. The example in the Ext. Air package can be downloaded here. In terms of ext release packages, this content will also be integrated in new update packages.