I am making banner ads in AS3. Now I want to try converting them to HTML5 Canvas. My problem is the scripts. I dont know Java so I hope someone in here could help.
AS3: I insert this script on a frame and the animation stops for 5 seconds - and then continue playing.
sleep(5);
function sleep(sec) {
stop();
setTimeout(this.gotoAndPlay, sec*1000, this.currentFrame + 1);
}
How do I convert this to Javascript in my HTML5 Canvas? If possible...