comparation operator in flash canvas
I am trying to get back to flash so i am trying to convert some of my old flash games to it, but having a hard time,
http://fotografiaramces.com/flash/memomex1.html
http://fotografiaramces.com/flash/memomex1.html
when the animation of card finish the variable is set to 1 so it should only play the anim for the card once i am trying this
this.huerta1_mc.addEventListener("click", fl_MouseClickHandler_2.bind(this));
function fl_MouseClickHandler_2()
{
if(this.huerta1 == 0){
alert(huerta1);
this.huerta1_mc.gotoAndPlay(2)
}
}
but its not working i can trigger the anim every time, and the alert wont show up, i checked for animate operators unsucesfully
here is the fla http://fotografiaramces.com/flash/memomex1.fla
I eagerlly want to comeback to flash, since construct2 or buildbox just dont fell the same but if i cant perform a little simple comparing operation to manipulate movie clips its sad.
tyvm and happy new year