Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Apache Flex 4.11.0
-
None
Description
When a state is used to exclude a ParagraphElement in a RichText in mxml an RTE is caused when the state wants to include the ParagraphElement. "TypeError: Error #1034: Type Coercion failed: cannot convert flashx.textLayout.elements::TextFlow@dad6369 to Array"
Error occurs in: mx.states.AddItems.addItemsToArray()
Example bellow works when state is "stateToExclude" but fails when "normal"
... <s:states> <s:State name="normal"/> <s:State name="stateToExclude"/> </s:states> ... <s:RichText> <s:p>First paragraph.</s:p> <s:p>Second paragraph.</s:p> <s:p excludeFrom="stateToExclude">Optional paragraph</s:p> </s:RichText> ...