Final Exam Study Guide Fall 2013 - 3-4:50 pm Thursday December 17th
1. Generating random integers is AS 3.0 is the same as generating random integers in Excel or in VBA. Only the syntax is different: Math.floor() instead of INT() Math.random() instead of Rnd or RAND() 2. addEventListener - note E and L are UpPeR CASE E L buttons are listening typically for what event? What are the two arguments that go inside the addEventListener()? buttonName.addEventListener(arg1, arg2); 3. Timer objects. 500 milliseconds = 1/2 second. 4. keepRolling_btn hears a MouseEvent.CLICK, what does it do? It either stops the rolling dice twice per second, or else it starts the rolling of the dice twice per second. How does it do that? What is tmr? What is the tmr.running? It is a property of the Timer object named tmr. That property, tmr.running is either TRUE or FALSE. tmr.stop() and tmr.start() are commands you can give to a Timer object, specifically to the Timer object named tmr. 5. Why doesn't function rollEm() have anything between the ()s? There is no evt:MouseEvent between the ()s! Why?