PDA

View Full Version : FlashMX \ ComboBox:.::


dina
06-27-2002, 12:27 AM
Hi everybody,

Here I have a situation:

I have 3 different combo boxes with first one labeled from A to C, second one D to F and the third one G to I (these are the content of my combo boxes).

I also have a CheckBox which would return value "20" on True and "0" on false.

Now, I'd like to assign a number to each one of the above words as follow:
A=1 / B=2 / C=3 / D=4 / E=5 / F=6 / G=7 / H=8 / I=9

I need such program that calculates the sum of the numbers assigned to each of the chosen alphabet.

Ex: Combo #1=A value=1
Combo #2=E value=5
Combo #3=I value=9
CheckBox=True=20
--------------------------
Out put must be" 35 "

If you are out there and got some idea please share it with me.

Love you all
Dina

dina
06-27-2002, 12:29 AM
Hi everybody,

Here I have a situation:

I have 3 different combo boxes with first one labeled from A to C, second one D to F and the third one G to I (these are the content of my combo boxes).

I also have a CheckBox which would return value "20" on True and "0" on false.

Now, I'd like to assign a number to each one of the above words as follow:
A=1 / B=2 / C=3 / D=4 / E=5 / F=6 / G=7 / H=8 / I=9

I need such program that calculates the sum of the numbers assigned to each of the chosen alphabet.

Ex: Combo #1=A value=1
Combo #2=E value=5
Combo #3=I value=9
CheckBox=True=20
--------------------------
Out put must be" 35 "

If you are out there and got some idea please share it with me.

Love you all
Dina

farafiro
06-27-2002, 06:24 AM
hey Dina, I donno what r u doing exactly but let me try to halp as what I've got.
U can assing a variable to each letter u gave to your combo boxes, and give each one a value of 0
so u have 9 variables.
then within the script of every combo boxes u add the number u want to the variable, i.e
in youe example
Ex: Combo #1=A value=1 variableA1 = 1
Combo #2=E value=5 variableE2 = 5
Combo #3=I value=9 variableI3 = 9
CheckBox=True=20
--------------------------
Out put must be" 35 " variableSum = 20 + variableA1 +variableE2 +variableI3
this is a way,
or if u want just to calculate the output only, u may make one variable with a value of "20" the with each chosec from the combo boxes u add a spacified value to it, then make a button that shows that value to a text box

Hope that helps