Write the first line of code for the declaration of your string variable called sign: var sign:String
Write the second line of code to assign the word "OPEN" to the string variable you declared in line one: sign ="OPEN"
Write the third line code for the declaration of a TextField(textbox) object: var outputword:TextField = new TextField ().
Write the fourth line of code to assign the contents of the string, OPEN, to the text property of the TextField, outputword, you created in step two: outputWord.text = sign
Write the fifth line of code to place the TextField, outputWord, on the stage (the screen): addChild(outputWord)
Write the sixth and seventh line of code to assign a position for the TextField, ouputWord, on the stage (the screen): outputWord.x = 250; outputWord.y = 250.
Review the code you wrote (below) for syntax errors and correct functionality.
var sign: String
sign ="OPEN"
var outputWord:TextField = new TextField()
outputWord.text = sign
addChild(outputWord)
outputWord.x = 250
outputWord.y = 250
Enter the code from Step 7 in the ActionScript editor in your flash file. After entering it, click the syntax checker button to check for syntax errors. Correct any typing or syntax errors that the compiler (error checker) reports. Next, select select the "Test Movie" option from the "Control" menu to view the movie.
Change the code so that the the word displayed in the movie will be "CLOSED" and the position of the word will be displayed in the lower left right corner of the stage (coordinate point x=500, y=500). Check to see if your changes are correct by comparing your changes with the code listed below.
var sign: String
sign ="CLOSED"
var outputWord:TextField = new TextField()
outputWord.text = sign
addChild(outputWord)
outputWord.x = 500
outputWord.y = 500