Date: Mon, 18 Feb 2008 15:52:27 -0600 (CST) From: Mark Jacobson To: 810-088-09-spring@uni.edu Subject: Flash class review and Quiz Two on Wednesday... 1. The Flash quiz two, as any of you know who were at class today, will be on Wednesday. We had a very productive class today, in my estimation, so I am not disappointed we kept going into the car with rotating wheels concepts. Using theBlueBlade and theGreenBlade to illustrate the need for Library Symbols to be building blocks for GreenRotatingBlade and BlueRotatingBlade, i.e. Symbols that have their own Timeline, so they can have their own animation (Motion Tween between two theBlueBlades, for example, for the BlueRotatingBlade, was very useful, I hope. 2. The Flash cars assignment will not be due until Friday. Help with uploading it can come again in class demo on Wednesday, using Dreamweaver and in hands-on class on Friday, using Dreamweaver. 3. If you need help uploading Flash, just let me know and I can help you. Please make an appointment by email or see me after class or before class. 4. One thing I have discovered is confusing is the naming of the instances of theRotatingWheel. Your assignment will have TWO instances of theRotatingWheel. You can name them (instance name, not Symbol name) something like rearWheel and frontWheel or rearTire and frontTire Suppose that the instance of theCarSymbol from your library that you animate on the Stage using the main timeline and a motion tween to go from off stage left side to off the stage exit right side is named theCar. Remember, every instance of theCarSymbol has two named component symbols, i.e. the two instances of theRotatingWheel symbol. Suppose you named your theCarSymbol wheels rearWheel and frontWheel. --------- ---------- How do you start the car's wheels rotating again, if they are stopped? this.theCar.rearWheel.play(); this.theCar.frontWheel.play(); -- If your theCarSymbol instance is named theCar and theRotatingWheel -- ------ two instances it uses are called rearWheel and frontWheel! How do you stop the wheels from rotating? this.theCar.rearWheel.stop(); this.theCar.frontWheel.stop(); How do you stop theCar from moving across the stage over and over? stop(); How do you start theCar up again so it drives across the stage again? play(); What would the following button do when you clicked it? on (release) { play(); this.theCar.rearWheel.stop(); this.theCar.frontWheel.stop(); } It would start theCar moving from KF#1 (off stage to left side) to KF#2 (off stage, exit right side), i.e. start theCar driving across the stage over and over again from the start KF position to the finish or final KF position. Yet theCar would be skidding its tires, as neither tire would be rotating because of the stop() command you gave to that tire on that car. $$$$$$ **** ^^^ this.theCar.rearWheel.stop(); ^^^^^^ ********* $$$$$$ car tire command This should help, especially if you study it in conjunction with your notes and handouts and the class web page AND take notes about it too. Experimenting and playing around and trying things out in Flash is very good too. What would the code look like for stopping only the car? on (release) { stop(); } What would the code look like for stopping only the tires? on (release) { this.theCar.rearWheel.stop(); this.theCar.frontWheel.stop(); } What would the ActionScript 2.0 code for a GREEN Go button look like if it was supposed to start up everything again, assuming that the name of the car was theCorvette, and the names of theCarSymbol's instances of theRotatingWheel that theCarSymbol was made up of were: rear_Wheel and front_Wheel? on (release) { play(); this.theCorvette.front_Wheel.play(); this.theCorvette.rear_Wheel.play(); } See you on Wednesday for Quiz Two and more ActionScript 2.0. Mark