Copy link to clipboard
Copied
See Code Below - I have a simple mouse cursor exercise as part of a bigger project. Before I go forward, I want to know what code I must add / remove to make both movie clips "splash1_mc" and splash3_mc" play, once each button has been clicked. I have only created two buttons for now and having issues with the second button / movie clip action working. The first button works and the movie clip plays, the second button works but the second movie clip will not play at all. I have built it many different ways - different MC's, the same MC, different instance names, this.stop(); at first frame, separate frames on the main timeline - nothing works. This scene will eventually have at least 20 buttons to click using a time/score counter. As mentioned, this is part of a bigger project so want to get this correct before I move forward. Let me know what I can do so each 20 frame movie clip plays after each button clicked. Thanks!
Movie Clip to play twice, then stop (want mc's like this play twice after each button clicked - want at least 20 on main timeline.)
if (!this.looped) this.looped = 1;
if (this.looped++ > 2) this.stop();
place a stop() on their first frame, add play() in your two hide listeners:
Copy link to clipboard
Copied
place a stop() on their first frame, add play() in your two hide listeners:
Copy link to clipboard
Copied
It works - yay! Thanks so much kglad. 😊
Copy link to clipboard
Copied
you're welcome.