Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-26-2002, 11:27 PM   #1
dina
Registered User
 
Join Date: Feb 2002
Location: Toronto
Posts: 13
Post FlashMX \ ComboBox:.::

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 is offline   Reply With Quote
Old 06-26-2002, 11:29 PM   #2
dina
Registered User
 
Join Date: Feb 2002
Location: Toronto
Posts: 13
Post FlashMX \ ComboBox:.::

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 is offline   Reply With Quote
Old 06-27-2002, 05:24 AM   #3
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

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
__________________
€* GOD Is Near €*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI

Last edited by farafiro; 06-27-2002 at 05:26 AM.
farafiro is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the selected item in a combobox mcmcom Components 3 07-28-2006 11:42 AM
ComboBox data trigger question frank grimes Components 0 02-15-2005 08:24 PM
[mx] combobox, focus & keypad arrows chartrandi Components 0 03-31-2004 11:12 AM


All times are GMT. The time now is 03:26 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.