Id like to build a rotator for SWF files where I can dynamically load the movies based on an XML file and then wait until each movie is played a specified number of times before rotating to the next movie.

Can anyone give me a starter on something like this? I am a Flash (CS3) newbie but have a handle on using it.
I've done some Flex before so AS3 doesn't bother me, either...