2 Replies Latest reply on Aug 3, 2011 11:08 PM by Shongrunden

    transitions

    togawearer

      I'm getting some weird behavior with a view state transition. The effect involves resizing a spark Line (growing it to a new length). Problem is, the transition fires correctly resizing the line, but then the line disappears after resizing to the specified width.

       

      Is there something missing?

       

      Thanks in advance for any help!

       

      <fx:Declarations>
           <s:SolidColorStroke id="compareLineStroke" color="0xCCCCCC" weight="1" alpha="1.0" />
      </fx:Declarations>
      
      <s:transitions>
      ...
           <s:Transition id="toTwoDates" fromState="*" toState="TWODATES">
                <s:Sequence> <!-- declaring in a sequence since I'll eventually add more effects... -->
                     <s:Resize target="{compareLine1}" widthFrom="0" widthTo="100" duration="1500" />
                </s:Sequence>
           </s:Transition>     
      <s:transitions>
      
      <s:Line id="compareLine1" stroke="{compareLineStroke}" xFrom="285" xTo="285" yFrom="80" yTo="80" />