i have 3 moviclip on stage:
corn1
corn2
corn3
and this call function:
border1.addEventListener( MouseEvent.CLICK, addcorn(1) );
public function addcorn(ncorn) {
return function(event:MouseEvent):void {
var corn = "corn"+ncorn;
corn.x=10;
corn.y=21;
};
}
AND THIS ERROR!!!:
Property instanceName not found on String and there is no default value!
WHY?????
Did you define ncorn someplace? Did you define corn someplace?