PDA

View Full Version : Array


smithk
10-03-2004, 03:10 AM
To Whom It May Concern:

I, am seeking an algorithm that will enable me to instruct flash to
asscess the elements of an array, and compare it to a finite number.

However, if that numbe exist in the array then perform an arbitary
action.

Sincerely,


Kevin

mmm..pi..3.14..
10-03-2004, 03:40 AM
var num_list:Array = new Array("462", "76547", "7685", "51352", "643678", "52341", "675642")
for(i=0; i<num_list.length; i++) {
if(num_list[i] == "Your finite number") {
trace("Same Number");
} else {
trace("Different Number");
}
}

Is that what you mean??

Eric

smithk
10-03-2004, 04:49 AM
Thank You, Brother