Package | flashx.textLayout.conversion |
Interface | public interface IHTMLImporter extends ITextImporter |
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10.0, AIR 2.0 |
Property | Defined By | ||
---|---|---|---|
configuration : IConfiguration
The configuration property contains the IConfiguration instance that
the importer needs when creating new TextFlow instances. | ITextImporter | ||
errors : Vector.<String> [read-only]
This property contains a vector of error messages as strings after a call
to an importer method is the throwOnError property is set to
false, which is the default. | ITextImporter | ||
imageSourceResolveFunction : Function This property allows specification of a function to modify the source property supplied to an <img> element. | IHTMLImporter | ||
preserveBodyElement : Boolean This property tells the importer to create an element for the BODY tag in HTML markup. | IHTMLImporter | ||
preserveHTMLElement : Boolean This property tells the importer to create an element for the HTML tag in HTML markup. | IHTMLImporter | ||
throwOnError : Boolean
The throwOnError property controls how the importer handles errors. | ITextImporter | ||
useClipboardAnnotations : Boolean
Controls whether or not the
importer should handle the extra information necessary for the clipboard. | ITextImporter |
imageSourceResolveFunction | property |
imageSourceResolveFunction:Function
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10.0, AIR 2.0 |
This property allows specification of a function to modify the source property supplied to an <img>
element.
Sample use would be to modify relative paths to some caller specified root path. The function takes the string set in the markup and returns the actual string
to be used.
Note that by default relative paths are relative to the loaded SWF. One use of this function is to make relative paths relative to some other location.
The resolver function should look like this:
function resolver(src:String):String
It takes as an input parameter the value of src on the incoming img element, and returns the adjusted value.
Implementation
public function get imageSourceResolveFunction():Function
public function set imageSourceResolveFunction(value:Function):void
preserveBodyElement | property |
preserveBodyElement:Boolean
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10.0, AIR 2.0 |
This property tells the importer to create an element for the BODY
tag in HTML markup.
The element will normally be a DivElement
with typeName
set to BODY
.
This will also trigger parsing of class
and id
on the element.
Implementation
public function get preserveBodyElement():Boolean
public function set preserveBodyElement(value:Boolean):void
preserveHTMLElement | property |
preserveHTMLElement:Boolean
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10.0, AIR 2.0 |
This property tells the importer to create an element for the HTML
tag in HTML markup.
The element will normally be the top-level TextFlow
element with typeName
set to HTML
.
This will also trigger parsing of class
and id
on the element.
Implementation
public function get preserveHTMLElement():Boolean
public function set preserveHTMLElement(value:Boolean):void
Mon Nov 28 2011, 06:48 AM -08:00