Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Help with Multiple Options |
From: | mbain |
Date: | Wed, 15 Sep 1999 08:42:32 +0100 |
INTERESTING binary logic here ...
alternatively you can make a variable 0 if not tivked and 1 if ticked ..then
stcick the values of the variable together into another variable...
like .....0+1+0+0+1 = 01001
now ..there will be 32 possible values for that variable - each giving another
result which you set up
Michael Bain
"(A)bort (R)etry (I)nfluence with large hammer"
IBM Global Services, Tel external: 011 302 7234, Tel ext internal: 11120,
Cel.Phn: 082 926 1856
------> http://www.futuredynamics.co.za/cyberbaby/babym.html
Henk van Rijssen <henkryscasema [dot] net> on 09/15/99 09:16:08 AM
Please respond to flashershocker [dot] com
To: flashershocker [dot] com
cc: (bcc: Michael Bain/South Africa/IBM)
Subject: Re: FLASH: Help with Multiple Options
At 17:34 14-9-99 , you wrote:
>There are 5 checkboxes. The user can check any combination of boxes, each
>combination would deliver a different response. I'm not sure how to go about
>setting this up. Any suggestions are greatly appreciated.
Hi Eric,
With 5 checkboxes and any combinaton allowed you have 32 possible combinations.
Although I've never done this in Flash you might try this:
lets call the 5 checkboxes A, B, C, D and E
Assign to all checkboxes a variable
When a checkbox isn't selected the value for the variable for that checkbox
is 0, otherwise it gets a value depending on which checkbox is selected:
A.........value 1
B......... value 2
C.......... value 4
D......... value 8
E .........value 16
When the user submits his/her choices make a sum of all variables.
The value of the sum holds now the information which chekbox(es) is/are
selected.
Sum variables = 0 no checkboxes selected
Sum variables = 1 checkbox A selected
Sum variables = 2 checkbox B selected
Sum variable = 3 checkbox A and B selected
Sum variables = 4 checkbox C selected
Sum variable = 5 checkboxes C and A selected
etc.
Based upon the value of the sum of the variables you know which checkboxes
are selected and can give the correct response for that choice
HTH (a little)
Henk van Rijssen
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-managershocker [dot] com. Problems to: helpchinwag [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-managershocker [dot] com
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-managershocker [dot] com. Problems to: helpchinwag [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-managershocker [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]