# I feel like an idiot asking this....\[Flash 8\] Array question

**URL:** <https://forum.kirupa.com/t/i-feel-like-an-idiot-asking-this-flash-8-array-question/215767>\
**Category:** flash\
**Created:** [February 10, 2007, 4:39am UTC](https://forum.kirupa.com/t/i-feel-like-an-idiot-asking-this-flash-8-array-question/215767 "2007-02-10T04:39:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zellers](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zellers/32/3135_2.png) [@zellers](https://forum.kirupa.com/u/zellers)\
**Post date:** [February 10, 2007, 4:39am UTC](https://forum.kirupa.com/t/i-feel-like-an-idiot-asking-this-flash-8-array-question/215767/1 "2007-02-10T04:39:16Z")

</div>

I need to access a value of an array in flash. This is the way I got it set up

```auto

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.
