The methods in the HTMLHost class provide ways of handling changes in each of these
To respond to changes in the
Each HTMLHost object can be associated with at most one HTMLLoader object. Assigning
an HTMLHost instance to the
Build an AIR application that adds an object defined by this class to the main window's stage.
Create an HTML page named Test.html in the application resources directory (the directory that contains the application descriptor file), and add the following content to it:
When you test the application, the CustomHost class handles the user-interface-related JavaScript settings in the HTML page.
By default, a JavaScript call to
By default, a JavaScript call to
In the subclass of HTMLHost, override the
Note: This is not returned from
AIR profile support: This feature is supported
on all desktop operating systems, but is not supported on mobile devices or on AIR for TV devices. You can test
for support at run time using the
The default dimensions of an HTMLLoader are 0 x 0 pixels. Set the
The maximum size for an HTMLLoader object is 4,096 pixels in height and 4,096 pixels in width.
Setting
Note: When displayed in a transparent window, SWF content embedded
in an HTML page must be embedded using either the
Event handlers for this event should check the
The HTMLLoader object can dispatch this event any time after a load operation is initiated,
even after the object has dispatched the
The HTMLLoader object can dispatch this event any time after a load operation is initiated,
even after the object has dispatched the
A
A
A
A
In addition, this event is not dispatched when the
Handlers of this event should check the
The HTMLLoader object can dispatch this event any time after a load operation is initiated,
even after the object has dispatched the
By default (when you set no parameters in calling this method), the new window uses standard system chrome and includes scrollbar controls for the content. You can set the parameters to change the properties of the new window.
As the window loads content and applies stylesheets, minor graphics glitches can occur. To prevent such
discontinuities from being visible, set the
Calling this method of the HTMLLoader object has the same effect
as calling the
This function throws no errors.
Calling this method of the HTMLLoader object has the same effect
as calling the
This function throws no errors.
This method is equivalent to calling the
This function throws no errors.
A call to this method implicitly cancels any pending previous load operation initiated with
this method or with the
If the HTML specified in the string has no references to external resources, then this method
synchronously renders the HTML. However, the
It is possible that the
Content loaded via the
A call to this method implicitly cancels any pending previous load operation initiated with
this method or with the
It is possible that the
When you set the
The idle timeout is the amount of time the client waits for a response from the server, after the connection is established, before abandoning the request.
Note: On Windows, if Acrobat or Adobe Reader version 7.x or later,
is currently running on the user's system, that version is used even if a later version
that supports loading PDF loaded in an HTMLLoader object is installed. In this case,
if the value of the
When this property is set to
When this property is set to
In applications compiled with the AIR 1.0 or AIR 1.1 SDKs, content loaded via the
If
Values are defined in the IANA list of
If no encoding is specified by the HTML page, by the
This setting also overrides any setting in the
Values are defined in the IANA list of
Set the
If no encoding is specified by the HTML page, by the
Setting the
To set the user agent string, set the
You can set the default user agent string used by all HTMLLoader objects in an application
domain by setting the
If a value is set for neither the
This class defines the properties and methods that correspond to options in the
For example, JavaScript in an HTML document (in an HTMLLoader object)
can include the following call to
You use the HTMLWindowCreateOptions class in overriding the