-
PLEASE HELP ME!!! (with input text problem)
I know this might sound a little confusing, but I will try to be as specific as possible. Ok what I want to do is make an order form. I want to make 2 input text boxes that the customer can fill out, one for color and one for size. Then I want to automatically generate a sort of code based on what the customer entered, so I think I will need a dynamic text box on the side for the code to appear. But my question is, Is there a way to make the dynamic box equal to both of the things the customer put it? Like if they enter "blue" for color and "large" for size, is there a way to make the dynamic box generate a code saying "bluelarge" Do you know what I mean? Any help would be greatly appreciated! Thanks a lot.
-
Senior Member
var myConnectedText:String = text1.text+text2.text;
text1 and text2 are names form the dynamic textfields.
- The right of the People to create Flash movies shall not be infringed. -
-
I dont have 2 dynamic boxes. I have 2 input boxes for the customer to enter the size in one and color in the other. They have var names of "size_box" and "color_box". And I have 1 dynamic box, with that var name "code_box" that I want to make the code in, which should be the color and size together. So what do I do and where do I put the code? On the keyframe? Sorry I am new to flash.
-
Senior Member
It's all the same.
var myConnectedText:String = color_box.text+size_box.text;
here you need a button:
code_box.text = myConnectedText;
- The right of the People to create Flash movies shall not be infringed. -
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|