SerialCoder
Programmer
This should be so simple, but for some reason it is escaping me.
I have a movie (Flash Cards) that on the first Frame sets some global variables:
I have the gNum1 and gNum2 randomly generated And gUserAns is being set with the mouseUp behavior of the keys on the (sprite) keypad.
An example Key behavoir:
In VB this works i.e. if The user hits key 1 and actuates this behavior, gUserAns will become "1" if the user hits it again, it will concatenate gUserAns with "1" again and gUserAns will become "11"
The way this is right now, I hit the 1 key over and over and never get anything but 1 but when I hit 2 the answer shows as 2. Why wont it concatenate? Am I missing some Director thing?
Thanks in advance...
Dave
I have a movie (Flash Cards) that on the first Frame sets some global variables:
Code:
On ExitFrame
Global gNum1,gNum2,gUserAns,gTmp
Set gUserAns = ""
End ExitFrame
I have the gNum1 and gNum2 randomly generated And gUserAns is being set with the mouseUp behavior of the keys on the (sprite) keypad.
An example Key behavoir:
Code:
On MouseUp
Set gTmp = "1"
Set gUserAns = gUserAns & gTmp
Set member("UserAns").text = String(gUserAns)
Play Frame 44
End if
In VB this works i.e. if The user hits key 1 and actuates this behavior, gUserAns will become "1" if the user hits it again, it will concatenate gUserAns with "1" again and gUserAns will become "11"
The way this is right now, I hit the 1 key over and over and never get anything but 1 but when I hit 2 the answer shows as 2. Why wont it concatenate? Am I missing some Director thing?
Thanks in advance...
Dave