View Single Post
Old 03-28-2011, 12:21 AM   PM User | #1
Vizard-Coder
New Coder

 
Join Date: May 2010
Posts: 43
Thanks: 9
Thanked 0 Times in 0 Posts
Vizard-Coder is an unknown quantity at this point
Question Multiple variables on one event?

I want a way to apply a mouse event to multiple button/instance names. Here is the two events that will do the same thing:

Code:
image1.addEventListener(MouseEvent.CLICK, shift);
next2.addEventListener(MouseEvent.CLICK, shift);
Is there anyway to make this into one statement?
Vizard-Coder is offline   Reply With Quote