animating all instances of movieclip
I have a frame that has several instances of a movieclip. Each of those instances are named, but I have a button that needs to trigger ALL instances to animate simultaneously.
My code is currently looking like this, where "allInstances" is the clip I'm trying to animate. If that is a specific instance name, it works, but I need to have multiples, and using the original movieClip name doesn't work.
this.exampleBtn.addEventListener("click", doTheThing.bind(this));
function doTheThing()
{
this.parent.parent.allInstances.play("activateIt");
}
Not expecting anyone to write my code for me, but any hints in the right direction would be appreciated.
Thanks!