# Need help with newb Script

**URL:** https://forum.kirupa.com/t/need-help-with-newb-script/210189
**Category:** flash
**Created:** [December 15, 2006, 10:30pm UTC](https://forum.kirupa.com/t/need-help-with-newb-script/210189 "2006-12-15T22:30:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mellowvw](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mellowvw](https://forum.kirupa.com/u/mellowvw)
#### Post date: [December 15, 2006, 10:30pm UTC](https://forum.kirupa.com/t/need-help-with-newb-script/210189/1 "2006-12-15T22:30:31Z")

</div>

Hello. I am very new with actionscript just read about it today and am trying this stuff out. So here is my script:

stop();

//setting up the list of frame names for the buttons  
imagelist = [“horror”,“legs”,“chair”];

//‘next’ button setup  
next\_b.onrelease = function() {  
gotoAndPlay (imagelist[0]);  
}

trace(imagelist[0]);  
trace (imagelist.length);

So my problem is that on the button release it doesn’t go to the frame that I labelled “horror.” Anyone know why? My button symbol is called b\_next with instance name of next\_b. So don’t think thats the problem. Is it because I made an array that equals the instance name of my frames?

Thanks for any & all help.  
PS (Don’t think it matters but MX2004)
