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.
This week, you will have to complete what we began in class, and then read further for additional assignments.
- Syllabus
- LINK class syllabus
- Classwork
- LINK This weeks class-files: read the text file included here for an explanation of the ActionScript
- Homework
- exercise A:
- What I would like you to do next, if you hadn't done so in class, is, first to create the external flash files for the 3rd, 4th, and 5th buttons. All you need to do is type some text, put a picture, or draw something in those files. Nothing more than that.
- Next, make certain that you export the .swf file (ctrl-enter) for each of those new pages.
- Also, make sure that all the files, both the .fla files AND the .swf files are all in the same folder.
- Now, you'll have to go back to the index and give the other 3 buttons Instance Names.
- Then, go to the actions panel, and type the new code to load those pages when you click on the proper buttons.
- You will need 3 more functions, and inside those 3 new functions, you will need the same actions that the other two functions have.
- You will also need 3 more URLRequest objects, 3 more loader objects, and 3 more listeners.
- For each of these new lines of code, make certain that you do NOT name the functions with the same names, and that you NOT name the request and loader objects with the same name.
- HINTS:
- name the functions with names such as loadOne, loadTwo, loadThree, loadFour, and loadFive
- name the requests with names such as myReq_01, myReq_02, myReq_03, myReq_04, and myReq_05.
- name the loaders with names such as myLoad_01, myLoad_02, myLoad_03, myLoad_04, and myLoad_05.
- exercise B:
-
What you see now that you have completed the previous exercise is a bunch of code. You have 5 of everything, and that is VERY inefficient. It could be done in a much better way with less code.
What I would like you to do, is to type somewhere in a blank page, in Microsoft Word or even in TextEdit on a Mac or Notepad on a PC, what you think could be done to make it more simple. You DON'T have to know how to do this, just what you think should be done. This could be one thing, or it could be several things. I just want to see how you're thinking about the code.
-
- extra credit:
- Make the code you typed for exercise 1 more simple by reducing the amount of code that is typed and still have it function properly.
In this week's class, you completed a very basic website in Flash, making an external file load when you clicked on your button, and then making another one load when you click on a second button.
No comments:
Post a Comment