Its possible addeventlisterne with two or more listerners?
I have this code…
Box_01.addEventListener(MouseEvent.CLICK,clickVid);
Box_02.addEventListener(MouseEvent.CLICK,clickVid);
so on…
Box_01.addEventListener(MouseEvent.MOUSE_OVER,overBtn);
Box_02.addEventListener(MouseEvent.MOUSE_OVER,overBtn);
so on…
Box_01.addEventListener(MouseEvent.MOUSE_OUT,outBtn);
Box_02.addEventListener(MouseEvent.MOUSE_OUT,outBtn);
so on…
With one function to each mouse event.
But the buttons go of “box_01” to “box_15” and the code was very long.
Is there any way to put more than one listener for each event? Example:
Box_01.addEventListener(MouseEvent.CLICK, clickVid; MouseEvent.MOUSE_OVER, overBtn);
Appreciate the help!