1 Reply Latest reply on Mar 4, 2008 12:25 PM by Starlover_jacob

    sequence mousedowneffect

    nevalaih
      I have an image that i would like to move from one place to another by pressing it and back by pressing the image again.

      <mx:Image id="asnappi" y="39" source="asetukset.png" mouseDownEffect="moveImageUp" horizontalCenter="0"/>

      and when pressed on calls the sequence:

      <mx:Sequence id="moveImageUp >
      <mx:AnimateProperty
      property="y"
      fromValue="35"
      toValue="0"
      duration="500"/>
      </mx:Sequence>

      how can i set it that when the image is pressed the next time it calls another sequnce that moves the image back to where it was in the first place.

      <mx:Sequence id="moveImageDown" >
      <mx:AnimateProperty
      property="y"
      fromValue="0"
      toValue="35"
      duration="500"/>
      </mx:Sequence>

      any help appreciated.