40 likes | 186 Vues
This review covers how to manipulate text in dynamic text boxes, specifically focusing on the 'changeMe_txt' instance. Key points include the limitation of dynamic text boxes, which cannot have their values changed directly, alongside examples of proper text assignments using the ActionScript code. Additionally, the review highlights the correct way to define and initialize variables that can hold words, as well as the correct method for adding instances of movie clips like 'mcDude' to the stage using ActionScript.
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);