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

mx.effects::Effect/stop() does not stop effect for all targets (or single target) when using startDelay (same issue for mx.effects::Effect/pause())

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK 3.5 (Release)
    • None
    • Effects
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Other (specify version)
      Language Found: English

    Description

      Steps to reproduce:

      1. Adjust font path per local settings and compile following code.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      layout="vertical"
      applicationComplete="test(new Array(field1, field2, field3));">
      <mx:Style>
      @font-face

      { src: url("C:/WINDOWS/Fonts/Arial.ttf"); fontFamily: arial; fontWeight: bold; advancedAntiAliasing: true; }

      </mx:Style>
      <mx:Text id="field1" width="300" height="20" text="This is a test" fontFamily="arial"/>
      <mx:Text id="field2" width="300" height="20" text="This is another test." fontFamily="arial"/>
      <mx:Text id="field3" width="300" height="20" text="This is another test v2." fontFamily="arial"/>
      <mx:Script>
      <![CDATA[
      import mx.events.EffectEvent;
      import mx.effects.Fade;
      public function test(targets:Array):void

      { var f:Fade = new Fade(); f.targets = targets; f.alphaFrom = 1; f.alphaTo = 0; f.startDelay = 3000; f.duration = 2000; f.addEventListener(EffectEvent.EFFECT_START, stopFades); f.play(); }

      public function stopFades(e:Event):void

      { (e.target as Fade).stop(); }

      ]]
      >
      </mx:Script>
      </mx:Application>

      Actual Results:

      First text field, "field1", incorrectly continues with fade. First text field continues with fade even when using only (1) item for "targets" array.

      Expected Results:

      All fades should have stopped before starting, and text fields should remain visible.

      Additional Notes:

      Tested using FP 9.0.0.16 & 10.1.53.64 in IE6 on PC and 10.1.53.64 in Firefox 3.6.6 on Mac. Also tested using Flex SDK 4.1.0.16076. Same result.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: