I need to access a value of an array in flash. This is the way I got it set up
rectArray = [43,234,234234,5423,66,65,36,56,6,6566,6,36,356,36,356,65,36,35,56,36,534]//EXAMPLE ARRAY
rectCordArray = [3,7,5,3,6,5,4,3,2,4,5,6,7,2,3,4,5,6,4,6,7,8,4] //EXAMPLE ARRAY (not the actual array, cause the real one is way to big
for (i = 0; i<rectArray.length; i++) {
multSearch = ((i+1)* 4)-3;
cord1 = rectCordArray[multSearch];
cord2 = rectCordArray[multSearch+1];
cord3 = rectCordArray[multSearch+2];
cord4 = rectCordArray[multSearch+3];
trace (rectCordArray.length)
stringBase+=cord1+", "+cord2+", "+cord3+","+cord4+"));";
//////////////////////////////////////////////////
}
I can trace the multSearch variable, which returns the number that I want. But lets say that I trace the cord1 variable, it returns undefined. All of the cord variables return undefined. Why is this, when the multSearch variable works the way it should?
Please help me if you get the time.