March 6, 2008

Input Text & Dynamic Text

In this example, the input text field is where the visitor enter their name :
I use the text tool to create the box and set the properties in Property Inspector
Text Type: Input Text, Line Type: Single Line, Selectable: On, Show border Around Text: On
Maximum Characters: 20



ActionScript:

on (release, keyPress "") {
gotoAndStop("1");
}



After typing the name, press the enter key or click the Go button, a personalized message on the site greet each visitor:



msgWelcome is the Variable name I assigned to the text box

msgWelcome = "Hello " + name + ", welcome to Timeless Blooms.";



Screen Shot showing the editing mode of msg Welcome movie clip, layers, and Property Inspector





No comments: