hy, i have a piece of code using easeljs library , i want to make a letter that change when it clicked , but i'm have a problem to get a local variable ,or the event not change the variable anymore
i have tried to make a code like this,
function start(){
var letter=["A","B","C"];//only example
i=0; console.log(i);
var change=new quote(letter[i]);//i made a class with display the text and quote grapichs vector
change.addEventListener("click",function(A){
i++;console.log(i)//it change});
stage.addChild(change);
}
but when i click the text not change, and the i value not change too