40 likes | 173 Views
REVIEW FOR LESSON 9. Srings & Text Boxes. 1. How do I change the text of a dynamic text box with the name changeMe_txt ?. You can’t change the value of dynamic text boxes, only input text boxes. changeMe_txt = “Two guys walked into a bar; you would think that one would’ve ducked.”;
E N D
REVIEW FOR LESSON 9 Srings & Text Boxes
1. How do I change the text of a dynamic text box with the name changeMe_txt? • You can’t change the value of dynamic text boxes, only input text boxes. • changeMe_txt = “Two guys walked into a bar; you would think that one would’ve ducked.”; • changeMe_txt.text = A jiffy is an actual unit of time for 1/100th of a second.; • changeMe_txt.text = “Q. What dog keeps the best time? A. A watch dog.”;
2. What’s the correct way to define and initialize a variable that can hold words? • varstring:Number = 22; • varmyString:String = 455; • varmyString:Words = “Word one and word two”; • varmyString:String = "Q. What did the water say to the boat? A. Nothing, it just waved.";
3. The Box MovieClip has been exported for ActionScript with the class name mcDude. What is the correct way to add an instance of the mcDudemovie clip to the stage just using ActionScript? A. varmyMovie:MovieClip; addChild(myMovie); B.addChild(mcDude); C.varmyDude:MovieClip; myDude = new mcDude(); addChild(mcDude); D. varmyMovie:MovieClip; myMovie = new mcDude(); addChild(myMovie);