how to avoid dynamic textField overlapping createjs
we fix this issue in as3 using var hitBool:Boolean
but createjs does not support Boolean ; so how can we fix the issue ? LOL
/* js
var score=0;
var hitBool=false;
this.movieClip_1.addEventListener('click', fl_MouseOverHandler_2);
function fl_MouseOverHandler_2(e)
{
if(!hitBool){
hitBool=false;
text1 = new createjs.Text("LIVES: " + score, "40px Arial");
text1.textAlign = 'right';
text1.y = 30;
text1.x = stage.canvas.width - 10;
stage.addChild(text1);
score=score+10;
text1.text=String(score);
}
}
