Problems with textstring from combobox

Hello

After searching forever for a sollution for this problem I turn to the almighty kirupa for help.

I´ll attach the fla.

I have 2 comboboxed and I want the value from the boxes to go into a textfield.

Now the cb containing numbers is no problem it works fine. But the cb with letters in it (XL,L,M,S) won´t show.

Now I figure I have to “process” the letters in some way to get the swf to understand them but I haven´t got a clue how to do that?

If someone please could help it´s greatly appreciated.

Just in case it´s enough with the code I´ll attach it as well so you don´t have to dl the fla.

[AS]function onSubmit() {
var quantity = “”;
var size = “”;
// Gather the information from comboboxes
quantity = quantity_cb.getValue();
size = size_cb.getValue();

if (quantity > 0); {

message_txt.text = "You picked" + newline;
message_txt.text += "Size" + " " + size + newline;
message_txt.text += "Quantity" + " " + quantity;
}

}{[/AS]

the instance name is wrong…

in the script you have size_cb and in the instance name of the component you have size_cn. :wink:

by the way…

message_txt.text = "You picked
Size "+size+"
Quantity "+quantity;

isn’t that easier? :-\

Man did I really do that!??

Sorry for that really clumsy of me, can´t believe I missed that…well.

Right now im at a comp without flash so I can´t try the
[AS]message_txt.text = "You picked
Size “+size+”
Quantity "+quantity;[/AS]
code but if it ok with you what does the nSizw and nQUantity do I´ve never used them before.

represents a new line.

Ok did not now that!

That will help :slight_smile:

:wink: =)