0 Replies Latest reply on Dec 10, 2006 6:53 AM by Sterol

    Affect pause-duration at runtime?


      I have the following MXML-code:

      <mx:Transition id="fromBaseToRotating" fromState="" toState="Rotating">
      <mx:Sequence target="{this}" repeatCount="0">
      <mx:Fade alphaFrom="0.0" alphaTo="1.0" duration="1500"/>
      <mx:Pause id="pauseEffect"/>
      <mx:Fade alphaFrom="1.0" alphaTo="0.0" duration="1500" tweenEnd="{getNextAd()}"/>

      It's used for a simple ad rotator application I've built in Flex. Basically, it rotates a number of ads on a web page.
      However, when I try to set the pause duration (which can be different for each ad) I just end up with the one I had from the start.

      Can anyone help me figure out how I can change the pause duration for each ad?