convert flash to html5, global variable problem
Hi,
i'm trying to convert files in Flash to HTML5 Canevas.
My current problem is the global variables being generated, they cause an error. _Global is not defined.
To start I already modify the code to change images with button, passing from that:
BtnSuiv.onRelease = function() {
_global.Exo.gotoAndPlay("Explication02");
};
to that :
// Globale pour situer le niveau de l'étape
_global.Exo = this;
// Globale qui enlève le clignotement de la fleche "étape suivante"
gInterface.finEtape(0);
// Globale qui initialise les bulles de la mascotte
_global.BulleRepExo = 0;
//Attitude de la mascotte
gInterface.FCTmascotte("Explication01");
//Gestion du son
gCh.script_mc.gestionSon("H0104_01_01a.mp3");
Thanks in advance for your help !
