Question
Trying to create an array to target symbols for animation
I have maps of districts named mc_1, mc_2, mc_3 etc...
I'm triggering an event when mouse hovers over them.
Instead of writing code for each mc_n I thought I could use arrays. But I have never done that before. Currently I have;
var district = []; for (var i = 0; i <= 20; ++i) {district[i] = "mc_" + i; }
stage.enableMouseOver(3); this.district[i].on('mouseover', function(){ this.district[i].gotoAndPlay(2); });