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

Tuesday, July 13, 2010

Summer 2010 week 10:
7/12/10: Mon. 9:00 - 12:00

Hi Everybody,

This week's class was the tenth one of the term. There are 4 more classes until it's all over. Please make the most of the time that you have remaining. Sometime, during this week before our next class, I'll be emailing you detailed evaluations of your midterm projects. Also, I'll be putting up here the requirements for the final project due in on the last day of class.

Have a good week. Carter-

    WEEK 10
  1. Syllabus
    • LINK    class syllabus
  2. Classwork
    • LINK    This is this week's class file
  3. Homework
    • exercise 1:
    • Complete the file that we were working on in class if you have not already. If you are not certain, download the file above with the instructions and read through ALL of them to make certain you have done it all.


    • exercise 2:
      1. Once you get all of your code functioning above, you're going to make some modifications.
      2. Instead of the way I instructed you to type the text into the buttons in class, you're going to use what is known as an array. First, delete the text and the quotes that you typed in class. Leave it blank following the equal sign (=) for the moment until I tell you what to type there.
      3. Next, type the following at the very top of your code to create the array object:
        1. var txtArray:Array = new Array();
      4. Next, below that, we need to put data into the array. We call this process populating the array. An array is similar to a variable in that it contains data; however, it is much more powerful in that, unlike a variable, it DOES NOT hold only one element of data. Instead, it may hold many, many data elements
        1. txtArray[0] = "MENU";
        2. txtArray[1] = "one";
        3. txtArray[2] = "two";
        4. txtArray[3] = "three";
        5. txtArray[4] = "four";
      5. Now, we have to assign the individual dynamic text boxes that are inside our movieclips the text that is inside the array elements:
        1. btn_01.btn_txt.text = txtArray[0];
        2. btn_01.btn_txt.text = txtArray[1];
        3. btn_01.btn_txt.text = txtArray[2];
        4. btn_01.btn_txt.text = txtArray[3];
        5. btn_01.btn_txt.text = txtArray[4];
    • exercise 3:
      1. Attempt to get the 4 options to disappear again ONLYwhenever you do one of these 2 things:
        • click on one of the buttons; or
        • mouse outside of the 4 options





No comments:

Post a Comment