I am trying to shorten the code needed to be written for mcs on the stage. I followed the Help article about for() but i get an error saying “Access of undefined property nav.”
Any thoughts?
var i = 1
for (i=1; i<5; ++i) {
nav+*.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
trace("I've been clicked!");
}
);
}