(Beta)
Package | flashx.textLayout.conversion |
Interface | public interface ITextLayoutImporter extends ITextImporter |
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10.0, AIR 2.0 |
Public Properties
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. | ITextLayoutImporter | ||
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 |
Public Methods
Property Detail
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
Wed Nov 21 2018, 06:34 AM -08:00