How to tell flash to play specific amount of frames?

Does anyone know how to tell flash to play specific amount of frames instead of dragging playhead to the last frame and play from the beginning.

For example, I would like the movie clip to play a total 10,000 frames and 30 fps without making the last stop at frame #10,000. All I need is only 2 frame; one for beginning and two for ending. Anything happens between these 2 frames must be processed by actionscript.

What I’m trying to make here is a very long image marquee because I have like thousands of images to show on it. I also would like to control both amount of frames and speed as well. Any ideas?

Thank you in advanced.