Answered
convert AS3 in HTML5 Object(root)
Good evening,
I try to convert some animate I made in AS3 to HTML5 . I don't know how to transform the following lines :
this.stop ();
this.O2_btn.addEventListener("click", dioxygene.bind(this));
function dioxygene()
{
this.Object(root).dioxygene_clp.play();
}
this.glucose_btn.addEventListener("click", glucose.bind(this));
function glucose()
{
Object(root).glucose_clp.play();
}
this.plus_btn.addEventListener("click", lectureCO2.bind(this));
function lectureCO2 ()
{
if (this.Object(root).glucose_clp.currentFrame==96){
if(this.Object(root).dioxygene_clp.currentFrame==96){
this.Object(root).CO2_clp.gotoAndPlay (2);
this.Object(root).ampoule.gotoAndStop(2);
}
}
}I just put some this but I think not in the right places.
I'll be happy if some of you can help me, please excuse my bad english.
Best regards
