How to access this Array element

Here’s the function :



var curItem;

function disableAll(){
	
	for (var i=0;i<buttonArray.length;i++){
		trace(buttonArray*)
	}
}


Here’s the problem/question :

  • I want to assign the var curItem into the onRelease function throughout the buttonArray. How?