# Combobox problem showing full stops after sending variable to function array

**URL:** <https://forum.kirupa.com/t/combobox-problem-showing-full-stops-after-sending-variable-to-function-array/264447>\
**Category:** Uncategorized\
**Created:** [June 26, 2008, 7:28am UTC](https://forum.kirupa.com/t/combobox-problem-showing-full-stops-after-sending-variable-to-function-array/264447 "2008-06-26T07:28:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![santino\_6](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@santino\_6](https://forum.kirupa.com/u/santino_6)\
**Post date:** [June 26, 2008, 7:28am UTC](https://forum.kirupa.com/t/combobox-problem-showing-full-stops-after-sending-variable-to-function-array/264447/1 "2008-06-26T07:28:06Z")

</div>

hi all… i really need some help here, its driving me mad and i dont think i will ever solve this.

ok here goes.  
im trying to populate a combobox with an array and when i send a variable to this function instead of populating the combobox with my array it instead just populates its with full stops, now when i check the output with trace it shows its ok. so this is where i so fed up. if it shows to output the correct result then why does it mess up.

here is the code for the first frame on the stage.

carArray = new Array(“Chrysler”,“Porche”,“Mazda”,“Toyota”);  
foodArray = new Array(“Hamburger”,“Hotdog”,“Pizza”);  
drinkArray = new Array(“Water”,“Beer”,“Wine”,“Martini”);

setSubCombo()

poo = drinkArray ;

function setSubCombo() {  
sub\_cb.removeAll();  
var subArray = ‘poo’;  
trace(poo);  
for(var i=0; i\<subArray.length; i++) {  
sub\_cb.addItem(subArray\*,subArray\*);  
}  
}

and in the button i have this

on (release) {  
\_root.poo = ‘foodArray’;  
\_root.setSubCombo();

}

ok now i have tried this in many different ways, using global variable ect ect and no matter how many methods i use i get the same result.

so please help me for i dont have the brains to work this out.  
i so hate myself right now, never ever ask for help, but this time i dont have faith in my stupid self.

love to you all… but NO love to bush or blair

---

<div class="post-metadata">

**Author:** ![santino\_6](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@santino\_6](https://forum.kirupa.com/u/santino_6)\
**Post date:** [June 27, 2008, 3:33am UTC](https://forum.kirupa.com/t/combobox-problem-showing-full-stops-after-sending-variable-to-function-array/264447/2 "2008-06-27T03:33:11Z")

</div>

ok i have worked it out now, not really fixed it as such it just means i have to write a lot more code todo a simple thing, not very good way of doing it but i think flash has a lot of bugs they need to fix.

im surprised no one even made a suggestion.
