Errors with TextConverter with Configuration
Hello
I try to use newest flex sdk (4.1.0.16032) but cannot solve this:
var conf:Configuration=new Configuration()
var linkNormalFormat:TextLayoutFormat=new TextLayoutFormat()
conf.defaultLinkNormalFormat=linkNormalFormat;
textFlow=TextConverter.importToFlow(value,TextConverter.TEXT_LAYOUT_FORMAT,conf);
trace(textFlow) // null
Why it is null??
When I use textFlowInitialFormat:
conf.textFlowInitialFormat=format;
textFlow is not null and everything works fine.
When I use defaultLinkHoverFormat:
conf.defaultLinkHoverFormat=linkNormalFormat;
textFlow is correctly created bu I get error on roll over:
TypeError: Error #1034: Type Coercion failed: cannot convert flashx.textLayout.formats::TextLayoutFormat@1423e881 to flashx.textLayout.formats.TextLayoutFormatValueHolder.
at flashx.textLayout.elements::LinkElement/computeLinkFormat()
at flashx.textLayout.elements::LinkElement/get http://ns.adobe.com/textLayout/internal/2008::effectiveLinkElementTextLayoutFormat()
at flashx.textLayout.elements::LinkElement/setToState()
at flashx.textLayout.elements::LinkElement/mouseOverHandler()
Is this a bug?
