jeudi 15 décembre 2016

Adobe flash professional CC gotoAndPlay bug

First of all, hello.

I have to develop a simple game in flash, usign HTML5 Canvas and JavaScript. The game, however poor, is pretty much implemented. My problem is, that after you play the game, it shows a try again button, designed to go back to frame 1. When i click the button it goes to frame 1 and returns to frame 25. Any ideas?

This is my timeline

The last frame has this code:

var root = this;
this.tryAgain_btn.addEventListener("click", mouseClickHandler);
function mouseClickHandler(e) {

And frame one has this code:

var self = this;
this.play_btn.addEventListener("click", go);

function go()

Any ideas on how to solve this? Thank you.

Aucun commentaire:

Enregistrer un commentaire