Greetings,
I have the following doubt. I'm doing a program in which every time I click on the screen a MovieClip is added to the stage and its animation is executed.
Minah doubts how do I check that MovieClipe has reached the last frame of the animation so that I can perform my playlist, memory and screen removal procedures?
Does anyone know if there is a native MovieClip method to know if the animation has reached its last frame?
Thank you
Comments
http://docs.giderosmobile.com/reference/gideros/MovieClip/Event.COMPLETE
Likes: kinrpg
So does this event run every time the animation stops?
Exactly what I needed.
Forgive my amateur, but what is the right way to use the event?
a) MovieClip[x]:addEventListener(Event.COMPLETE, function)
b) stage:addEventListener(MovieClip[x].Event.COMPLETE, function)
Or are they both wrong? I have read the documentation several times and I still have doubts.
Tnx
but I won't use the word MovieClip to name a table, it would overwrite MovieClip class
you can use almost anything else
mclips[x]:addEventListener(Event.COMPLETE, function)
Likes: kinrpg, antix
Thank you for your help
Likes: antix