---- QUIZ 4 STUDY GUIDE: (QUIZ FIVE STUDY GUIDE too) ---- QUIZ FIVE is on WEDNESDAY April 9th. 1. Know what the role of the imageHolder, the slides, and the slideShow Movie Clip symbols are in the slide show assignment. a. holder0, holder1, holder2, holder3 and holder4 were the 5 holder instances. b. why were there 5 instances of holder when only 4 images were to be displayed in the Cafe Townsend FMA (Flexible Messaging Application). c. how were the different library symbols nested and how was that similar to your car with rotating wheel symbols nested inside of the car symbol? http://www.uni.edu/~jacobson/images/tutorialFMA.pdf 2. How many Motion Tweens are there in the Cafe Townsend tutorial application are there? What does each Motion Tween do? Is there an Ease In or an Ease Out for each Motion Tween? Why is this Motion Tween the best choice to make a pleasing application? 3. The following statement is part of the ActionScript for the Cafe Townsend tutorial. Be able to describe what this EventListener that you add to an object (a button in this case) with the .addEventListener() method basically accomplishes. next_btn.addEventListener( "click", nextMenuItem ); Note: The .addEventListener() method is the same in ActionScript 3.0 as it is in ActionScript 2.0. on (release) { <------------ Flash 8 and before (AS 2.0) do whatever you want done for the button release event } <------------ on (release) cannot be used in AS 3.0 But the next_btn.addEventListener( "click", nextMenuItem ); can be done in Flash 8 and used in AS 2.0 Flash CS3 (Flash 9) or in AS 3.0 Flash CS3 (Flash 9) applications. 1. next_btn.addEventListener( MouseEvent.CLICK, nextMenuItem ); 2. next_btn.addEventListener( "click", nextMenuItem ); Both 1 and 2 are the same, except that the 1. approach is only available for Flash 9 and CS3 and AS 3.0. In the very latest version of AS 3.0 you can do either 1 or 2 above. - - --- -- --- ActionScript 2.0 AS 2.0 - - --- -- --- function nextMenuItem( eventObj:Object ) { <--- Note the ( ) difference here. FMA Cafe Townsend Flash } - - --- -- --- ActionScript 3.0 AS 3.0 - - --- -- --- function nextMenuItem( evt : MouseEvent ) { <--- Note the evt:MouseEvent instead of actionscript statements and code eventObj:Object } 4. Know the Math.random() material we have covered. var d1:int = Math.floor(Math.random() * 6 + 1); var d2:int = Math.floor(Math.random() * 6 + 1); if (d1 == d2) { trace("You rolled doubles!"); } else if (d1 + d2 == 7) { trace("You rolled SEVEN!"); } else if (d1 + d2 == 11) { trace("You rolled ELEVEN!"); } else { var diceTotal = d1 + d2; trace("Your rolled a total of " + diceTotal); } var birthday:int = Math.floor(Math.random() * 365 + 1); birthday would be a variable storing a random number between 1 and 365. -------- --- 5. Know the first 3 portions of the Friday, March 28th hands-on class. See http://www.uni.edu/jacobson/startOfNunchukaStriker.html #1. addEventListener(Event.ENTER_FRAME, followMouse); function followMouse( evt : Event ) { mouseX_txt.text = String(mouseX); mouseY_txt.text = String(mouseY); } #2. Mouse.hide(); #3. theBall.x = mouseX; theBall.y = mouseY; See http://www.uni.edu/jacobson/startOfNunchukaStriker.html The explanation that goes with the #1, #2 and #3 is on the web page http://www.uni.edu/jacobson/startOfNunchukaStriker.html You might want to DO the 1st 3 parts of last Friday's lab again for review and practice. 6. Know the F6, F8, F9 keyboard shortcuts for review of the easier Flash basics of inserting keyframes, converting to symbols and displaying the actionscript panel. 7. Be able to describe the general steps for how to make the Border in the Cafe Townsend application. The border was the rounded black opaque material in the 4 corners of the Stage. See the Create the border portion of the tutorialFMA.pdf document. http://www.uni.edu/~jacobson/images/tutorialFMA.pdf ----------------------------------------------------------------------- function testFunc( eventObj : Object ) { menu_mc.title_txt.text = "Testing the title"; menu_mc.description_txt.text = "Testing the description"; } next_btn.addEventListener( "click", testFunc ); ----------------------------------------------------------------------- This quiz study guide will prepare you for quiz #4 on Wednesday, April 2nd. It will also help you prepare for quiz #5 the following Wednesday, but there will be additional material added to that. Hopefully, this quiz study guide will help you get moving on the Cafe Townsend tutorial slide show assignment too!