AIR Implementation of Functionality | 49
xmlhttp.send(null)
}
</script>
When called, this function uses theXMLHttpRequestobject to
load the specified URL and prints its contents out to the com-
mand line. The main thing to note in this example is that
because the runtime is known and it is consistent across oper-
ating systems, you do not have to detect the existence of—or
differences in—the implementation ofXMLHttpRequestas you
would when deploying in the browser.
Both synchronous and asynchronousXMLHttpRequestcalls
are supported, as is loading data across domains.
URI Schemes
Working with Universal Resource Identifiers (URIs) within
HTML content in AIR applications is largely the same as
working with URIs within the browser. This section gives a
quick overview of working with URIs within HTML content
in AIR applications, and introduces some new URIs made
available by the runtime.
Supported URI schemes
Adobe AIR provides support for the most common URI
schemes available within the browser (Table 3-1).