I was wondering if you could create functions using a loop, like so with just the !HERE! replaced with the method of creating it with the ‘i’ variable. Both the function name in the event listener and the function’s setting need to make use of the i variable. Thanks, Lego.
for (var i:int = 0; i <= 5; i++){
this["question"+i].addEventListener(MouseEvent.CLICK, !HERE! );
function !HERE! (e:MouseEvent):void{
//Function code here
}