I have multiple movie clips on my timeline(not dynamically added.)
I would like to assign a same Mouse Over function to all of them.
something like below.
package{
import flash.display.MovieClip;
import flash.events.Event;
public class My_MC extends MovieClip {
public function My_MC() {
this.addEventListener(MouseEvent.MOUSE_OVER, mouseOn);
}
private function mouseOn(e:MouseEvent):void{
trace("OVER");
}
}
}
There are too many movie clips to give each an instance name and use for loop.
Also, their positions are visually too specific to dynamically add them using addChild.
How can I do this?