flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-34361) mx.states.AddItems.addItemsToArray fails with RichText & ParagraphElement
Date Mon, 07 Jul 2014 08:05:34 GMT

     [ 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)

Mime
View raw message