adam|zeliasz
09-29-2003, 07:55 PM
This should be easy...
I have two dynamic text boxes on the main time line and a button. One text box we will call A and the other B. The main timeline has two frames, the first has the action script of:
B = 0
The second,
stop ();
I used B=0 to set box B to 0 before I hit the button.
The button on the main timeline puts in a random number into box A from 3-18.
What I would like is an actionscript that checks if box A has a number such as 16 to put a 1 into box B. For example, if A has 16, then B should have a 1. If A has 17, then B should have a 2. If A has 18, then B should have a 3.
Does anyone have a solution? I tried everything I can think of but Im not a programmer. Any help will be appreciated... also if you do have a solution can you post the action script so I can copy and paste?
Thanks.
I have two dynamic text boxes on the main time line and a button. One text box we will call A and the other B. The main timeline has two frames, the first has the action script of:
B = 0
The second,
stop ();
I used B=0 to set box B to 0 before I hit the button.
The button on the main timeline puts in a random number into box A from 3-18.
What I would like is an actionscript that checks if box A has a number such as 16 to put a 1 into box B. For example, if A has 16, then B should have a 1. If A has 17, then B should have a 2. If A has 18, then B should have a 3.
Does anyone have a solution? I tried everything I can think of but Im not a programmer. Any help will be appreciated... also if you do have a solution can you post the action script so I can copy and paste?
Thanks.
