I'm a scripting novice, so here goes:

Using Flash 9 / AS3:

I have a movie clip - we'll call it mc1.

If I have mc1 appear on the main stage timeline of my swf and I want it to play 5 times, and then stop on the last frame of the movie clip, how would I do this?

Obviously this can be done easily with timeline animation — I'm interested in knowing how to script it for more elaborate application.

Thanks!

-Ben