Istance movieclip
i have 3 moviclip on stage:
corn1
corn2
corn3
and 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 error!!!:
property instancename not found on string , there no default value!
why?????
did define ncorn someplace? did define corn someplace?
More discussions in Flash Pro FAQ (Read Only)
adobe
Comments
Post a Comment