PDA

View Full Version : Combobox values and a button.


ianpatrick
07-13-2005, 03:23 PM
My problem is this. I am using the ghostwire combobox (basically the same as the flash version but with more options). This combobox as 3 values (in this case sizes of shirt: small, medium, large). When the user selects one of these in the combobox, I need my corresponding button to reflect this (it is a buy now link). So the button basically has 3 possible getURL links depending on the value of the combobox, but I can't get this to work for the life of me. I have tried an if, else if statement on the button with no luck. Any help is greatly appreciated. Thanks.

sleekdigital
07-13-2005, 06:22 PM
What is the code you tried?

ianpatrick
07-13-2005, 07:11 PM
Here is what I have on the button without the actual links:

on (release) {
if (ComboBox.data = "large") {
getURL("link1");
} else if (ComboBox.data = "xlarge") {
getURL("link2");
} else if (ComboBox.data = "xxlarge") {
getURL("link3");
}
}

I have checked the output and the value "data" is set correctly and responds when the combobox selection has been changed.

sleekdigital
07-13-2005, 07:19 PM
At least read the help docs on the combobox... data is not even a property of the combobox. Using the "value" property might work, but that depends on how you have your combobox setup.

ianpatrick
07-13-2005, 07:41 PM
Sorry about that, "data" was just put in place of "value" this morning as a blind stab. I adjusted it back right now and still no luck. I have read all of the ghostwire docs and they don't seem to help in this matter.

ianpatrick
07-14-2005, 04:45 AM
Here is my source file if it will help identify my problem.