# Combobox component

**URL:** <https://forum.kirupa.com/t/combobox-component/30777>\
**Category:** Uncategorized\
**Created:** [September 13, 2003, 9:28pm UTC](https://forum.kirupa.com/t/combobox-component/30777 "2003-09-13T21:28:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanman918](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@sanman918](https://forum.kirupa.com/u/sanman918)\
**Post date:** [September 13, 2003, 9:28pm UTC](https://forum.kirupa.com/t/combobox-component/30777/1 "2003-09-13T21:28:18Z")

</div>

I’m trying to mack a simple drop down list where each selection has its own value. I have a combo box with the following parameters.  
Editable = false  
Labels = choice1, choice2  
Data = 0,1  
Row Count = 8  
Change Handler = blank

I have an instance name of “type” on the component. Now I have a dynamic text field with a var of “price” and on the first frame of my movie i have this code  
if (\_root.type == 0) {  
\_root.price = 10;  
}  
if (\_root.type == 1) {  
\_root.price = 20;  
}

But its not showing these values in my text field when i select those choices. Any suggestions?
