# Item array + interval question

**URL:** <https://forum.kirupa.com/t/item-array-interval-question/167872>\
**Category:** Uncategorized\
**Created:** [November 1, 2005, 10:45pm UTC](https://forum.kirupa.com/t/item-array-interval-question/167872 "2005-11-01T22:45:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitras](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nitras/32/1475_2.png) [@nitras](https://forum.kirupa.com/u/nitras)\
**Post date:** [November 1, 2005, 10:45pm UTC](https://forum.kirupa.com/t/item-array-interval-question/167872/1 "2005-11-01T22:45:18Z")

</div>

hi crew.

so i spend the night on writing this scripts;  
after a few bugs it worked well.

now i want to take it one step further. but i just lost logic here.  
i’d like to popup this menu with an interval  
lets say. let it rest for a second then drop the next item from the array

anyone wanna give me a little push?  
i know how intervals work, yet i can’t seem to implent it correctly here.

thanks kindly

```auto

// functies
 MovieClip.prototype.TLonRollOver = function() {
 	format.color = 0xFF0000;
 	this.text.setTextFormat(format);
 };
 MovieClip.prototype.TLonRollOut = function() {
 	format.color = 0x666666;
 	this.text.setTextFormat(format);
 };
 MovieClip.prototype.TLonRelease = function() {
 	
 	
 	for (i=0; i<menu.length; i++) {
 		item = eval("knop_mc"+i);
 		item.enabled = true;
 		item.useHandCursor = true;
 		format.color = 0x666666;
 		item.text.setTextFormat(format);
 	}
 	holder_mc.loadMovie(this.vid);
 	this.enabled = false;
 	
 	this.useHandCursor = false;
 	format.color = 0xCCCCCC;
 	this.text.setTextFormat(format);
 };
 // -- Format
 format = new TextFormat();
 format.font = "SKA_75_marul_CE";
 format.size = 8;
 format.color = 0x666666;
 // -- Menu opbouw
 
 menu = new Array();
 menu[0] = {titel:"Home", vid:"Home.swf"};
 menu[1] = {titel:"test 1", vid:"test1.swf"};
 menu[2] = {titel:"test 2", vid:"test2.swf"};
 menu[3] = {titel:"test 3", vid:"test3.swf"};
 menu[4] = {titel:"test 4", vid:"test4.swf"};
 menu[5] = {titel:"test 5", vid:"test5.swf"};
 menu[6] = {titel:"long line to see if the autosize works propperly", vid:"test6.swf"};
 
 
 // -- clip holder
 this.createEmptyMovieClip("holder_mc", this.getNextHighestDepth());
 holder_mc._x = 100;
 holder_mc._y = 100;
 // menu
 format.color = 0x666666;
 for (i=0; i<menu.length; i++) {
 	// attachmovie
 	attachMovie("knop_mc", "knop_mc"+i, this.getNextHighestDepth());
 	knopsize = eval("knop_mc"+(i-1));
 	item = eval("knop_mc"+i);
 	item.vid = menu*.vid;
 	item.text.autoSize = true;
 	item.text.text = menu*.titel;
 	item.text.setTextFormat(format);
 	
 	// x y positie
 	item._x = 5;
 	if (i == 0) {
 		item._y = 10;
 
 	} else {
 		item._y = knopsize._y+knopsize._height;
 	}
 	// -- buttons
 	item.onRollOver = this.TLonRollOver;
 	item.onRollOut = this.TLonRollOut;
 	item.onRelease = this.TLonRelease;
 }

```
