In this tutorial, I will show you how to create a simple if-else statement using JavaScript in Adobe Animate. We will be using HTML5 canvas.
here is the code that we will use :
var root = this;
this.myButton.addEventListener("click", showAndHide);
function showAndHide () {
if(root.myShapes.visible==true) {
root.myShapes.visible=false
} else {
root.myShapes.visible=true
}
}
here is link for my click event tutorial :
• Adobe Animate CC 2020 - click event tutori...
thank you very much for watching :)
On this page of the site you can watch the video online Adobe Animate CC 2020 - If-Else tutorial - JavaScript in HTML5 canvas. with a duration of hours minute second in good quality, which was uploaded by the user MotionTuts 09 September 2020, share the link with friends and acquaintances, this video has already been watched 3,956 times on youtube and it was liked by 60 viewers. Enjoy your viewing!