|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
using data[] from comboBox
I don't know why this returns NaN
A = comboBoxA.getValue() * comboBoxC.getValue(); B = comboBoxB.getValue() * comboBoxC.getValue(); DynamicText.text = A + B; //Returns NaN instead of the result DynamicText.text = A; //Works perfectly I changed to: A = Number(....) * Number(....); //doesn't work either A = parseInt(....) * parseInt(....) ; //doesn't work either A = Val(....) * Val(....); //doesn't work either HELP pls............Any help will be certainly appreciated!!!! |
|
#2
|
|||
|
|||
|
I'm not able to recreate your problem. Here's the change handler I have.
Code:
function calculate() {
A = comboBoxA.getValue() * comboBoxB.getValue();
B = comboBoxA.getValue() + comboBoxB.getValue()
_root.myValue.text = A+B;
}
If functions properly. Make sure the data are numbers and not strings. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > using data[] from comboBox |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|