You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2014/07/07 10:05:34 UTC

[jira] [Updated] (FLEX-34361) mx.states.AddItems.addItemsToArray fails with RichText & ParagraphElement

     [ https://issues.apache.org/jira/browse/FLEX-34361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Mclean updated FLEX-34361:
---------------------------------

    Labels: easytest  (was: )

> 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
>              Labels: easytest
>
> 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)