TextLayoutFormat now TextLayoutFormatValueHolder?
I've recently upgraded to the latest version of TLF and am trying to publish one of my older projects but I am now getting an error that wasn't there before.
The error is this ...
TypeError: Error #1034: Type Coercion failed: cannot convert flashx.textLayout.formats::TextLayoutFormat@1bfe4041 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/get http://ns.adobe.com/textLayout/internal/2008::formatForCascade()
at flashx.textLayout.elements::FlowElement/http://ns.adobe.com/textLayout/internal/2008::doComputeTextLayoutFormat()
at flashx.textLayout.elements::FlowElement/get computedFormat()
... etc
Is there something different about creating the TextLayoutFormat objects?
I'm creating a config file to set the formats like so ...
config = Configuration(TextFlow.defaultConfiguration).clone();
var linkNormalFormat:TextLayoutFormat = new TextLayoutFormat();
linkNormalFormat.color = 0x000000;
var linkHoverFormat:TextLayoutFormat = new TextLayoutFormat();
linkHoverFormat.color = 0xdc428f;
var defaultFormat:TextLayoutFormat = new TextLayoutFormat();
defaultFormat.color = 0x333333;
defaultFormat.textAlign = TextAlign.JUSTIFY;
defaultFormat.textAlignLast = TextAlign.JUSTIFY;
defaultFormat.fontSize = 10;
defaultFormat.lineHeight = 10;
defaultFormat.fontLookup = FontLookup.EMBEDDED_CFF;
defaultFormat.typographicCase = TypographicCase.UPPERCASE;
defaultFormat.renderingMode = RenderingMode.CFF;
defaultFormat.fontFamily = FontsManager.IMPACT;
config.textFlowInitialFormat = defaultFormat;
config.defaultLinkNormalFormat = linkNormalFormat;
config.defaultLinkHoverFormat = linkHoverFormat;
//config.defaultLinkActiveFormat = linkActiveFormat;
config.overflowPolicy = OverflowPolicy.FIT_DESCENDERS;
textFlow = new TextFlow(config);
Any help on this would be appreciated as this was supposed to be a five minute change for my client.
![]()
