ActionScript2 Flash Array Help Please?

Aaron

New member
I’m trying to build a flashcard game in flash. The issue is, flash will only advance the array by 1 when I click. It doesn’t continue to advance from the array like I thought it would. See below

1st frame I define the array

var myarr:Array = new Array(3);
myarr[0] = "(DAL)";
myarr[1] = "(SAT)";
myarr[2] = "(HOU)";

var citycode = myarr[0];
cidycode = currcity;

//citycode is a variable I’m using for the text object.

on the button I have the following:

on (release){
var citycode = myarr[+1];
}


Could someone please help find the solution to this issue? Thx!
 
Back
Top