AIR Implementation of Functionality | 51
TIP
The AIR-specific URIs take only a single slash, versus two
slashes in the other URIs.
Within HTML content, these URI schemes can be used any-
where within HTML and JavaScript content where regular
HTTP URIs are used.
Relative URLs
You’re not restricted to using just absolute URLs within AIR
applications. You can also use relative URLs, but it is impor-
tant to remember that relative URLs within AIR applications
are relative to the application, and not to a server (as they
would be when doing traditional browser-based client/server
development).
Relative URLs will be relative to the root of the application,
and will resolve to the app-resource:/ URI.
For example:
<img src="foo/image.png" />
will resolve to:
<img src="app-resource:/foo/image.png" />
You should keep this in mind when moving web and
browser-based content and code into an AIR application.
Security
This section discusses a number of differences in the security
model implementations in the Adobe AIR, versus that in the
browser.