FORUMS: list search recent posts

(AS2) Event triggered when movie clip finishes playing

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Paulo Jan
(AS2) Event triggered when movie clip finishes playing
on Jan 10, 2009 at 9:22:58 pm

Hi all:

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).

Thanks in advance, everybody.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved