1. week 1
  2. week 2
  3. week 3
  4. week 4
  5. week 5
  6. week 6
  7. week 7
  8. week 8
  9. week 9
  10. week 10
  11. week 11
  12. week 12
  13. week 13

kirupa.com Tutorials

Thursday, September 23, 2010

Fall 2010 week 2:
—9/20/10: Mon. 9:00 - 12:00

Hi Everyone,
For everyone who was new this week in class, this is the home of the blog for this class. Please visit each week to find out what will be due the following week in class, and to help you recall what we covered in class.


Please review here what we did in class yesterday (Monday). Each week, I will post two things:

  1. the files that we produced in class that week; and,
  2. the homework that will be due the following week.

    WEEK 2
  1. Syllabus
    • LINK    class syllabus
  2. Classwork
    • LINK    This weeks classfiles (same as last week's)
  3. Homework
    • exercise 1:

      Today, in this week's class, you completed a very basic animation with a few small bits of code to add interactivity; for example, making the animation stop when you clicked on your button, and making it resume when you click on the 2nd button. Next, what you will do is make it skip to frame 25 when you click on a 3rd button.

      1. What I would like you to do next is to add a third button instance to the stage beside the other two that you have put there.
      2. You should next select the button and give it the instance name of three.
      3. Then, in your actions panel, below the 2nd function, you will need to type a third function:
        1. function jumpIt(evt:MouseEvent):void{
          1. gotoAndPlay(25);
        2. }
      4. Then, below the 2nd eventListener, you will have to type a 3rd one. It should look just like the other two, but should have the instance name of the third button and it should activate the third function.
      5. Once you do that, save and test your movie.
      6. You should try to clear up any errors you have before you move on. If, however, you just cannot find them, go ahead and do the remaining parts of this homework and try to come back later and find your errors.
      7. Put a 4th button on the stage beside the other two.
      8. Give it an instance name as you have done for the other three.
      9. For this new button, we are going to have it cause the user to advance 10 frames in the animation each time the user presses on it. So, create a 4th function below the third one. It should be named skipIT.
      10. The actions inside this function should simply read:gotoAndStop(currentFrame + 10);
      11. Save and test your movie. Clear up any errors you have
      12. Open a new file.
      13. Create a simple 200 frame animation.
      14. Now, create a basic button rectangular button symbol.
      15. Next, from your library, take 4 instances of your button symbol and arrange them horizontally along the bottom the stage.
      16. Give them the instance names of pt1_btn, pt2_btn, pt3_btn, and pt4_btn.
      17. Create an actions layer, and type a stop(); action in frame one.
      18. Now, using what you understand about the actionscript we have already typed in the previous file, try to make the 1st new button go to frame 2 and start playing. Then, make the 2nd new button go to frame 51 and start playing, the 3rd go to frame 101 and start playing, and the 4th go to frame 151 and start playing.
      19. HINTS: you will need 4 functions, 4 listeners, and inside those 4 new functions, you will need gotoAndPlay(); actions.
      20. Oh, and remember, COPY & PASTE is your friend. Just make certain you don't copy and paste mistakes, because then you multiply your mistakes.

No comments:

Post a Comment