Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Help with Multiple Options
From: Henk van Rijssen
Date: Wed, 15 Sep 1999 08:25:49 +0100

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-manageratshocker [dot] com. Problems to: helpatchinwag [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-manageratshocker [dot] com


Replies
  FLASH: Help with Multiple Options, Eric Smollin

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]