Hello, I am trying to cycle through targeted movieclips via an array.
The symbols are labeled as such, kali1, kali2, kali3, …etc.
What I wanted to do was to move selected movieclips to a particular frame via an array loop.
Apparently, I am doing something wrong.
Here is the code I am using and the output I get:
var col1:Array = [8,16];
for (i=0; i<col1.length ; i++){
kaliscope= “kali”+col1;
this[“kali” + col1].gotoAndPlay(21);
trace (kaliscope);
Output I get is this:
kali8, 16
kali8, 16
What I was hoping to get was:
kali8
kali16
Any help would be greatly appreciated.
Thanks in advance.
Please note, I am a novice coder.