I'm building an art gallery application which allows the
users go through all the pictures by clicking a "Autoplay" button.
All the art works are initially loaded in an Array. I'm using
a for-loop and trying to set 5-second wait at end of each loop. How
to set wait in Flex?
Don't use a for...each loop.
Set up a fade-in effect and a fade-out effect. Use the
effectEnd property of the fade out effect to start playing the
fadein effect. You can use the effect properties to set durations
and start delays.
FadeOut effect--->effectEnd property calls:---> play
fadeIn effect--->effectEnd property calls:--->play fadeOut
effect. etc., etc.