# Actionscript ComboBox

**URL:** <https://forum.kirupa.com/t/actionscript-combobox/113478>\
**Category:** Uncategorized\
**Created:** [June 18, 2004, 12:37pm UTC](https://forum.kirupa.com/t/actionscript-combobox/113478 "2004-06-18T12:37:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![strivedi](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@strivedi](https://forum.kirupa.com/u/strivedi)\
**Post date:** [June 18, 2004, 12:37pm UTC](https://forum.kirupa.com/t/actionscript-combobox/113478/1 "2004-06-18T12:37:49Z")

</div>

Hey guys, here is the AS that I am trying to use. Its a combo component, on index change it suppose to go to the frame number specified and then stop. When I change it for the first time, the script runs fine, but after that the script doesn’t work. This AS is in frame 1. Frame 2 has identical code, the changes are PageName = “NewName” and rssComobo.selectedIndex = 1;"

[AS]PageName = “Snehal”;  
rssCombo.selectedIndex = 0;  
nchange = new Object();  
nchange.change = function (evt){  
PageName = evt.target.selectedItem.data;  
if (PageName == “Snehal”)  
gotoAndStop(1);  
else if (PageName == “Neetu”)  
gotoAndStop(2);  
else if (PageName == “Prometheus”)  
gotoAndStop(3);  
else if (PageName == “Paras”)  
gotoAndStop(4);  
}

rssCombo.addEventListener(“change”, nchange);

```auto

I have a feeling that I might have more questions about the rest of the AS in this little experiment, just thought I break it down into segments.  

Thanks for your help.

Snehal
```
