HTML5
Hi guys, trying a new solution to a problem. Is it possible to have different movies play on the main timeline depending on which frame the main timeline is currently on when a button is clicked? This is the code I have tried but not working. Any help would be greatly apreciated!
this.fire2.addEventListener("click", fire.bind(this));
function fire()
{
if (this.currentFrame > 1 && this.currentFrame < 14)
{
this.shit2.visible=true;
this.shit2.play();
}
else if (this.currentFrame > 13 && this.currentFrame < 18)
{
this.pepe.visible=false;
this.shit16.visible=true;
this.shit16.play();
}
else (this.currentFrame > 17 && this.currentFrame <25)
{
this.shit19.visible=true;
this.shit19.play();
}
}
