all groups > flash data integration > march 2005 >
You're in the

flash data integration

group:

Combo Boxes do not work? WHY! :-)


Combo Boxes do not work? WHY! :-) ProWebDesigns
3/21/2005 12:18:52 PM
flash data integration: Alright... I have an issue with some combo boxes absolutely refusing to
populate in my movie. You can visit
http://www.prowebsitedesigns.net/clients/jbock/www/cardmaker/index.htm and use
test for username and test for password.

I have three things going on. First - There is a movie clip that ultimately
should become the combo box. That is not working. So - I created a combo box
component on the stage and gave it instance of theme_cb - I am using a for-loop
to populate it:

for (num = 0; num < itemtheme.length; num++)
{
theme_cb.addItem(itemtheme, itemThemeID);
} // end of for

I am getting values from the itemtheme and itemThemeID - so I don't think that
is the issue.

So - became frustrated with that and made a third combo box and tried adding
items manually in flash. None of the three populate with any drop-down
information period.

Someone help?
Re: Combo Boxes do not work? WHY! :-) Randy1969
3/23/2005 12:29:27 AM
First off, if your pulling data to populate these from an array, your not
accessing the array.

for (num = 0; num < itemtheme.length; num++)
{
theme_cb.addItem(itemtheme
, itemThemeID
);
should be:
for (num = 0; num < itemtheme.length; num++)
{
theme_cb.addItem(itemtheme, itemThemeID);
}

if this is not the case, let me know.

Randy Poole
CIO
TelSim, Inc (http://www.telsim.com)

Re: Combo Boxes do not work? WHY! :-) Randy1969
3/23/2005 12:31:35 AM
Forget my last post, it seems the [ will not work right in the forum. Have you
placed a trace inside your loop to make sure you have data in your array?

Randy Poole
CIO
TelSim, Inc (http://www.telsim.com)
AddThis Social Bookmark Button