Date: Wed, 10 Mar 2010 12:23:22 -0600 (CST) From: Mark Jacobson To: 810-088-12-spring@uni.edu Subject: Friday class - QUIZ on FRIDAY!!! Hi 088 students, We will have our 4th quiz on Friday and I will post a study guide or outline about it later this afternoon for you. The study guide/outline will talk about and go over quiz 3, that was handed back today, too. I need to talk about several questions from QUIZ 3, so that will also be good review if they or similar questions come up on quiz 4 on Friday. Sorry to have to reschedule the quiz to Friday, so let me know by email right away if that is a problem for any of you who had to start spring break early due to flight schedules and costs and so on. Friday will cover the following: 1. Finish the interactive Flash application with the invisible button. Upload it to your sunny.uni.edu account. 2. Create a 4th area on the invisible button to click so that you go to the class web page, http://www.cs.uni.edu/~jacobson/AE 3. Move on and do something new in Adobe After Effects. 4. Take quiz #4. --------------------------------------------------------------- Here is the Actionscript 3.0 code from today's class: --------------------------------------------------------------- effects_btn.addEventListener(MouseEvent.CLICK, justDoIt); snowing.visible = false; raining.visible = false; function justDoIt( evt:MouseEvent ): void { snowing.visible = false; raining.visible = false; if (mouseY < 125) { snowing.visible = true; } else if (mouseY < 250) { raining.visible = true; } } --------------------------------------------------------------- I changed the values for mouseY to 125 and 250 instead of 120 and 240 since the height of the Flash stage and the JPG we started with was 377 pixels, if I am remembering correctly. So 125 250 375 is about as close to top 3rd, middle 3rd, bottom 3rd as you can get for dividing up the stage into separate areas to see where the user did the CLICK MouseEvent and respond accordingly. Mark