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

CompositeEffect is lacking a removeChild and removeAllChildren method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Adobe Flex SDK Previous
    • None
    • Effects
    • None
    • Language Found: English

    Description

      Those methods are often needed when working with the effects programmatically

      Workaround:

      Get, modify, then set the children array, for example:

      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark">
      <fx:Script>
      <![CDATA[
      protected function playEffect(event:MouseEvent):void

      { // remove the Resize var a:Array = eff.children; a.pop(); eff.children = a; // play the effect eff.play() }

      ]]
      >
      </fx:Script>

      <fx:Declarations>
      <s:Sequence id="eff" target="

      {target}

      ">
      <s:Move xBy="100" />
      <s:Resize widthBy="100" />
      </s:Sequence>
      </fx:Declarations>

      <s:Button label="target" id="target" click="playEffect(event)" />

      </s:Application>

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: