# Problem with combobox

**URL:** <https://forum.kirupa.com/t/problem-with-combobox/166166>\
**Category:** Uncategorized\
**Created:** [October 17, 2005, 7:14pm UTC](https://forum.kirupa.com/t/problem-with-combobox/166166 "2005-10-17T19:14:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yodalr](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/yodalr/32/1816_2.png) [@yodalr](https://forum.kirupa.com/u/yodalr)\
**Post date:** [October 17, 2005, 7:14pm UTC](https://forum.kirupa.com/t/problem-with-combobox/166166/1 "2005-10-17T19:14:54Z")

</div>

how to add items from external file to flash component combobox? Any ideas?

here’s the current code:  
[AS]  
//cars is the combobox instance  
//car1 is the variable from replaycars.php file and it equals to KIT  
\_root.loadVariables(“replaycars.php”);  
cars.addItem(car1);  
cars.addItem({data:2, label:“second value”});  
cars.addItem({data:3, label:“third value”});  
[/AS]
