0 Replies Latest reply on Nov 29, 2007 4:15 PM by jonathanHEC

    EffectManager Bug

      I'm getting a RTE in the EffectManager class when I run the following code. If you're wondering why I need to do this, I am really doing this in a completely different context where it does make sense. It's a much more complicated application, and I simplified the bug down to this code just to prove it didn't have to do with the complexity of the code.

      If you as stumped as I am, please vote for my bug here: http://bugs.adobe.com/jira/browse/SDK-13509

      Thanks in advance for any help!

      Flex Code:

      <?xml version="1.0"?>
      <!-- Simple example to demostrate a bug with the EffectManager -->
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">


      private function moveLabel():void {
      moveEffect.xTo = canvas.mouseX;
      moveEffect.yTo = canvas.mouseY;

      private function effectCompleted():void {


      <mx:Move id="moveEffect" target="{img}" effectEnd="effectCompleted();"/>

      <mx:Fade id="fadeIn" alphaFrom="0" alphaTo="1" duration="1000"/>
      <mx:Fade id="fadeOut" alphaFrom="1" alphaTo="0" duration="1000"/>

      <mx:Panel title="EffectManager Bug" height="600" width="800">

      <mx:Text width="100%" color="blue"
      text="Click anywhere on the canvas to move the imgage to that position. The label will then be removed."/>

      <mx:Canvas id="canvas" width="100%" height="100%" mouseDown="moveLabel();">
      <mx:Image id="img"
      source=" http://www.adobe.com/images/store/product_boxshots/90x120/box_flexbuilder_90x120.jpg"