dispatchEvent
Hi, I don't undertstand why this is working
main script firts frame :
this.on("gameover", function() {
this.gotoAndStop('gameover');
});
with this in a clip :
this.dispatchEvent("gameover", true);
but this function in the main script is not working:
function eval(){
if(clics==maxClics){
this.dispatchEvent("gameover", true);
}
}
thanks and merry christmas
