eval in animate cc
hi, i'm looking for an answer why the static code is working, not dynamically as below.
this.mcfont1.txt.text ===> there's a dynamic text inside a movieclip
///////////
var arr = ["A", "R", "U", "S", "E", "L", "E", "K", "T", "R", "I", "K", r(), r(), r()];
function r() {
var chars = "ABCDEFGHIJKLMNOPQURSTUVWXYZ";
return chars.substr(Math.floor(Math.random() * 62), 1);
}
for (var i = 0; i < arr.length; i++) {
//this["mcfont" + i].txt.text = arr; <-----not working
this.mcfont1.txt.text = arr; <-----working
}
////////////////////////
thank you in advance
