I have a very strange problem, I'm a designer, I do a little bit a programming, now working on a HTML5 canvas project.
I'm applied the code
this.btn.addEventListener("click", fl_MouseClickHandler.bind(this));
function fl_MouseClickHandler()
{
this.gotoAndPlay(Math.round(Math.random()* 5));
this.gotoAndStop();
}
This code is working Random frames. but, my problem is some time repeating frames comes.
Please check my sample: http://dsrengineering.com/test/Random2.html
Download Source File (Animate CC): http://dsrengineering.com/test/Random2.fla