# Simple List from UI components

**URL:** <https://forum.kirupa.com/t/simple-list-from-ui-components/189904>\
**Category:** flash\
**Created:** [June 7, 2006, 3:45am UTC](https://forum.kirupa.com/t/simple-list-from-ui-components/189904 "2006-06-07T03:45:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Multi\_Task](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@Multi\_Task](https://forum.kirupa.com/u/Multi_Task)\
**Post date:** [June 7, 2006, 3:45am UTC](https://forum.kirupa.com/t/simple-list-from-ui-components/189904/1 "2006-06-07T03:45:02Z")

</div>

Using a list from UI components and a button from UI components so when user selects value from list and hits button, it should take them to desired selection (in this case I want it to go to different HTML pages depending on selection from list).

Here is my AS can anyone, please help been looking all over the internet and cant find a tutorial for something like what I am trying to do.

AS:  
function onSelect(list) {  
if(list.getValue() == true {  
list.setSelectedIndices([0,1,2,3,4,5,6,7,8]);  
list.setEnabled(false);  
} else {  
list.setSelectedIndices(null);  
list.setEnabled(true);  
}  
}  
function onSubmit() {  
formData = new Load Vars();  
formData.list = “”;

formData.list = list.getValue();

Where do I put in the URL’s for each selection? Or if anyone knows of a tutorial for something like this please send that as well. Thanks.  
MT
