I am trying to pull only certain elements from the array when the user presses a button however I am having some trouble. Here is what I was doing:
var storeArray:Array = [option1, option2, option3, option4, option5];
if (dynText.text = "buttonPressed") {
var storeArray:Array = [option2, option3, option4];
}
Anyway, I thought that was the correct logic and seemed pretty easy but apparently I cannot redefine the array (i believe). I was thinking I could try the splice method but I have like 200 options (even though I only show 5) so I thought that would take quite a while and there had to be an easier way.