Array-based drop-down menu

I’m trying to create an array based drop-down menu, or drop-up in this case. Can anyone help? Know of any tutorials? Any help would be appreciated!

Here’s what I have so far. It basically just populates a multiline text field with each array item on a seperate line.


drop_array = new Array("item1", "item2", "item3");

for (i=0; i < drop_array.length; i++) {
	drop_down.text += drop_array* + "
";
}