Apologies for another question (can you tell that I'm learning Flash?) Let's see: I've written a custom class, which loads a random movie clip into the Stage. When the movie clips finishes playing, I want the class to pick another random movie clip and play it again. How can I do this?
So far, I've tried adding a "this.removeMovieClip()" on the last frame of each movie clip, and then adding in the class file a "mc.onUnload" event handler, which picks and loads a different movie clip, but I'm getting such strange results that I'm sure I'm doing something wrong. For starters, I don't even actually know whether "removeMovieClip()" triggers the "onUnload" event (the docs aren't clear on this).
(All of this, as I mentioned, happens inside a custom class that I wrote, of which there will be several instances running at the same time).