# 2nd frame in movie clip of an array?

**URL:** <https://forum.kirupa.com/t/2nd-frame-in-movie-clip-of-an-array/306485>\
**Category:** flash\
**Created:** [March 16, 2010, 2:53pm UTC](https://forum.kirupa.com/t/2nd-frame-in-movie-clip-of-an-array/306485 "2010-03-16T14:53:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![martiandrivein](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@martiandrivein](https://forum.kirupa.com/u/martiandrivein)\
**Post date:** [March 16, 2010, 2:53pm UTC](https://forum.kirupa.com/t/2nd-frame-in-movie-clip-of-an-array/306485/1 "2010-03-16T14:53:13Z")

</div>

```auto
var myMenuArray = [watchesBtn, strapsBtn, sunwearBtn, handbagsBtn];
for each (var btn in myMenuArray) {
	btn.addEventListener(MouseEvent.CLICK, onBtnClick);
	btn.addEventListener(MouseEvent.MOUSE_OVER, onBtnOver);
}
function onBtnClick (event:MouseEvent):void {
    	//gotoAndStop(event.target.index);
		trace("watches");
}
function onBtnOver (event:MouseEvent):void {
	myMenuArray[event.index].gotoAndStop(2);
	
}

```

I’m obviously a super n00b, because This second function keeps returning an error, and I’ve tried almost every different variation I can think of. All I want it to do is go to the second frame of the movie clip that is scrolled over. Help, please?
