|Published (Last):||13 June 2005|
|PDF File Size:||13.75 Mb|
|ePub File Size:||7.65 Mb|
|Price:||Free* [*Free Regsitration Required]|
This property is only available to content running in the application security sandbox. For details on these properties and methods, see the ActionScript 3. Specifies whether authentication requests should be handled true or not false for HTTP requests issued by this object. If false , authentication challenges return an HTTP error. Specifies whether successful response data should be cached for HTTP requests issued by this object.
The height, in pixels, of the HTML content. The width, in pixels, of the HTML content. Specifies the height of the rectangle of the HTML canvas that is being rendered. The maximum height value is pixels.
When you set the width or height property of an HTMLLoader object, the bounds of the object change but the content is not scaled as would happen with other types of display objects. The overall length of the history list, including back and forward entries. This property has the same value as the window. The current position in the history list. The history list corresponds to the window.
Entries less than the current position are the "back" list; entries greater are "forward. Specifies the idle timeout value in milliseconds for HTTP requests issued by this object. 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.
This property is true before the complete event is dispatched. It is possible that this property will never become true. This happens in the same cases as when the complete event is never dispatched. Specifies whether the HTTP protocol stack should manage cookies for this object.
If true , cookies are added to the request and response cookies are remembered. If false , cookies are not added to the request and response cookies are not remembered. Specifies whether navigation of the root frame of the HTML content such as when the user clicks a link, when the window. Set this property to true if you want all navigation to occur in the system web browser not in the HTMLLoader object. The type of PDF support on the user's system, defined as an integer code value.
If this is a possibile situation for your users, consider instructing them to close Acrobat or Adobe Reader while running your application. Consider displaying these instructions if the PDF content does not load within an acceptable amount of time. Specifies whether content loaded via the loadString method is put in the application sandbox true or in a non-application sandbox false. When this property is set to false , content loaded via the loadString method is placed in a non-application sandbox with the following characteristics:.
When this property is set to true , the content loaded via the loadString method is placed in the application sandbox, with access to the window. You should ensure that the data source for a string used in a call to the loadString method is trusted. Code statements in the HTML string are executed with full application privileges when this property is set to true. You should only set this property to true when you are certain that the string cannot contain harmful code.
In applications compiled with the AIR 1. The application domain to use for the window. The type of SWF support on the user's system, defined as an integer code value. Values are defined in the IANA list of valid character sets. After the HTMLLoader navigates to a new page, you need to set the property again if you want the new page to use a specific encoding. Setting the textEncodingOverride property to null restores the default behavior.
Specifies whether the local cache should be consulted before HTTP requests issued by this object fetch data. This default value varies depending on the runtime operating system such as Mac OS, Linux, or Windows , the runtime language, and the runtime version, as in the following examples:. Specifies the width of the rectangle of the HTML canvas that is being rendered.
The maximum width value is pixels. When you set the width and height properties of an HTMLLoader object, the bounds of the object change but content is not scaled as would happen with other types of display objects. 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 visible parameter to false. When the window has loaded and layed out its content, reveal it by setting the window. If any of x , y , width , or height is NaN , then the corresponding dimension of the window is left at its default value.
Parameters position :uint — The position in the history list. Navigates back in the browser history, if possible. Calling this method of the HTMLLoader object has the same effect as calling the back method of the window. Navigates forward in the browser history, if possible. Calling this method of the HTMLLoader object has the same effect as calling the forward method of the window.
Navigates the specified number of steps in the browser history. Navigates forward if positive, backward if negative. Navigation by zero forces a reload. This method is equivalent to calling the go method of the window. Parameters steps :int — The number of steps in the history list to move forward positive or backward negative. Calling this method initially sets the loaded property to false. This method initiates an operation that always completes asynchronously.
A call to this method implicitly cancels any pending previous load operation initiated with this method or with the loadString method. The complete event for the previous load operation will never be delivered. It is possible that the complete event will never be delivered. When rendering of the of the HTML in the string is complete, the complete event is dispatched.
The complete event is always dispatched asynchronously. A call to this method implicitly cancels any pending previous load operation initiated with this method or with the load method. However, the complete event is still dispatched asynchronously. If the loaded property of this class is true immediately following a call to this function, the HTML content specified in the htmlContent argument was rendered synchronously.
Content loaded via the loadString method is put in the application security sandbox only if the placeLoadStringContentInApplicationSandbox property is set to true. Signals that the last load operation requested by loadString or load method has completed. This event is always dispatched asynchronously. The event handler for this event can call any method or access any property of the HTMLLoader object. This may be result from a new image or other content loading, for example.
The HTMLLoader object can dispatch this event any time after a load operation is initiated, even after the object has dispatched the complete event. For example, setting window. This event can be dispatched quite frequently—whenever any rendering change is made to the HTML content.
In earlier versions of AIR, the dispatched event object is of type, Event. In AIR 2. You can call the preventDefault method of the event object to cancel the default behavior. For example, you could use the flash. In addition, this event is not dispatched when the destination page is opened in the system browser, since the HTMLLoader location does not change.
A locationChanging event is not dispatched when you change the location with the following methods:. The event is not dispatched when ActionScript code changes the scrollH or scrollV property. Event handlers for this event should check the scrollH and scrollV properties to update any scroll bars associated with the HTMLLoader object.
The current accessibility options for this display object. Indicates the alpha transparency value of the object specified. A value from the BlendMode class that specifies which blend mode to use.
If set to true, Flash runtimes cache an internal bitmap representation of the display object. If non-null, this Matrix object defines how a display object is rendered when cacheAsBitmap is set to true.
A reference to the class object or constructor function for a given object instance.
Chapter 7. HTML in AIR
Subscribe to RSS
HTMLLoader - AS3