0 Replies Latest reply on Oct 11, 2007 12:23 AM by KevinFauth

    end()'ing a zoom effect

    KevinFauth
      Hey All-

      I'm having a problem whenever I issue an "end()" command for a sequence event that's running, and I have a zoom effect. Below is a quick example. Clicking the stop button during the parallel/fade will break it, clicking stop during the zoom works fine. Looks like line 420 is dumping out in ZoomInstance.as. If anyone can help, I'd appreciate it.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="vertical">

      <mx:Text text="Move me" id="tomove" fontSize="20" visible="false" />
      <mx:VBox height="240" width="240" horizontalAlign="center" verticalAlign="middle">
      <mx:Box id="myBox" height="200" width="200" backgroundColor="#80ff00"/>
      </mx:VBox>
      <mx:Button label="Click to start" click="mySeq.play()" />
      <mx:Button label="Click to stop" click="mySeq.end()" />

      <mx:Sequence id="mySeq">
      <mx:SetPropertyAction target="{myBox}" name="visible" value="true" />
      <mx:Parallel target="{myBox}" duration="2000">
      <mx:Fade alphaFrom="0" alphaTo="1" />
      <mx:Glow blurXFrom="1" blurXTo=".8" duration="1500" />
      </mx:Parallel>
      <mx:Zoom target="{myBox}" zoomHeightFrom="1.1" zoomHeightTo="0.01" zoomWidthFrom="1.1" zoomWidthTo="0.01" duration="2000" />
      </mx:Sequence>

      </mx:Application>