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 :)
In questa pagina del sito puoi guardare il video online Adobe Animate CC 2020 - If-Else tutorial - JavaScript in HTML5 canvas. della durata di ore minuti seconda in buona qualità , che l'utente ha caricato MotionTuts 09 settembre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,956 volte e gli è piaciuto 60 spettatori. Buona visione!