AIR Implementation of Functionality | 53
Because of this, content downloaded from third party
sources and domains should always be placed in theapp-
storage:/directory, and not in theapp-resource:/directory in
order to prevent inadvertent elevation of security context and
privileges.
Cross domain data loading
The Adobe Integrated Runtime does not enforce cross
domain data loading restrictions for application content.
Among other things, this allows the loading of data across
domains using theXMLHttpRequest object.
Cross domain data loading restrictions are enforced for non-
privileged web content.
Using JavaScript Frameworks
Because the HTML environment within the Adobe Inte-
grated Runtime has full support for JavaScript, you can use
virtually any JavaScript framework to build your application.
However, when using frameworks, there are a couple of
things to keep in mind:
- The framework should be included within your applica-
tion’s AIR file, in order to ensure that it is available
offline. - If the framework expects to load resources from a cen-
tral server, you may have to test to make sure that rela-
tive URLs continue to work. - While it is possible to load the framework from the net-
work at runtime, this can lead to slower application
startup performance, as well as an inability for the appli-
cation to work when offline.
You can find a number of HTML-based AIR applications and
their source built using the EXT-JS framework from the
Adobe Labs AIR site at:
http://www.adobe.com/go/airwiki