Packagecom.myflashlab.air.extensions.webView
Classpublic class HtmlDataSettings
InheritanceHtmlDataSettings Inheritance Object

Deprecated! use com.myflashlab.air.extensions.richWebView.RichWebView instead.

Loads the given data into this WebView, using baseUrl as the base URL for the content. The base URL is used both to resolve relative URLs and when applying JavaScript's same origin policy. The historyUrl is used for the history entry.

Note that content specified in this way can access local device files (via 'file' scheme URLs) only if baseUrl specifies a scheme other than 'http', 'https', 'ftp', 'ftps', 'about' or 'javascript'.

If the base URL uses the data scheme the historyUrl is ignored, and the data will be treated as part of a data: URL. If the base URL uses any other scheme, then the data will be loaded into the WebView as a plain string (i.e. not part of a data URL) and any URL-encoded entities in the string will not be decoded.

Note that the baseUrl is sent in the 'Referer' HTTP header when requesting subresources (images, etc.) of the page loaded using this method.



Public Properties
 PropertyDefined By
  baseUrl : String
[write-only] the URL to use as the page's base URL.
HtmlDataSettings
  data : String
[write-only] a String of data in the given encoding
HtmlDataSettings
  encoding : String
[write-only] the encoding of the data
HtmlDataSettings
  historyUrl : String
[write-only] (Android only) the URL to use as the history entry.
HtmlDataSettings
  mimeType : String
[write-only] the MIMEType of the data, e.g.
HtmlDataSettings
Property Detail
baseUrlproperty
baseUrl:String  [write-only]

the URL to use as the page's base URL. If null defaults to 'about:blank'.


Implementation
    public function set baseUrl(value:String):void
dataproperty 
data:String  [write-only]

a String of data in the given encoding


Implementation
    public function set data(value:String):void
encodingproperty 
encoding:String  [write-only]

the encoding of the data


Implementation
    public function set encoding(value:String):void
historyUrlproperty 
historyUrl:String  [write-only]

(Android only) the URL to use as the history entry. If null defaults to 'about:blank'. If non-null, this must be a valid URL.


Implementation
    public function set historyUrl(value:String):void
mimeTypeproperty 
mimeType:String  [write-only]

the MIMEType of the data, e.g. 'text/html'. If null, defaults to 'text/html'.


Implementation
    public function set mimeType(value:String):void