TextLayoutFormat now TextLayoutFormatValueHolder?


i've upgraded latest version of tlf , trying publish 1 of older projects getting error wasn't there before.

 

the error ...

 

typeerror: error #1034: type coercion failed: cannot convert flashx.textlayout.formats::textlayoutformat@1bfe4041 flashx.textlayout.formats.textlayoutformatvalueholder.

at flashx.textlayout.elements::linkelement/computelinkformat()[c:\vellum\branches\v1\1.1\dev \output\opensource\textlayout\src\flashx\textlayout\elements\linkelement.as:427]

at flashx.textlayout.elements::linkelement/get http://ns.adobe.com/textlayout/internal/2008::effectivelinkelementtextlayoutformat()[c:\ve llum\branches\v1\1.1\dev\output\opensource\textlayout\src\flashx\textlayout\elements\linke lement.as:463]

at flashx.textlayout.elements::linkelement/get http://ns.adobe.com/textlayout/internal/2008::formatforcascade()[c:\vellum\branches\v1\1.1 \dev\output\opensource\textlayout\src\flashx\textlayout\elements\linkelement.as:470]

at flashx.textlayout.elements::flowelement/http://ns.adobe.com/textlayout/internal/2008::docomputetextlayoutformat()[c:\vellum\branch es\v1\1.1\dev\output\opensource\textlayout\src\flashx\textlayout\elements\flowelement.as:6 49]

at flashx.textlayout.elements::flowelement/get computedformat()[c:\vellum\branches\v1\1.1\dev\output\opensource\textlayout\src\flashx\te xtlayout\elements\flowelement.as:642]

 

... etc

 

is there different creating textlayoutformat objects?

 

i'm creating config file set formats ...

 

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 on appreciated supposed 5 minute change client.

 

 

there's few things going on here.

 

first that's bug in linkelement in tlf 1.1  you'll have use textlayoutformatvalueholder in case.

 

background:

 

the textlayoutformat class original class formatting.  large object reserves slot every tlf format.  later created textlayoutformatvalueholder , kept internal (it's tagged [excludeclass] metadata) because more efficient storing formats when few set.

 

in tlf 2.0 original textlayoutformat class replaced textlayoutformatvalueholder , textlayoutformatvalueholder goes away.  there's no place in code anymore every format set.  computedformat every format has value tlf using object prototypes siimilar flex - started in 1.1 , that's bug got introduced.

 

richard



More discussions in Text Layout Framework


adobe

Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support