flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Johnson (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-34361) mx.states.AddItems.addItemsToArray fails with RichText & ParagraphElement
Date Tue, 10 Jun 2014 05:52:03 GMT
Denis Johnson created FLEX-34361:
------------------------------------

             Summary: mx.states.AddItems.addItemsToArray fails with RichText & ParagraphElement
                 Key: FLEX-34361
                 URL: https://issues.apache.org/jira/browse/FLEX-34361
             Project: Apache Flex
          Issue Type: Bug
          Components: Spark: RichText, States
    Affects Versions: Apache Flex 4.11.0
            Reporter: Denis Johnson


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"

{code:xml}
...
<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>
...
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message