# Array Problem/Question?

**URL:** <https://forum.kirupa.com/t/array-problem-question/238907>\
**Category:** flash\
**Created:** [September 17, 2007, 2:02am UTC](https://forum.kirupa.com/t/array-problem-question/238907 "2007-09-17T02:02:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cianpas\_eircom](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@cianpas\_eircom](https://forum.kirupa.com/u/cianpas_eircom)\
**Post date:** [September 17, 2007, 2:02am UTC](https://forum.kirupa.com/t/array-problem-question/238907/1 "2007-09-17T02:02:12Z")

</div>

Hi,

Im breaking my heart to try and figure this out. Basically I have a movie clip (Test), which I want to jump to a specific frame when one of 7 other movie clips are clicked. I can get it to work when I tell it to just go to a specific frame. But when I try and create and array for each of the frame numbers nothing happens. The script I have is as follows:

My Array

var linkArray:Array = Array(“1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”);

Telltarget code

tellTarget (this.test) {  
gotoAndStop(+linkArray[mc.index%7]);  
}  
}  
};

As I said. If I put just the frame numer in it works fine. But using the +linkArray[mc.index%7] doesn’t work at all. Any help would be greatly appreciated.
