Dynamic and Input text
Input text
As the traditional HTML Flash allows for creation input text boxes. Again, Flash gives an opportunity to use any fonts for that and make such design elements as information submit fonts much more attractive.
Create a new file and let's make one more small example.
- Add a text to the stage "Enter your name"
- In the Properties Inspector change text type to Input. Set the var textbox to thename
- Create another textbox. Make it Dynamic. Set it's var to greeting
- Add the button with the following code
on (release) { greeting="Hello " + thename + "!"; } - For the convenience click the small button with the "page" icon for the Input text – to activate the border around the text – to make it visually like textbox.
- Test the movie. When you enter text into input box and click button, personalized greeting should appear in the second, dynamic text.