hi i have currently have this frustrating problem that might be very simple but i dont get it to work for me
//square is a object that is in a array
while (i < 25) {
square*.addEventListener(MouseEvent.CLICK,clicker);
i++
}
function clicker (evt:MouseEvent):void {
//i would like the the trace to output the specific array number from the the object that
//was being clicked for example the trace would output: 23
trace(evt);
//but instead i get this [MouseEvent type="click" bubbles=true cancelable=false
//eventPhase=3 localX=123.35 localY=126.7 stageX=585.8 stageY=519.05
//relatedObject=null ctrlKey=false altKey=false shiftKey=false delta=0]
}