I am looking through a for loop and I need to add a string to an array each time... I tried just _global.buttonArray = "test" + i; but each object ends up undefined at the end... here is an overview of my code
Code:for (var i = 0; i < 5; i++) { _global.buttonArray[i] = "test" + i; trace(_global.buttonArray[i]); }