set movie clip visibility to false
I have been using Flash and CS3 for years and am now trying to get into Animate CC coding using HTML5 Canvas.
I have a simple movie clips dropping from the top of the screen and wanting to hide (visible=false) on mouse over.
Use the following code to loop through an array of objects set up as
var myCoins = [this.coin1, this.coin2 etc....]
for (i = 0; i < 6; i++){
myObj=myCoins[i];
myCoins[i].addEventListener("mouseover", function () {
$myCoins[i].style.visability=hidden;
}//end function
)//end listener
}//end loop
