Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-34361

mx.states.AddItems.addItemsToArray fails with RichText & ParagraphElement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Apache Flex 4.11.0
    • None
    • Spark: RichText, States

    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>
      ...
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            flexfoo Denis Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: