Skip to main content
December 14, 2007
Answered

creating a listener

  • December 14, 2007
  • 3 replies
  • 303 views
I am hoping someone can shed some light....

I have a mc that contains 4 sub movies, each sub movie can be played by clicking a button to start the movie clips animation. What I am trying to do is check to see if either a) all of the buttons have been clicked or b) that all of the sub movies animations are complete at that point I woul like to call a function.

Does anyone have any idea how I can acheive this?

Thanks
This topic has been closed for replies.
Correct answer kglad
:

3 replies

kglad
Community Expert
Community Expert
December 16, 2007
you're welcome.
December 14, 2007
kglad...my actionscript skills are not that great, can you give me an example or point me to a tutorial?
kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
December 14, 2007
:

December 15, 2007
works like a charm kglad...thanks very much
kglad
Community Expert
Community Expert
December 14, 2007
from your description b) can't occur unless a) occurs so you just need to check a).

to check a, increment a variable with each button press (max increment of one per button) and call a function to test if that variable has been incremented 4 times.