<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7391363757662049368</id><updated>2024-09-07T19:13:46.736-07:00</updated><category term="T"/><title type='text'>Web-based Interactivity</title><subtitle type='html'>DMA205: &lt;small&gt; basic introduction to user interactivity using Flash CS4 and ActionScript 3.0&lt;br&gt;email: cajohnson@tcicollege.edu || carterdjohnson@aim.com&lt;/small&gt;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>36</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-7042499620743653476</id><published>2010-12-12T19:44:00.000-08:00</published><updated>2010-12-12T20:00:44.916-08:00</updated><title type='text'>Fall 2010 week 13:—12/06/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everyone,&lt;/p&gt;
&lt;p&gt;Okay Everyone, here we go, the last final week, the final push until, well, the final is due. What you will find here is a painstaking list of all the code and explanations that you will need for your final project.&lt;/p&gt;
&lt;p&gt;You should work on these new things in class on Monday, week 13.&lt;/p&gt;
&lt;p&gt;You will find additional pieces of code that we have not covered in class, a few &lt;em&gt;new things&lt;/em&gt; that you will have to add to your project. These are the &lt;strong&gt;if/else statement&lt;/strong&gt;, a &lt;strong&gt;switch statement&lt;/strong&gt;, and a &lt;em&gt;toggle button that turns music on and off&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;That last thing is considered your &lt;strong&gt;&lt;em&gt;final exam&lt;/em&gt;&lt;/strong&gt;, so you should definitely do your own work. Everyone&#39;s should look different. Doing this well, will definitely separate the good projects from the truly excellent projects.&lt;/p&gt;
&lt;br/&gt;
&lt;p&gt;Projects are due &lt;span style=&quot;color:#ff0000; font-size:16pt;&quot;&gt;&lt;strong&gt;no later than 10:00AM, Monday, 20 December 2010&lt;/strong&gt;&lt;/span&gt;.
&lt;p&gt;Carter-&lt;/p&gt;

&lt;br/&gt;
&lt;br/&gt;




&lt;ul type=&quot;square&quot; style=&quot;margin-left:-25px;&quot;&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 13&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
    &lt;ul style=&quot;list-style:none;&quot; style=&quot;margin-left:-10px;&quot;&gt;
      &lt;lh&gt;&lt;span style=&quot;font-variant:small-caps; font-weight:bold; font-size:12pt; text-decoration:underline;&quot;&gt;Final Project:&lt;/span&gt;&lt;/lh&gt;
        &lt;ol type=&quot;I&quot; style=&quot;margin-left:-15px;&quot;&gt;
          &lt;li&gt;&lt;em&gt;PART I&lt;/em&gt;&lt;/li&gt;
            &lt;ol type=&quot;A&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;color:#5D7631; font-weight:bold;&quot;&gt;Declarations:&lt;/span&gt; &amp;nbsp;&amp;nbsp; You should always start out your code at the top with your &lt;em&gt;declarations&lt;/em&gt;. What this means is that you are announcing to AS3 that you are going to be using some variables or other data storage devices, and that you are going to use certain objects in your script down below. For our script, you will need to start out with two &lt;em&gt;Arrays&lt;/em&gt;, and then a number of &lt;em&gt;ColorTransform&lt;/em&gt; objects. If we need any others later, we will return to the top of the script and add them.&lt;/li&gt;
              &lt;br/&gt;
                &lt;ol type=&quot;1&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;font-weight:bold; font-variant:small-caps;&quot;&gt;Array Objects&lt;/span&gt;&lt;/li&gt;
                    &lt;ol type=&quot;a&quot;&gt;
                      &lt;li&gt;Text Array&lt;/li&gt;
                        &lt;ol type=&quot;i&quot;&gt;
                          &lt;li&gt;First, an array is a particular kind of &lt;em&gt;object&lt;/em&gt; in Flash and ActionScript, and all objects begin as &lt;em&gt;variables&lt;/em&gt;. These variables, however, are then modified so that they take on additional properties that ordinary variables do not possess.&lt;/li&gt;
                          &lt;li&gt;Second, remember that an array is an object, much like a variable, which holds data. However, an array is able to hold many, many data items, unlike variables which may only hold onto one data element.&lt;/li&gt;
                          &lt;li&gt;The first array that we need is the array that we will use to add text to the buttons. These elements must simply state whatever label you want to appear in your buttons.&lt;/li&gt;
                          &lt;li&gt;Each data item held in an array is indicated by a number. these numbers are known as &lt;em&gt;index numbers&lt;/em&gt;, and they always begin counting with the number &lt;em&gt;zero (0)&lt;/em&gt;.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var txtArray:Array = new Array();&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;txtArray[0] = &quot;bio&quot;;&lt;/li&gt;
                                  &lt;li&gt;txtArray[1] = &quot;art&quot;;&lt;/li&gt;
                                  &lt;li&gt;txtArray[2] = &quot;galleries&quot;;&lt;/li&gt;
                                  &lt;li&gt;txtArray[3] = &quot;gallery 1&quot;;&lt;/li&gt;
                                  &lt;li&gt;txtArray[4] = &quot;gallery 2&quot;;&lt;/li&gt;
                                  &lt;li&gt;txtArray[5] = &quot;movement&quot;;&lt;/li&gt;
                                  &lt;li&gt;txtArray[6] = &quot;resources&quot;;&lt;/li&gt;
                                &lt;/ol&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Another, shorter way of giving an array data, which is what we just did above (we put strings, pieces of text with quotation marks around them) and otherwise known as &lt;em&gt;populating&lt;/em&gt; an array is here:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var txtArray:Array = new Array(&quot;bio, &quot;art&quot;, &quot;galleries&quot;, &quot;gallery 1&quot;, &quot;gallery 2&quot;, &quot;movement&quot;, &quot;resources&quot;);&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Yet another, even shorter and more efficient way of populating an array is what is known as &lt;em&gt;literal notation&lt;/em&gt;:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var txtArray:Array = [&quot;bio, &quot;art&quot;, &quot;galleries&quot;, &quot;gallery 1&quot;, &quot;gallery 2&quot;, &quot;movement&quot;, &quot;resources&quot;];&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Any of these is acceptable when declaring and populating an array. They all do exactly the same thing. It is simply a matter of preference.&lt;/li&gt;
                          &lt;li&gt;Now, assuming that you&#39;ve already created your buttons, you need to apply the text to them. Recall, the way that you should have created your buttons are as &lt;em&gt;MovieClip instances&lt;/em&gt;, and that this button movieclip must contain &lt;em&gt;2 additional movieclips&lt;/em&gt; within it, a &lt;em&gt;stroke_mc&lt;/em&gt; movieclip for the stroke and a &lt;em&gt;fill_mc&lt;/em&gt; for the fill. It should also contain a &lt;em&gt;dynamic text box&lt;/em&gt;.&lt;/li&gt;
                          &lt;li&gt;Each of these three items that are inside of your &lt;em&gt;button movieclip&lt;/em&gt; should have &lt;em&gt;instance names&lt;/em&gt;. I have givem them the instance names of &lt;em&gt;stroke&lt;/em&gt;, &lt;em&gt;fill&lt;/em&gt;, and &lt;em&gt;btn_txt&lt;/em&gt;.&lt;/li&gt;
                          &lt;li&gt;You might also want to take note that for the &lt;em&gt;instance names&lt;/em&gt; for the &lt;em&gt;button movieclips&lt;/em&gt;, I have started with &lt;em&gt;btn_00&lt;/em&gt;. I have done this to match the counting of the array which also begins at &lt;em&gt;0&lt;/em&gt;.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;btn_00.btn_txt.text = txtArray[0];&lt;/li&gt;
                              &lt;li&gt;btn_01.btn_txt.text = txtArray[1];&lt;/li&gt;
                              &lt;li&gt;btn_02.btn_txt.text = txtArray[2];&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Furthermore, you must remember that the buttons of the &lt;em&gt;drop-down menu&lt;/em&gt; are &lt;em&gt;INSIDE&lt;/em&gt; another movieclip which, in class, I named &lt;em&gt;options&lt;/em&gt;:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;btn_00.btn_txt.text = txtArray[0];&lt;/li&gt;
                              &lt;li&gt;btn_01.btn_txt.text = txtArray[1];&lt;/li&gt;
                              &lt;li&gt;btn_02.btn_txt.text = txtArray[2];&lt;/li&gt;
                              &lt;li&gt;options.btn_03.btn_txt.text = txtArray[3];&lt;/li&gt;
                              &lt;li&gt;options.btn_04.btn_txt.text = txtArray[4];&lt;/li&gt;
                              &lt;li&gt;btn_05.btn_txt.text = txtArray[5];&lt;/li&gt;
                              &lt;li&gt;btn_06.btn_txt.text = txtArray[6];&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                        &lt;/ol&gt;
                      &lt;br/&gt;
                      &lt;li&gt;URL Array&lt;/li&gt;
                        &lt;ol type=&quot;i&quot;&gt;
                          &lt;li&gt;The second array should be typed below the first and is going to be used for the &lt;em&gt;URLs&lt;/em&gt; for when we need to &lt;em&gt;request&lt;/em&gt; the &lt;em&gt;content&lt;/em&gt; files, also known as the external &lt;em&gt;.swf files&lt;/em&gt;. Whichever mode of creating and populating an array that you used above, you could use here as well. Consistency in a script is always best and helps to avoid confusion later on. However, since each item in our array is also a &lt;em&gt;URLRequest object&lt;/em&gt;, the best way to type it is as follows:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var urlArray:Array = new Array();&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;urlArray[0] = new URLRequest(&quot;bio.swf&quot;);&lt;/li&gt;
                                  &lt;li&gt;urlArray[1] = new URLRequest(&quot;art.swf&quot;);&lt;/li&gt;
                                  &lt;li&gt;urlArray[2] = ...etc...&lt;/li&gt;
                                &lt;/ol&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;If you want to put your &lt;em&gt;content pages&lt;/em&gt; in a separate &lt;em&gt;sub-folder&lt;/em&gt; named &lt;em&gt;content&lt;/em&gt;, for example, you would type your array slightly differently as below:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var urlArray:Array = new Array();&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;urlArray[0] = new URLRequest(&quot;content/bio.swf&quot;);&lt;/li&gt;
                                  &lt;li&gt;urlArray[1] = new URLRequest(&quot;content/art.swf&quot;);&lt;/li&gt;
                                  &lt;li&gt;urlArray[2] = ...etc...&lt;/li&gt;
                                &lt;/ol&gt;
                            &lt;/ol&gt;
                        &lt;/ol&gt;
                    &lt;/ol&gt;
                  &lt;br/&gt;
                  &lt;br/&gt;
                  &lt;br/&gt;
                  &lt;li&gt;&lt;span style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;ColorTransform Objects&lt;/span&gt;&lt;/li&gt;
                    &lt;ol type=&quot;a&quot;&gt;
                      &lt;li&gt;New Colors&lt;/li&gt;
                        &lt;ol type=&quot;i&quot;&gt;
                          &lt;li&gt;ColorTransform objects are really just what their name suggests they might be: they are objects which have the ability to change the color of something. In this case, we want to change the color of a movieclip from its current color to a new color. For that, we need to create a ColorTransform object and then apply it to the item that we wish to transform.&lt;/li&gt;
                          &lt;li&gt;The first color object I have down below will be attached to my stroke so that I can modify the color of my stroke to a new color. Thus, in front of the &lt;em&gt;c&lt;/em&gt;, I have put the letter &lt;em&gt;s&lt;/em&gt;, referring to &lt;em&gt;stroke&lt;/em&gt;.&lt;/li&gt;
                          &lt;li&gt;Also, notice down below that the way we create this object is virtually identical to the way that we created our arrays:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var sc_new:ColorTransform = new ColorTransform();&lt;/li&gt;
                              &lt;li&gt;sc_new.color = 0x990000;&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Next, is the new color for the fill movieclip, for which I follow exactly the same procedure, except instead of the &lt;em&gt;s&lt;/em&gt; in front of the &lt;em&gt;c&lt;/em&gt;, I have placed an &lt;em&gt;f&lt;/em&gt; to refer to &lt;em&gt;fill&lt;/em&gt;:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var fc_new:ColorTransform = new ColorTransform();&lt;/li&gt;
                              &lt;li&gt;fc_new.color = 0xffaaaa;&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Many of you have also created a ColorTransform object for your text:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var tc_new:ColorTransform = new ColorTransform();&lt;/li&gt;
                              &lt;li&gt;tc_new.color = 0x660000;&lt;/li&gt;
                            &lt;/ol&gt;
                        &lt;/ol&gt;
                      &lt;br/&gt;
                      &lt;li&gt;Old Colors&lt;/li&gt;
                        &lt;ol type=&quot;i&quot;&gt;
                          &lt;li&gt;The next set of colors are, for lack of better terminology, are the old colors. These are the original colors that our buttons began with and which they should return to once the user stops interacting with them. If you have three new colors, you should also have 3 old colors:&lt;/li&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var sc_old:ColorTransform = new ColorTransform();&lt;/li&gt;
                              &lt;li&gt;sc_old.color = 0x000000;&lt;/li&gt;
                              &lt;br/&gt;
                              &lt;li&gt;var fc_old:ColorTransform = new ColorTransform();&lt;/li&gt;
                              &lt;li&gt;fc_old.color = 0xffffff;&lt;/li&gt;
                              &lt;br/&gt;
                              &lt;li&gt;var tc_old:ColorTransform = new ColorTransform();&lt;/li&gt;
                              &lt;li&gt;tc_old.color = 0x000000;&lt;/li&gt;
                            &lt;/ol&gt;
                        &lt;/ol&gt;
                    &lt;/ol&gt;
                &lt;/ol&gt;
              &lt;br/&gt;
              &lt;br/&gt;
              &lt;br/&gt;
              &lt;br/&gt;
              &lt;li&gt;&lt;span style=&quot;color:#5D7631; font-weight:bold;&quot;&gt;Functions:&lt;/span&gt; &amp;nbsp;&amp;nbsp; After our declarations above, we will start with our functions. I want to start from the simplest and then progress to the more advanced. At the same time, I would like to start with the general functions, the ones that affect many objects and move to the more particular functions, the ones that affect fewer objects.&lt;/li&gt;
              &lt;br/&gt;
                &lt;ol type=&quot;1&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Color Modification Function&lt;/span&gt;&lt;/li&gt;
                    &lt;ol type=&quot;a&quot;&gt;
                      &lt;li&gt;New Stroke Color&lt;/li&gt;
                        &lt;ol type=&quot;i&quot; style=&quot;margin-left:-25px;&quot;&gt;
                          &lt;li&gt;The first function we will try is the function that will change the colors of the buttons. To start this out, however, instead of trying to change all three colors for the stroke, the fill, and the text all at once, it&#39;s always better to do one thing at at time. Then, once you get that one thing to function, you can add additional features. Let&#39;s start with getting the stroke color for &lt;em&gt;ONE&lt;/em&gt; of the button movieclips to change.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function overIt(evt:MouseEvent):void{&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;btn_00.stroke.transform.colorTransform = sc_new;&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;That&#39;s very simple, but it won&#39;t work at all until we add a listener to call on this function when we &lt;em&gt;MOUSE_OVER&lt;/em&gt; the button.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;btn_00.addEventListener(MouseEvent.MOUSE_OVER, overIt);&lt;/li&gt;
                            &lt;/ol&gt;
                        &lt;/ol&gt;
                      &lt;li&gt;Multiple Button Color Change&lt;/li&gt;
                        &lt;ol type=&quot;i&quot;&gt;
                          &lt;li&gt;Now, when you mouse over the first button, the stroke should change colors. There is a problem with this, however: you should notice that inside the function that I used a &lt;em&gt;particular&lt;/em&gt; instance name, &lt;em&gt;btn_00&lt;/em&gt;. Therefore, this will only work for that one button. If you try mousing over any of the other buttons, it doesn&#39;t work at all on them.&lt;/li&gt;
                          &lt;li&gt;Using this logic, then, we&#39;d have to write a separate function for each button just to change the color of each button. That is too much typing to do something simple.&lt;/li&gt;
                          &lt;li&gt;This means, to be more efficient, we have to think of something that allows us to change the color of whatever button that the user happens to be mousing over &lt;em&gt;at any given time&lt;/em&gt;. How can we pinpoint a particular button, the button the user is mousing over at any given moment, without actually calling it by name? Because if we call it by name, that means we&#39;ll have to go through each one and call each one by name one at a time. This is not efficient at all.&lt;/li&gt;
                          &lt;li&gt;The answer is in the little variable in the &lt;em&gt;function declaration&lt;/em&gt;, &lt;em&gt;evt:MouseEvent&lt;/em&gt;. There, the term evt (an abbreviation of the word event), is actually a variable. As you should know, a variable is a data container. In this case, this variable contains a particular kind of data. The word after it &lt;em&gt;MouseEvent&lt;/em&gt; tells you what kind of data is contained within that variable, information about a event that occurs with the mouse. Whenever the user mouses over the button, information about the button and the event is stored in that variable.&lt;/li&gt;
                          &lt;li&gt;This means, that that variable, evt, contains information about whatever button that the user happens to be mousing over at any given time, and we can access that information.&lt;/li&gt;
                          &lt;li&gt;One of the properties of a MouseEvent is &lt;em&gt;currentTarget&lt;/em&gt;. The word target is whatever happens to be the target of the user&#39;s attention with the mouse. If the user is mousing over a button, that button is the currentTarget.&lt;/li&gt;
                          &lt;li&gt;Let&#39;s try something: let us put a &lt;em&gt;trace&lt;/em&gt; in our function and for the moment disable our statement by commenting it out. We are going to trace the &lt;em&gt;name of the current target&lt;/em&gt;.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function overIt(evt:MouseEvent):void{&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//btn_00.stroke.transform.colorTransform = sc_new;&lt;/li&gt;
                                  &lt;li&gt;trace(evt.currentTarget.name);&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Now, let&#39;s add &lt;em&gt;listeners&lt;/em&gt; for the remaining buttons:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;btn_00.addEventListener(MouseEvent.MOUSE_OVER, overIt);&lt;/li&gt;
                              &lt;li&gt;btn_01.addEventListener(MouseEvent.MOUSE_OVER, overIt);&lt;/li&gt;
                              &lt;li&gt;btn_02.addEventListener(MouseEvent.MOUSE_OVER, overIt);&lt;/li&gt;
                              &lt;li&gt;options.btn_03.addEventListener(MouseEvent.MOUSE_OVER, overIt);&lt;/li&gt;
                              &lt;li&gt;options.btn_04.addEventListener(MouseEvent.MOUSE_OVER, overIt);&lt;/li&gt;
                              &lt;li&gt;btn_05.addEventListener(MouseEvent.MOUSE_OVER, overIt);&lt;/li&gt;
                              &lt;li&gt;btn_06.addEventListener(MouseEvent.MOUSE_OVER, overIt);&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;You should see now, that when you test your movie you the name of the button you are mousing over, of &lt;em&gt;WHICHEVER&lt;/em&gt; button you are mousing over, pops up in the output window.&lt;/li&gt;
                          &lt;li&gt;So, let&#39;s apply that to the color change:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function overIt(evt:MouseEvent):void{&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;&lt;span style=&quot;color:#ff0000; text-decoration:line-through;&quot;&gt;btn_00&lt;/span&gt;evt.currentTarget.stroke.transform.colorTransform = sc_new;&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                        &lt;/ol&gt;
                      &lt;li&gt;New Fill Color&lt;/li&gt;
                        &lt;ol type=&quot;i&quot; style=&quot;margin-left:-25px;&quot;&gt;
                          &lt;li&gt;We can apply the same technique to making the color of the fill and text change:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function overIt(evt:MouseEvent):void{&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                &lt;li&gt;evt.currentTarget.stroke.transform.colorTransform = sc_new;&lt;/li&gt;
                                &lt;li&gt;evt.currentTarget.fill.transform.colorTransform = fc_new;&lt;/li&gt;
                                &lt;li&gt;evt.currentTarget.btn_txt.transform.colorTransform = tc_new;&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                        &lt;/ol&gt;
                      &lt;br/&gt;
                      &lt;li&gt;Original Stroke &amp; Fill Colors&lt;/li&gt;
                        &lt;ol type=&quot;i&quot;&gt;
                          &lt;li&gt;Now that we have changed the color, let&#39;s make it change back. We&#39;ll begin this by creating a new function:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function outIt(evt:MouseEvent):void{&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                &lt;li&gt;evt.currentTarget.stroke.transform.colorTransform = sc_old;&lt;/li&gt;
                                &lt;li&gt;evt.currentTarget.fill.transform.colorTransform = fc_old;&lt;/li&gt;
                                &lt;li&gt;evt.currentTarget.btn_txt.transform.colorTransform = tc_old;&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;And then the listeners:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;btn_00.addEventListener(MouseEvent.MOUSE_OUT, outIt);&lt;/li&gt;
                              &lt;li&gt;btn_01.addEventListener(MouseEvent.MOUSE_OUT, outIt);&lt;/li&gt;
                              &lt;li&gt;btn_02.addEventListener(MouseEvent.MOUSE_OUT, outIt);&lt;/li&gt;
                              &lt;li&gt;options.btn_03.addEventListener(MouseEvent.MOUSE_OUT, outIt);&lt;/li&gt;
                              &lt;li&gt;options.btn_04.addEventListener(MouseEvent.MOUSE_OUT, outIt);&lt;/li&gt;
                              &lt;li&gt;btn_05.addEventListener(MouseEvent.MOUSE_OUT, outIt);&lt;/li&gt;
                              &lt;li&gt;btn_06.addEventListener(MouseEvent.MOUSE_OVER, outIt);&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Great, now it changes back and forth easily from one set of colors back to the original set of colors. Great, now onto the next job, &lt;em&gt;opening and closing&lt;/em&gt; the &lt;em&gt;drop-down menu&lt;/em&gt;.&lt;/li&gt;
                        &lt;/ol&gt;
                    &lt;/ol&gt;
                  &lt;br/&gt;
                  &lt;br/&gt;
                  &lt;br/&gt;
                  &lt;li&gt;&lt;span style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Drop-Down Function&lt;/span&gt;&lt;/li&gt;
                    &lt;ol type=&quot;a&quot; style=&quot;margin-left:-25px;&quot;&gt;
                      &lt;li&gt;Close Menu&lt;/li&gt;
                        &lt;ol type=&quot;i&quot; style=&quot;margin-left:-25px;&quot;&gt;
                          &lt;li&gt;The first thing we need to do is close the menu so that when we first open our site it is &lt;em&gt;NOT&lt;/em&gt; opened with all of the buttons underneath it showing. We don&#39;t want those buttons showing until we mouse over the top button of the menu, the only one that should be showing. All the others, remember, are inside another movieclip that we named &lt;em&gt;options&lt;/em&gt;.&lt;/li&gt;
                          &lt;li&gt;That&#39;s very easy, at the very top of your script in the actions window, type the following line of code:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;this.options.visible = false;&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;And that&#39;s it for that. When you test the movie, you&#39;ll see those buttons are gone&lt;/li&gt;
                        &lt;/ol&gt;
                      &lt;li&gt;Open Menu&lt;/li&gt;
                        &lt;ol type=&quot;i&quot;&gt;
                          &lt;li&gt;But now, we want to make them appear when we mouse over the top button. That&#39;s easy enough. All we would have to do is create a function so that when you &lt;em&gt;MOUSE_OVER&lt;/em&gt; the top button of the menu, the other buttons below it become visible.&lt;/li&gt;
                          &lt;li&gt;If you recall, however, we already have a &lt;em&gt;listener&lt;/em&gt; for the &lt;em&gt;MOUSE_OVER&lt;/em&gt; event, and it calls our &lt;em&gt;first function&lt;/em&gt;, &lt;em&gt;overIt&lt;/em&gt;. That means we have to put this part within that function.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function overIt(evt:MouseEvent):void{&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                &lt;li&gt;evt.currentTarget.stroke.transform.colorTransform = sc_new;&lt;/li&gt;
                                &lt;li&gt;evt.currentTarget.fill.transform.colorTransform = fc_new;&lt;/li&gt;
                                &lt;li&gt;evt.currentTarget.btn_txt.transform.colorTransform = tc_new;&lt;/li&gt;
                                &lt;li style=&quot;font-weight:bold;&quot;&gt;this.options.visible = true;&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Aha! If you tested that, you found that it didn&#39;t quite work. It opens when you mouse over ANY of the buttons, not only the one with the menu. That&#39;s a problem. We ONLY want it to open when we mouse over the &lt;em&gt;top button with the menu&lt;/em&gt; and &lt;em&gt;ONLY&lt;/em&gt; that button, none of the others.&lt;/li&gt;
                          &lt;li&gt;To do that we&#39;ll need to learn about a new type of statement, a &lt;em&gt;conditional&lt;/em&gt; statement. We also call these &lt;em&gt;if/else&lt;/em&gt; statements.&lt;/li&gt;
                          &lt;li&gt;In an &lt;em&gt;If/else&lt;/em&gt; statement, you can pinpoint an action that you want to have happen only &lt;em&gt;IF&lt;/em&gt; a certain condition is met.&lt;/li&gt;
                          &lt;li&gt;Our condition is &lt;em&gt;if&lt;/em&gt; the user &lt;em&gt;mouses over&lt;/em&gt; the &lt;em&gt;top button&lt;/em&gt; of the menu. In my script, my top button has an &lt;em&gt;instance name&lt;/em&gt; of &lt;em&gt;btn_02&lt;/em&gt;, so that will be my condition:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function overIt(evt:MouseEvent):void{&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;evt.currentTarget.stroke.transform.colorTransform = sc_new;&lt;/li&gt;
                                  &lt;li&gt;evt.currentTarget.fill.transform.colorTransform = fc_new;&lt;/li&gt;
                                  &lt;li&gt;evt.currentTarget.btn_txt.transform.colorTransform = tc_new;&lt;/li&gt;
                                  &lt;li style=&quot;font-weight:bold;&quot;&gt;if (evt.currentTarget.name == &quot;btn_02&quot;) {&lt;/li&gt;
                                    &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                      &lt;li&gt;this.options.visible = true;&lt;/li&gt;
                                    &lt;/ol&gt;
                                  &lt;li style=&quot;font-weight:bold;&quot;&gt;}&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;To make certain that the menu stays open so long as we are mousing over &lt;em&gt;ANY&lt;/em&gt; of the buttons of the menu, not just the top one, but also the others below it, we must add some conditions to our statement.&lt;/li&gt;
                          &lt;li&gt;Not only do we want it to remain open &lt;em&gt;IF&lt;/em&gt; we mouse over the top button, but we want it to remain open if we mouse over the &lt;em&gt;top&lt;/em&gt; button &lt;em&gt;OR&lt;/em&gt; the &lt;em&gt;2nd&lt;/em&gt; button, &lt;em&gt;OR&lt;/em&gt; the &lt;em&gt;3rd&lt;/em&gt; button, &lt;em&gt;OR&lt;/em&gt; the &lt;em&gt;4th&lt;/em&gt; button. The way we includ the &lt;em&gt;OR OPTIONS&lt;/em&gt; is with the &lt;em&gt;||&lt;/em&gt; characters, which are located at the &lt;em&gt;SHIFT - \&lt;/em&gt;.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function overIt(evt:MouseEvent):void{&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;evt.currentTarget.stroke.transform.colorTransform = sc_new;&lt;/li&gt;
                                  &lt;li&gt;evt.currentTarget.fill.transform.colorTransform = fc_new;&lt;/li&gt;
                                  &lt;li&gt;evt.currentTarget.btn_txt.transform.colorTransform = tc_new;&lt;/li&gt;
                                  &lt;li&gt;if (evt.currentTarget.name == &quot;btn_02&quot; &lt;span style=&quot;font-weight:bold;&quot;&gt;|| evt.currentTarget.name == &quot;btn_03&quot; || evt.currentTarget.name == &quot;btn_04&quot;&lt;/span&gt;) {&lt;/li&gt;
                                    &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                      &lt;li&gt;this.options.visible = true;&lt;/li&gt;
                                    &lt;/ol&gt;
                                  &lt;li style=&quot;font-weight:bold;&quot;&gt;}&lt;/li&gt;
                                &lt;/ol&gt; 
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Now, the menu will remain open until you mouse over another button. This isn&#39;t a perfect solution, but it is fine for now. &lt;em&gt;I will give extra credit to anyone who comes up with a solution in which the menu closes when you mouse off any of the buttons&lt;/em&gt;, without having to wait until you mouse over another button before it closes. Don&#39;t spend a lot of time and don&#39;t write a lot of code to solve this. It isn&#39;t that important. Other things in this project are much more important.&lt;/li&gt;
                        &lt;/ol&gt;
                    &lt;/ol&gt;
                  &lt;br/&gt;
                  &lt;br/&gt;
                  &lt;br/&gt;
                  &lt;br/&gt;
                  &lt;li&gt;&lt;span style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Loading External Files&lt;/span&gt;&lt;/li&gt;
                    &lt;ol type=&quot;a&quot; style=&quot;margin-left:-25px;&quot;&gt;
                      &lt;li&gt;Loader Object&lt;/li&gt;
                        &lt;ol type=&quot;i&quot;&gt;
                          &lt;li&gt;We left off at the beginning one of our &lt;em&gt;objects&lt;/em&gt;, and that is the &lt;em&gt;Loader&lt;/em&gt; object. This is essential for placing external files within another main file.&lt;/li&gt;
                          &lt;li&gt;We have our &lt;em&gt;URLRequest&lt;/em&gt; objects that request a particular file. Now we need to place the requested file within an object that will actually do the job of loading it, of bringing it from outside the current (index) .swf file and preparing it for placement onto the current file. If you recall my gun analogy from class, the URLRequest is the external file, so it is like a bullet. The loader, then, is the gun that will deliver our bullet.&lt;/li&gt;
                          &lt;li&gt;The next two jobs then are to create the loader and then place the bullets inside our gun. Our gun, however, is a special sort of gun that can only hold and fire one bullet at a time. That means it is like most shotguns: we have to reload it with a new shell each time we shoot with it.&lt;/li&gt;
                          &lt;li&gt;First let&#39;s create the loader at the top, in the &lt;em&gt;declarations&lt;/em&gt; section of our code. We can place it beneath the array with the URLRequests:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var urlArray:Array = new Array();&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;urlArray[0] = new URLRequest(&quot;bio.swf&quot;);&lt;/li&gt;
                                  &lt;li&gt;urlArray[1] = new URLRequest(&quot;art.swf&quot;);&lt;/li&gt;
                                  &lt;li&gt;urlArray[2] = ...etc...&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;br/&gt;
                              &lt;li style=&quot;font-weight:bold;&quot;&gt;var swfLoader:Loader = new Loader();&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Now, at the bottom, in the &lt;em&gt;functions&lt;/em&gt; section of our code, let&#39;s start with a new function for loading the external &lt;em&gt;.swf files&lt;/em&gt;.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function loadIt(evt:MouseEvent):void {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                &lt;br/&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Now, at the bottom, in the &lt;em&gt;functions&lt;/em&gt; section of our code, let&#39;s start with a new function for loading the external &lt;em&gt;.swf files&lt;/em&gt;.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function loadIt(evt:MouseEvent):void {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li style=&quot;font-weight:bold;&quot;&gt;swfLoader.load(urlArray[0]);&lt;/li&gt;
                                  &lt;li style=&quot;font-weight:bold;&quot;&gt;box.addChild(swfLoader);&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Create a listener grouped at the &lt;em&gt;bottom&lt;/em&gt; with all of the other listeners. Since we are trying to load the &lt;em&gt;first item&lt;/em&gt; of our array, this means we want the listener to relate to the &lt;em&gt;first button&lt;/em&gt;.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;btn_00.addEventListener(MouseEvent.CLICK, loadIt);&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;This is very nice and all, but we have a similar problem that we did above when we wanted to change the colors of the different buttons. If you look in our function, you will see that it will only add the &lt;em&gt;first item of the array&lt;/em&gt;, and none of the others. If we followed this logic, as with the color function, we&#39;d have to write &lt;em&gt;one function for every button&lt;/em&gt;. That is terribly inefficient, and there is a better way.&lt;/li&gt;
                          &lt;li&gt;Once again, we need to rely on that little &lt;em&gt;variable&lt;/em&gt; named &lt;em&gt;evt&lt;/em&gt; within the parentheses in the &lt;em&gt;function declaration&lt;/em&gt;.&lt;/li&gt;
                          &lt;li&gt;Like we did with the colors, we&#39;ll use it together with the &lt;em&gt;currentTarget&lt;/em&gt; property:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function loadIt(evt:MouseEvent):void {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//swfLoader.load(urlArray[0]);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//box.addChild(swfLoader);&lt;/li&gt;
                                  &lt;li&gt;trace(evt.currentTarget.name);&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Now, when you click on the first button, in the &lt;em&gt;output window&lt;/em&gt;, you&#39;ll see the name of the button. So, let&#39;s add the listeners for all of the other buttons:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;btn_00.addEventListener(MouseEvent.CLICK, loadIt);&lt;/li&gt;
                              &lt;li&gt;btn_01.addEventListener(MouseEvent.CLICK, loadIt);&lt;/li&gt;
                              &lt;li style=&quot;color:#ff0000; text-decoration:line-through;&quot;&gt;btn_02.addEventListener(MouseEvent.CLICK, loadIt);&lt;/li&gt;
                              &lt;li&gt;options.btn_03.addEventListener(MouseEvent.CLICK, loadIt);&lt;/li&gt;
                              &lt;li&gt;options.btn_04.addEventListener(MouseEvent.CLICK, loadIt);&lt;/li&gt;
                              &lt;li&gt;btn_05.addEventListener(MouseEvent.CLICK, loadIt);&lt;/li&gt;
                              &lt;li&gt;btn_06.addEventListener(MouseEvent.CLICK, loadIt);&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Notice that I have a line through the listener for btn_02 (the third button). That is because it is the one with the drop-down menu. It doesn&#39;t load external files, so we don&#39;t need to include it in this function.&lt;/li&gt;
                          &lt;li&gt;Now, when you click on the individual buttons, you see their names pop up in the output window.&lt;/li&gt;
                          &lt;li&gt;Next, let&#39;s load a file, but to do so we&#39;ll have to learn a new type of statement. As above with the &lt;em&gt;drop-down menu&lt;/em&gt;, we have &lt;em&gt;conditions&lt;/em&gt;. In this case, we don&#39;t have only &lt;em&gt;ONE&lt;/em&gt; condition &lt;em&gt;OR&lt;/em&gt; another. No, in this case we have &lt;em&gt;MULTIPLE CONDITIONS&lt;/em&gt;.&lt;/li&gt;
                          &lt;li&gt;We could still use the &lt;em&gt;If/else&lt;/em&gt; statement, but when you have many conditions, it is better to use the &lt;em&gt;switch&lt;/em&gt; statement.&lt;/li&gt;
                          &lt;li&gt;In our situation, we have several buttons and each of those buttons loads a different file. &lt;em&gt;IF&lt;/em&gt; we mouse over one button, &lt;em&gt;THEN&lt;/em&gt; we must load a certain file. Otherwise, &lt;em&gt;IF&lt;/em&gt; we mouse over another button, &lt;em&gt;THEN&lt;/em&gt; we must load another file; and so on for several buttons.&lt;/li&gt;
                          &lt;li&gt;The variable, &lt;em&gt;evt&lt;/em&gt; allows us to &lt;em&gt;capture&lt;/em&gt; which button the user happens to be mousing over or clicking on at any given moment. Once again, this is very useful to us. This time, like before, we are going to &lt;em&gt;capture&lt;/em&gt; the &lt;em&gt;instance name&lt;/em&gt; of the button; but in addition, we are going to store it in a new variable within the function:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function loadIt(evt:MouseEvent):void {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li style=&quot;font-weight:bold;&quot;&gt;var btnName:String = evt.currentTarget.name;&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//swfLoader.load(urlArray[0]);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//box.addChild(swfLoader);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//trace(evt.currentTarget.name);&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;With this variable, you will see that it contains the necessary information. If we put the variable &lt;em&gt;within the trace&lt;/em&gt; you will see that it traces the same info as before here: &lt;em&gt;trace(evt.currentTarget.name);&lt;/em&gt;&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function loadIt(evt:MouseEvent):void {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;var btnName:String = evt.currentTarget.name;&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//swfLoader.load(urlArray[0]);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//box.addChild(swfLoader);&lt;/li&gt;
                                  &lt;li style=&quot;font-weight:bold;&quot;&gt;trace(btnName);&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;As you can see if you try that out, nothing has changed with the addition of that variable.&lt;/li&gt;
                          &lt;li&gt;Now, we can use that variable, &lt;em&gt;btnName&lt;/em&gt; to determine &lt;em&gt;which button&lt;/em&gt; the user happens to be mousing over. And then, once we determine which &lt;em&gt;case&lt;/em&gt; it is, we&#39;ll tell actionscript to load one file or another.&lt;/li&gt;
                          &lt;li&gt;In the &lt;em&gt;case&lt;/em&gt; of &lt;em&gt;btn_00&lt;/em&gt;, then Flash should load the &lt;em&gt;first file&lt;/em&gt;; in the &lt;em&gt;case&lt;/em&gt; of &lt;em&gt;btn_01&lt;/em&gt;, then Flash should load the &lt;em&gt;second file&lt;/em&gt;; and so on for all the files.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function loadIt(evt:MouseEvent):void {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;var btnName:String = evt.currentTarget.name;&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//swfLoader.load(urlArray[0]);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//box_mc.addChild(swfLoader);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//trace(btnName);&lt;/li&gt;
                                  &lt;li style=&quot;font-weight:bold&quot;&gt;switch (btnName) {&lt;/li&gt;
                                    &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                      &lt;li style=&quot;font-weight:bold&quot;&gt;case &quot;btn_00&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;do something;&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;stop;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li style=&quot;font-weight:bold&quot;&gt;case &quot;btn_01&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;do something else;&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;stop;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li style=&quot;font-weight:bold&quot;&gt;case &quot;btn_03&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;do this other thing;&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;stop;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li style=&quot;font-weight:bold&quot;&gt;case &quot;btn_04&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;do yet another thing;&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;stop;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li style=&quot;font-weight:bold&quot;&gt;case &quot;btn_05&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;blah blah blah;&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;stop;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li style=&quot;font-weight:bold&quot;&gt;case &quot;btn_06&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;yadda yadda yadda;&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;stop;&lt;/li&gt;
                                        &lt;/ol&gt;
                                    &lt;/ol&gt;
                                  &lt;li style=&quot;font-weight:bold&quot;&gt;}&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;So, what we actually want to tell the &lt;em&gt;switch&lt;/em&gt; statement to do is to load different files depending on which button is clicked:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function loadIt(evt:MouseEvent):void {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;var btnName:String = evt.currentTarget.name;&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//swfLoader.load(urlArray[0]);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//box.addChild(swfLoader);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//trace(btnName);&lt;/li&gt;
                                  &lt;li&gt;switch (btnName) {&lt;/li&gt;
                                    &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                      &lt;li&gt;case &quot;btn_00&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;swfLoader.load(urlArray[0]);&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;box.addChild(swfLoader);&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;break;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li&gt;case &quot;btn_01&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;swfLoader.load(urlArray[1]);&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;box.addChild(swfLoader);&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;break;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li&gt;case &quot;btn_03&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;swfLoader.load(urlArray[2]);&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;box.addChild(swfLoader);&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;break;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li&gt;...etc...&lt;/li&gt;
                                    &lt;/ol&gt;
                                  &lt;li style=&quot;font-weight:bold&quot;&gt;}&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;In addition, we want to make certain that the &lt;em&gt;drop-down&lt;/em&gt; menu closes when you click on any of the buttons that are within the menu. In my case, in the drop-down menu that I&#39;ve created here, that would be the &lt;em&gt;4th&lt;/em&gt;, and &lt;em&gt;5th&lt;/em&gt; (&lt;em&gt;btn_03 &amp;amp; btn_04&lt;/em&gt;).&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function loadIt(evt:MouseEvent):void {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;var btnName:String = evt.currentTarget.name;&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//swfLoader.load(urlArray[0]);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//box.addChild(swfLoader);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//trace(btnName);&lt;/li&gt;
                                  &lt;li&gt;switch (btnName) {&lt;/li&gt;
                                    &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                      &lt;li&gt;case &quot;btn_00&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li&gt;swfLoader.load(urlArray[0]);&lt;/li&gt;
                                          &lt;li&gt;box.addChild(swfLoader);&lt;/li&gt;
                                          &lt;li&gt;break;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li&gt;case &quot;btn_01&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li&gt;swfLoader.load(urlArray[1]);&lt;/li&gt;
                                          &lt;li&gt;box.addChild(swfLoader);&lt;/li&gt;
                                          &lt;li&gt;break;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li&gt;case &quot;btn_03&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li&gt;swfLoader.load(urlArray[2]);&lt;/li&gt;
                                          &lt;li&gt;box.addChild(swfLoader);&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold;&quot;&gt;this.options.visible = false;&lt;/li&gt;
                                          &lt;li&gt;break;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li&gt;case &quot;btn_04&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li&gt;swfLoader.load(urlArray[3]);&lt;/li&gt;
                                          &lt;li&gt;box.addChild(swfLoader);&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold;&quot;&gt;this.options.visible = false;&lt;/li&gt;
                                          &lt;li&gt;break;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li&gt;...etc...&lt;/li&gt;
                                    &lt;/ol&gt;
                                  &lt;li&gt;}&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;




                        &lt;/ol&gt;
                    &lt;/ol&gt;
                &lt;/ol&gt;
            &lt;/ol&gt;
          &lt;li&gt;&lt;em&gt;PART II&lt;/em&gt;&lt;/li&gt;
            &lt;ol type=&quot;A&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;color:#5D7631; font-weight:bold;&quot;&gt;Music:&lt;/span&gt; &amp;nbsp;&amp;nbsp; For the last part of this project, you will need to do two things: create what&#39;s known as a &lt;em&gt;toggle button&lt;/em&gt;, which is a button that has an &lt;em&gt;ON&lt;/em&gt; position and an &lt;em&gt;OFF&lt;/em&gt; position. When you click on it once it turns ON, and then when you click on it again, it turns OFF.&lt;/li&gt;
              &lt;ol type=&quot;1&quot;&gt;
                &lt;li&gt;&lt;span style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Toggle Button&lt;/span&gt;:&lt;/li&gt;
                  &lt;ol type=&quot;a&quot;&gt;
                    &lt;li&gt;As with the other buttons, this button will be a &lt;em&gt;nested&lt;/em&gt; set of movieclips. This simply means that you will have movieclips within movieclips.&lt;/li&gt;
                    &lt;li&gt;For example, perhaps you will have a shape that looks like a &lt;em&gt;speaker&lt;/em&gt; for your &lt;em&gt;ON&lt;/em&gt; position, and then a &lt;em&gt;red slash&lt;/em&gt; that appears over the speaker for your &lt;em&gt;OFF&lt;/em&gt; position.&lt;/li&gt;
                    &lt;li&gt;So, your first job is to draw a side-view of the way a speaker looks: ( http://www.tuaw.com/2007/09/12/access-your-macs-super-quiet-mode/ ). That is an example.&lt;/li&gt;
                    &lt;li&gt;Once you do that, convert it into a movieclip symbol.&lt;/li&gt;
                    &lt;li&gt;Next, draw a &lt;em&gt;diagonal red slash&lt;/em&gt; over the top of it and conver it into a movieclip as well.&lt;/li&gt;
                    &lt;li&gt;Both of these movieclips should have &lt;em&gt;instance names&lt;/em&gt;.&lt;/li&gt;
                    &lt;li&gt;The speaker I will call &lt;em&gt;sndON&lt;/em&gt;, and the slash I will call simply &lt;em&gt;sndOFF&lt;/em&gt;.&lt;/li&gt;
                    &lt;li&gt;Now place the red slash on top of the speaker if you haven&#39;t already.&lt;/li&gt;
                    &lt;li&gt;Select them both and convert them into another symbol named &lt;em&gt;sndBtn&lt;/em&gt;.&lt;/li&gt;
                    &lt;li&gt;Enter into edit mode for this new symbol and then select both objects.&lt;/li&gt;
                    &lt;li&gt;Right-click on your selection and select &lt;em&gt;distribute to layers&lt;/em&gt;.&lt;/li&gt;
                    &lt;li&gt;Delete the blank layer and exit edit mode.&lt;/li&gt;
                    &lt;li&gt;Give your symbol the instance name of &lt;em&gt;snd&lt;/em&gt;.&lt;/li&gt;
                  &lt;/ol&gt;
                &lt;br/&gt;
                &lt;li&gt;&lt;span style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Toggle Button Actions&lt;/span&gt;:&lt;/li&gt;
                  &lt;ol type=&quot;a&quot;&gt;
                    &lt;li&gt;This button is very similar to the drop-down menu: first we have to hide the &lt;em&gt;red slash&lt;/em&gt;. Therefore, at the very top of your code, on the 2nd line, type the following line of code:&lt;/li&gt;
                    &lt;br/&gt;
                      &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                        &lt;li&gt;this.snd.sndOFF.visible = false;&lt;/li&gt;
                      &lt;/ol&gt;
                    &lt;br/&gt;
                    &lt;li&gt;Since the &lt;em&gt;sndOFF&lt;/em&gt; movieclip, the one of the red slash is going to be &lt;em&gt;IN&lt;/em&gt;visible, the visibility is FALSE, then all the user will see is the speaker. This means that the movie will start off with the sound playing. The default is to have music. The user will have to turn it off if he/she wishes.&lt;/li&gt;
                    &lt;li&gt;Now, we need to create a function that switches the visibility of the slash from &lt;em&gt;false&lt;/em&gt; to &lt;em&gt;true&lt;/em&gt;. This will signify that the sound has &lt;em&gt;stopped&lt;/em&gt; and no longer playing because the speaker will have a &lt;em&gt;VISIBLE&lt;/em&gt; red slash over the speaker.&lt;/li&gt;
                    &lt;br/&gt;
                      &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                        &lt;li&gt;function sndOnOff(evt:MouseEvent):void {&lt;/li&gt;
                          &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                            &lt;li&gt;this.snd.sndOFF.visible = true;&lt;/li&gt;
                          &lt;/ol&gt;
                        &lt;li&gt;}&lt;/li&gt;
                      &lt;/ol&gt;
                    &lt;br/&gt;
                    &lt;li&gt;Following this, you will need to add the listener for the &lt;em&gt;snd&lt;/em&gt; movieclip:&lt;/li&gt;
                    &lt;br/&gt;
                      &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                        &lt;li&gt;snd.addEventListener(MouseEvent.CLICK, sndOnOff);&lt;/li&gt;
                      &lt;/ol&gt;
                    &lt;br/&gt;
                    &lt;li&gt;The problem with this function is that it only turns the sound &lt;em&gt;ON&lt;/em&gt;. It would be better if the function turned it both on &lt;em&gt;AND&lt;/em&gt; off. To do that we will need another &lt;em&gt;if/else&lt;/em&gt; statement. This statement will simply determine if the &lt;em&gt;red slash&lt;/em&gt; is visible or invisible. If it is visible, then the sound is &lt;em&gt;OFF&lt;/em&gt;; and if it is invisible, then the sound is &lt;em&gt;ON&lt;/em&gt;.&lt;/li&gt;
                    &lt;br/&gt;
                      &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                        &lt;li&gt;function sndOnOff(evt:MouseEvent):void {&lt;/li&gt;
                          &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                            &lt;li style=&quot;font-weight:bold;&quot;&gt;if(snd.sndOFF.visible == false) {&lt;/li&gt;
                              &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                &lt;li&gt;snd.sndOFF.visible = true;&lt;/li&gt;
                              &lt;/ol&gt;
                            &lt;li style=&quot;font-weight:bold;&quot;&gt;} else {&lt;/li&gt;
                              &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                &lt;li style=&quot;font-weight:bold;&quot;&gt;snd.sndOFF.visible = false;&lt;/li&gt;
                              &lt;/ol&gt;
                            &lt;li style=&quot;font-weight:bold;&quot;&gt;}&lt;/li&gt;
                          &lt;/ol&gt;
                        &lt;li&gt;}&lt;/li&gt;
                      &lt;/ol&gt;
                    &lt;/ol&gt;
                  &lt;br/&gt;
                  &lt;li&gt;&lt;span style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Music File&lt;/span&gt;:&lt;/li&gt;
                    &lt;ol type=&quot;a&quot;&gt;
                      &lt;li&gt;Now, in your main folder, create another folder named &lt;em&gt;music&lt;/em&gt;.&lt;/li&gt;
                      &lt;li&gt;Within that folder, you need to place a music file. This music file &lt;em&gt;MUST&lt;/em&gt; be an &lt;em&gt;.mp3&lt;/em&gt; file.&lt;/li&gt;
                    &lt;/ol&gt;
                  &lt;li&gt;&lt;span style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Music Actions&lt;/span&gt;:&lt;/li&gt;
                    &lt;ol type=&quot;a&quot;&gt;
                      &lt;li&gt;In order to have this button place music into your site, you will first need to &lt;em&gt;declare&lt;/em&gt; three objects. Therefore, scroll &lt;em&gt;UP&lt;/em&gt; to the &lt;em&gt;declarations&lt;/em&gt; section of your code at the top.&lt;/li&gt;
                      &lt;li&gt;The first object is the &lt;em&gt;sound object&lt;/em&gt; and it contains the music sound itself.&lt;/li&gt;
                      &lt;li&gt;The second object is the &lt;em&gt;sound channel object&lt;/em&gt; and it controls the behavior of the sound, whether it is playing or not.&lt;/li&gt;
                      &lt;li&gt;The third object is the &lt;em&gt;URLRequest object&lt;/em&gt;, which, like any of our other request objects, requests an &lt;em&gt;external&lt;/em&gt; file and prepares it for loading into the main .swf movie file.&lt;/li&gt;
                      &lt;br/&gt;
                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                          &lt;li&gt;var sndMus:Sound = new Sound();&lt;/li&gt;
                          &lt;li&gt;var sndChan:SoundChannel = new SoundChannel();&lt;/li&gt;
                          &lt;li&gt;var sndReq:URLRequest = new URLRequest(&quot;song.mp3&quot;);&lt;/li&gt;
                        &lt;/ol&gt;
                      &lt;br/&gt;
                      &lt;li&gt;Next, you have to load the requested file:&lt;/li&gt;
                      &lt;br/&gt;
                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                          &lt;li&gt;var sndMus:Sound = new Sound();&lt;/li&gt;
                          &lt;li&gt;var sndChan:SoundChannel = new SoundChannel();&lt;/li&gt;
                          &lt;li&gt;var sndReq:URLRequest = new URLRequest(&quot;song.mp3&quot;);&lt;/li&gt;
                          &lt;li style=&quot;font-weight:bold;&quot;&gt;sndMus.load(sndReq);&lt;/li&gt;
                        &lt;/ol&gt;
                      &lt;br/&gt;
                      &lt;li&gt;Now, you have to create a function to play the loaded file; but that doesn&#39;t make any sense: we already have a function that operates the button. We can just add some actions to that function:&lt;/li&gt;
                      &lt;br/&gt;
                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                          &lt;li&gt;function sndOnOff(evt:MouseEvent):void {&lt;/li&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;if(snd.sndOFF.visible == false) {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;snd.sndOFF.visible = false;&lt;/li&gt;
                                  &lt;li style=&quot;font-weight:bold;&quot;&gt;sndChan = sndMus.play();&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;} else {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;snd.sndOFF.visible = true;&lt;/li&gt;
                                  &lt;li style=&quot;font-weight:bold;&quot;&gt;sndChan.stop();&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;li&gt;}&lt;/li&gt;
                        &lt;/ol&gt;
                    &lt;/ol&gt;
                &lt;/ol&gt;
            &lt;/ol&gt;
        &lt;/ol&gt;
   &lt;/ul&gt;
&lt;/ul&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/7042499620743653476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/12/hi-everyone-okay-everyone-here-we-go.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/7042499620743653476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/7042499620743653476'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/12/hi-everyone-okay-everyone-here-we-go.html' title='&lt;small&gt;Fall 2010 &lt;/small&gt;week 13:&lt;br/&gt;&lt;small&gt;—12/06/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-1965945341940123102</id><published>2010-11-29T09:21:00.000-08:00</published><updated>2010-11-29T10:03:09.989-08:00</updated><title type='text'>Fall 2010 week 12:—11/29/10:  Mon. 9:00 - 12:00f</title><content type='html'>&lt;p&gt;Hi Everybody,&lt;/p&gt;
&lt;p&gt;Seems that many of you who have been stumped are finally starting to get how all this work. There are only two weeks remaining, so make the most of the little time you have.&lt;/p&gt;

&lt;p&gt;ALL BUTTONS SHOULD BE MOVIECLIPS. YOU WILL HAVE TO COMPLETE RE-DO THEM.&lt;p&gt;
&lt;p&gt;YOU WILL NEED AT LEAST ONE DROP-DOWN MENU, PROBABLY FOR YOUR GALLERY BUTTON (GALLERY 1, GALLERY 2) IN YOUR INDEX FILE. EXTRA POINTS TO ANY ADDITIONAL DROP-DOWNS YOU USE, BUT DON&#39;T USE A DROP-DOWN IF IT IS NOT NECESSARY.&lt;/p&gt;
&lt;p&gt;Carter-&lt;/p&gt;

&lt;ol&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 12&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Homework&lt;/em&gt;&lt;/li&gt;
    &lt;ol type=&quot;a&quot;&gt;
      &lt;li&gt;Continue working on your final projects, re-making your buttons from scratch as MovieClips, and including a drop-down menu, probably in place of your 2 Gallery buttons.&lt;/li&gt;
    &lt;/ol&gt;
  &lt;li&gt;&lt;em&gt;Classwork&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; This week&#39;s class files&lt;/li&gt;
        &lt;ol&gt;
          &lt;lh&gt;Below is the work that we began in class this week. Please review it if you feel you require extra practice, and come to class with any questions you may still have. &lt;strong&gt;&lt;em&gt;This will be required for you final project&lt;/em&gt;&lt;/strong&gt;.&lt;/lh&gt;
&lt;br/&gt;
&lt;br/&gt;
          &lt;li&gt;Continue on with the drop-down menu that you started last week.&lt;/li&gt;
          &lt;li&gt;Type following object type known as an array at the very top of your actions:&lt;/li&gt;
            &lt;ul style=&quot;list-style:none; font-family:Courier;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;var txtArray:Array = new Array();&lt;/li&gt;
              &lt;li&gt;txtArray[0] = &quot;menu&quot;;&lt;/li&gt;
              &lt;li&gt;txtArray[1] = &quot;one&quot;;;&lt;/li&gt;
              &lt;li&gt;txtArray[2] = &quot;two&quot;;&lt;/li&gt;
              &lt;li&gt;txtArray[3] = &quot;three&quot;;&lt;/li&gt;
              &lt;li&gt;txtArray[4] = &quot;four&quot;;&lt;/li&gt;
              &lt;li&gt;txtArray[5] = &quot;five&quot;;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;Now, change the following code:&lt;/li&gt;
            &lt;ol style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;btn_00.btn_txt.text = txtArray[0];&lt;/li&gt;
              &lt;li&gt;options.btn_01.btn_txt.text = txtArray[1];&lt;/li&gt;
              &lt;li&gt;options.btn_02.btn_txt.text = txtArray[2];&lt;/li&gt;
              &lt;li&gt;options.btn_03.btn_txt.text = txtArray[3];&lt;/li&gt;
              &lt;li&gt;options.btn_04.btn_txt.text = txtArray[4];&lt;/li&gt;
              &lt;li&gt;options.btn_05.btn_txt.text = txtArray[5];&lt;/li&gt;
            &lt;/ol&gt;
          &lt;li&gt;Now, let&#39;s create another array object right below the first:&lt;/li&gt;
            &lt;ol style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;var swfArray:Array = new Array();&lt;/li&gt;
              &lt;li&gt;swfArray[0] = &quot;one.swf&quot;;&lt;/li&gt;
              &lt;li&gt;swfArray[1] = &quot;two.swf&quot;;&lt;/li&gt;
              &lt;li&gt;swfArray[2] = &quot;three.swf&quot;;&lt;/li&gt;
              &lt;li&gt;swfArray[3] = &quot;four.swf&quot;;&lt;/li&gt;
              &lt;li&gt;swfArray[4] = &quot;five.swf&quot;;&lt;/li&gt;
            &lt;/ol&gt;
          &lt;li&gt;Next, change the next bit of code:&lt;/li&gt;
            &lt;ol style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;var req_01:URLRequest = new URLRequest(swfArray[0]);&lt;/li&gt;
              &lt;li&gt;var req_02:URLRequest = new URLRequest(swfArray[1]);&lt;/li&gt;
              &lt;li&gt;var req_03:URLRequest = new URLRequest(swfArray[2]);&lt;/li&gt;
              &lt;li&gt;var req_04:URLRequest = new URLRequest(swfArray[3]);&lt;/li&gt;
              &lt;li&gt;var req_05:URLRequest = new URLRequest(swfArray[4]);&lt;/li&gt;
            &lt;/ol&gt;
          &lt;li&gt;Now look at your functions. At this point you should have 17 functions in total. That results in a lot of code, much of which is redundant. We can simplify it.&lt;/li&gt;
          &lt;li&gt;Here is what you do: Except for the functions for the top button, you should delete the Mouse Over and Mouse Out functions for EACH button. I’d named mine newColor_01 through newColor_05 and deleted all of those.&lt;/li&gt;
          &lt;li&gt;Here is what you do: Except for the functions for the top button, you should delete the Mouse Over and Mouse Out functions for EACH button. I’d named mine newColor_01 through newColor_05 and deleted all of those.&lt;/li&gt;
          &lt;li&gt;You should also delete the listeners for those functions.&lt;/li&gt;
          &lt;li&gt;When you&#39;re finished deleting, you should be left with 2 functions for the first button and 1 function for each of the options. That will be a total of 7 functions and 7 listeners. Unfortunately, now only the top button changes colors. We have to create a new function now that makes ALL the buttons change colors.&lt;/li&gt;
          &lt;li&gt;Type the following code:&lt;/li&gt;
            &lt;ol style=&quot;list-style:none;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;function newColor_opt(evt:MouseEvent):void&lt;/li&gt;
              &lt;li&gt;{&lt;/li&gt;
                &lt;ol style=&quot;list-style:none;&quot; class=&quot;tag&quot;&gt;
                  &lt;li&gt;trace(evt);&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;}&lt;/li&gt;
            &lt;/ol&gt;
          &lt;li&gt;Now, create five listeners for the MOUSE_OVER event which calls this new function, newColor_opt at the end of it. We want this so that when we mouse over each of the buttons they call the SAME function, this new one.&lt;/li&gt;
          &lt;li&gt;Test the movie.&lt;/li&gt;
          &lt;li&gt;What you&#39;ll get when typing that is information about the MouseEvent. If you look in your code, in between the parentheses of the function, you will see that EVT is there. It is a variable that contains information about the MouseEvent. That is why when we do a trace(), we see the information that is held in that evt variable.&lt;li&gt;
          &lt;li&gt;Now change the trace to the following:&lt;/li&gt;
             &lt;ul style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;; font-weight:bold;&quot; class=&quot;tag&quot;&gt;
                &lt;li&gt;function newColor_opt(evt:MouseEvent):void&lt;/li&gt;
                &lt;li&gt;{&lt;/li&gt;
                  &lt;ul style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;; font-weight:bold;&quot; class=&quot;tag&quot;&gt;
                    &lt;li&gt;trace(evt.currentTarget);&lt;/li&gt;
                  &lt;/ul&gt;
                &lt;li&gt;}&lt;/li&gt;
              &lt;/ul&gt;
            &lt;li&gt;What you&#39;ll see now, is information that tells you what you have moused over is a MovieClip. Mouse over each of the options and you should get the same thing.&lt;/li&gt;
            &lt;li&gt;Current Target refers to the thing that you as the user are currently touching or mousing over with your mouse at that moment.&lt;/li&gt;
            &lt;li&gt;We can even output  the NAME of the button that you mouseOver:&lt;/li&gt;
              &lt;ul style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;; font-weight:bold;&quot; class=&quot;tag&quot;&gt;
                &lt;li&gt;function newColor_opt(evt:MouseEvent):void&lt;/li&gt;
                &lt;li&gt;{&lt;/li&gt;
                  &lt;ul style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;; font-weight:bold;&quot; class=&quot;tag&quot;&gt;
                    &lt;li&gt;trace(evt.currentTarget.name);&lt;/li&gt;
                  &lt;/ul&gt;
                &lt;li&gt;}&lt;/li&gt;
              &lt;/ul&gt;
            &lt;li&gt;But we don&#39;t need the name. What we do need is to change the stroke and fill and text colors:&lt;/li&gt;
              &lt;ul style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;; font-weight:bold;&quot; class=&quot;tag&quot;&gt;
                &lt;li&gt;function newColor_opt(evt:MouseEvent):void&lt;/li&gt;
                &lt;li&gt;{&lt;/li&gt;
                  &lt;ul style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;; font-weight:bold;&quot; class=&quot;tag&quot;&gt;
                    &lt;li&gt;evt.currentTarget.stroke.transform.colorTransform = s_newC;&lt;/li&gt;
                    &lt;li&gt;evt.currentTarget.fill.transform.colorTransform = f_newC;&lt;/li&gt;
                    &lt;li&gt;evt.currentTarget.btn_txt.transform.colorTransform = s_newC;&lt;/li&gt;
                  &lt;/ul&gt;
                &lt;li&gt;}&lt;/li&gt;
              &lt;/ul&gt;
            &lt;li&gt;Now, we need a new function and set of listeners so that when you mouse off EACH button, they change back to their original colors:&lt;/li&gt;
              &lt;ul style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;; font-weight:bold;&quot; class=&quot;tag&quot;&gt;
                &lt;li&gt;function oldColor_opt(evt:MouseEvent):void&lt;/li&gt;
                &lt;li&gt;{&lt;/li&gt;
                  &lt;ul style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;; font-weight:bold;&quot; class=&quot;tag&quot;&gt;
                    &lt;li&gt;evt.currentTarget.stroke.transform.colorTransform = s_oldC;&lt;/li&gt;
                    &lt;li&gt;evt.currentTarget.fill.transform.colorTransform = f_oldC;&lt;/li&gt;
                    &lt;li&gt;evt.currentTarget.btn_txt.transform.colorTransform = s_oldC;&lt;/li&gt;
                  &lt;/ul&gt;
                &lt;li&gt;}&lt;/li&gt;
              &lt;/ul&gt;
            &lt;li&gt;Don&#39;t forget to type the listeners, one for each button for the MOUSE_OUT for this function.&lt;/li&gt;
        &lt;/ol&gt;
    &lt;/ul&gt;
&lt;/ol&gt;
  
&lt;br/&gt;
&lt;br/&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/1965945341940123102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/11/hi-everybody-seems-that-many-of-you-who.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/1965945341940123102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/1965945341940123102'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/11/hi-everybody-seems-that-many-of-you-who.html' title='&lt;small&gt;Fall 2010 &lt;/small&gt;week 12:&lt;br/&gt;&lt;small&gt;—11/29/10:  Mon. 9:00 - 12:00f'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-3128534436378538937</id><published>2010-11-23T07:26:00.000-08:00</published><updated>2010-11-29T10:03:23.093-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="T"/><title type='text'>Fall 2010 week 11:—11/22/10:  Mon. 9:00 - 12:00f</title><content type='html'>&lt;p&gt;Hi Everybody,&lt;/p&gt;
&lt;p&gt;Good Work, yesterday! Let&#39;s keep it up.&lt;/p&gt;

&lt;p&gt;Work hard this week. Make certain that you get the drop-down menu functioning as you will be required to have one in the final project.&lt;p&gt;
&lt;p&gt;The steps below outline what we have done in the last couple of weeks, including the additional steps that I included in class on Monday.&lt;/p&gt;
&lt;p&gt;The 2nd exercise are some additional steps you should take.&lt;/p&gt;
&lt;p&gt;Carter-&lt;/p&gt;

&lt;ol&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 9&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Homework&lt;/em&gt;&lt;/li&gt;
    &lt;ol type=&quot;a&quot;&gt;
      &lt;li&gt;For your final project, you will have to include a &lt;em&gt;&lt;strong&gt;drop-down menu&lt;/strong&gt;&lt;/em&gt;. My suggestion is that you use the gallery for this. Since you have two galleries already, make a drop-down menu to select one or the other.&lt;/li&gt;
      &lt;li&gt;You will also have to make &lt;em&gt;&lt;strong&gt;all buttons into movieclips&lt;/strong&gt;&lt;/em&gt;.&lt;/li&gt;
    &lt;/ol&gt;
  &lt;li&gt;&lt;em&gt;Classwork&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; This week&#39;s class files&lt;/li&gt;
        &lt;ol&gt;
          &lt;lh&gt;Below is the work that we began in class this week and last. Please review it if you feel you require extra practice, and come to class with any questions you may still have. &lt;strong&gt;&lt;em&gt;This will be required for you final project&lt;/em&gt;&lt;/strong&gt;.&lt;/lh&gt;
&lt;br/&gt;
&lt;br/&gt;
          &lt;li&gt;Create a new folder for today&#39;s work, and open a new Flash file. Save the first file as index.fla.&lt;/li&gt;
          &lt;li&gt;Create a single rectangular movieclip symbol with a 3pt stroke, and with the following dimensions:&lt;/li&gt;
            &lt;ul&gt;
              &lt;li&gt;width: 125px&lt;/li&gt;
              &lt;li&gt;height: 25px&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;Now, give it the instance name, btn_00 and move it to the upper-left corner.&lt;/li&gt;
          &lt;li&gt;Enter into edit mode for this new symbol (double-click on it). Look in the upper-left corner and make certain you see the name of your symbol there. This tells you that you are in edit mode for that symbol.&lt;/li&gt;
          &lt;li&gt;Select only the stroke and convert it into another movieclip named stroke_mc.&lt;/li&gt;
          &lt;li&gt;Give it the instance name of stroke.&lt;/li&gt;
          &lt;li&gt;Now, select only the fill and convert it into another movieclip named fill_mc.&lt;/li&gt;
          &lt;li&gt;Give it the instance name of fill.&lt;/li&gt;
          &lt;li&gt;Now, select everything, both the stroke and the fill movieclips on the stage.&lt;/li&gt;
          &lt;li&gt;Right-click on your selection and select Distribute to Layers.&lt;/li&gt;
          &lt;li&gt;Delete the empty layer at the top that results in doing this, and drag the fill layer to the bottom.&lt;/li&gt;
          &lt;li&gt;Create a new layer named text and make certain it is at the top of the stack.&lt;/li&gt;
          &lt;li&gt;Choose Classic text in the options and Dynamic.&lt;/li&gt;
          &lt;li&gt;With the Type tool (T) draw a text box that is almost (but not quite) the same width and height as the rectangle directly on top of this rectangle.&lt;/li&gt;
          &lt;li&gt;Make the font Arial, Bold, 12pt, and center it, but do NOT type anything in this box. This will be done with ActionScript.&lt;/li&gt;
          &lt;li&gt;Give the instance name btn_txt to this text box.&lt;/li&gt;
          &lt;li&gt;Exit edit mode.&lt;/li&gt;
          &lt;li&gt;Name the first layer btns, lock it, and add a 2nd layer named as for actions.&lt;/li&gt;
          &lt;li&gt;The first thing you should type is the code to put text into your text box. To do this you type the name of the button, followed by a dot and the name of the text box:&lt;/li&gt;
            &lt;ol style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;btn_00.btn_txt.text = &quot;menu&quot;;&lt;/li&gt;
            &lt;/ol&gt;
          &lt;li&gt;Underneath that, you will need to create the four color transform objects, two objects to transform the fill and the stroke to new colors, and two objects to transform them back to their original colors. If my rectangle were white with a dark gray stroke and I wanted to transform the colors to red with a black stroke, this is how they would be created:&lt;/li&gt;
            &lt;ol style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;var s_oldC:ColorTransform =  new ColorTransform();&lt;/li&gt;
              &lt;li&gt;s_oldC.color = 0x666666;&lt;/li&gt;
              &lt;br&gt;
              &lt;li&gt;var f_oldC:ColorTransform =  new ColorTransform();&lt;/li&gt;
              &lt;li&gt;f_oldC.color = 0xffffff;&lt;/li&gt;
              &lt;br&gt;
              &lt;br&gt;
              &lt;li&gt;var s_newC:ColorTransform =  new ColorTransform();&lt;/li&gt;
              &lt;li&gt;s_newC.color = 0x000000;&lt;/li&gt;
              &lt;br&gt;
              &lt;li&gt;var f_newC:ColorTransform =  new ColorTransform();&lt;/li&gt;
              &lt;li&gt;f_newC.color = 0xff0000;&lt;/li&gt;
            &lt;/ol&gt;
          &lt;li&gt;Now, I must create the function that will change the colors of the rectangle to new colors:&lt;/li&gt;
            &lt;ol style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;function newColor_00(evt:MouseEvent):void&lt;/li&gt;
              &lt;li&gt;{&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;;&quot; class=&quot;tag&quot;&gt;
                  &lt;li&gt;btn_00.stroke.transform.colorTransform = s_newC;&lt;/li&gt;
                  &lt;li&gt;btn_00.fill.transform.colorTransform = f_newC;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;}&lt;/li&gt;
            &lt;/ol&gt;
          &lt;li&gt;The listener that I want to go with this function will activate it with a Mouse Over event when the user mouses over the &lt;strong&gt;WHOLE BUTTON&lt;/strong&gt;:&lt;/li&gt;
            &lt;ol style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;btn_00.addEventListener(MouseEvent.MOUSE_OVER, newColor_00);&lt;/li&gt;
            &lt;/ol&gt;
          &lt;li&gt;Now I will type the function and listener that will be used to change the colors BACK to their original colors when the user MOUSES OFF of the button:&lt;/li&gt;
            &lt;ol style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;function newColor_00(evt:MouseEvent):void&lt;/li&gt;
              &lt;li&gt;{&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;;&quot; class=&quot;tag&quot;&gt;
                  &lt;li&gt;btn_00.stroke.transform.colorTransform = s_newC;&lt;/li&gt;
                  &lt;li&gt;btn_00.fill.transform.colorTransform = f_newC;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;}&lt;/li&gt;
              &lt;br/&gt;
              &lt;li style=&quot;font-weight:bold;&quot;&gt;function oldColor_00(evt:MouseEvent):void&lt;/li&gt;
              &lt;li style=&quot;font-weight:bold;&quot;&gt;{&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;; font-weight:bold;&quot; class=&quot;tag&quot;&gt;
                  &lt;li&gt;btn_00.stroke.transform.colorTransform = s_oldC;&lt;/li&gt;
                  &lt;li&gt;btn_00.fill.transform.colorTransform = f_oldC;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li style=&quot;font-weight:bold;&quot;&gt;}&lt;/li&gt;
              &lt;br/&gt;
              &lt;li&gt;btn_00.addEventListener(MouseEvent.MOUSE_OVER, newColor_00);&lt;/li&gt;
              &lt;li style=&quot;font-weight:bold;&quot;&gt;btn_00.addEventListener(MouseEvent.MOUSE_OUT, oldColor_00);&lt;/li&gt;
            &lt;/ol&gt;
          &lt;br/&gt;
          &lt;br/&gt;
          &lt;li&gt;Now that you have the first button functioning properly, let&#39;s do the remaining buttons: lock all layers, create a new layer named options, and drag 5 more instances of the button movieclip from your library onto the stage directly under the first one and line them up perfectly WITHOUT any space between them.&lt;/li&gt;
          &lt;li&gt;Give them the instance names of btn_01, btn_02, btn_03, btn_04, and btn_05.&lt;/li&gt;
          &lt;li&gt;It took 2 functions and 2 listeners to get the first movieclip to change colors. To do the other 5 buttons you will need &lt;em&gt;TWO FUNCTION &amp; TWO LISTENERS FOR EACH&lt;/em&gt;, one each for mouse over and one each for mouse out. The should be exactly the same as the first two, but they should have different names.&lt;/li&gt;
          &lt;br/&gt;
          &lt;br/&gt;
          &lt;li&gt;When you get all six of the buttons working properly so that they change colors back and forth when you mouse on and off each one, then select the 5 lower buttons.&lt;/li&gt;
          &lt;li&gt;Convert them into a new MovieClip named options_mc and give it the instance name of options.&lt;/li&gt;
          &lt;li&gt;When you do this, the ActionScript will no longer function because all the lower buttons have been moved to a new location. In order to make it work properly again, in front of the instance name of each button, you must type the instance name of the new movie clip followed by a dot &lt;strong&gt;WHEREVER YOU HAVE TYPED THE BUTTONS INSTANCE NAMES&lt;/strong&gt;:&lt;/li&gt;
            &lt;ol style=&quot;list-style:none;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;options.btn_01&lt;/li&gt;
            &lt;/ol&gt;
          &lt;li&gt;Once you get the colors working properly, you will need to put text inside these buttons as well. Since they are the SAME movieclip as the first button, all you have to do is TYPE CODE TO DO THIS, so go to your actions and type the following:&lt;/li&gt;
            &lt;ol style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;; font-weight:bold;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;btn_00.btn_txt.text = &quot;menu&quot;;&lt;/li&gt;
              &lt;li style=&quot;font-weight:bold;&quot;&gt;options.btn_01.btn_txt.text = &quot;one&quot;;&lt;/li&gt;
              &lt;li style=&quot;font-weight:bold;&quot;&gt;options.btn_02.btn_txt.text = &quot;two&quot;;&lt;/li&gt;
              &lt;li style=&quot;font-weight:bold;&quot;&gt;options.btn_03.btn_txt.text = &quot;three&quot;;&lt;/li&gt;
              &lt;li style=&quot;font-weight:bold;&quot;&gt;options.btn_04.btn_txt.text = &quot;four&quot;;&lt;/li&gt;
              &lt;li style=&quot;font-weight:bold;&quot;&gt;options.btn_05.btn_txt.text = &quot;five&quot;;&lt;/li&gt;
            &lt;/ol&gt;
          &lt;li&gt;That should place text in all of your buttons; but now we want to make the options disappear. Since this is going to be a drop-down menu, we want the user to only see the first button, and then when he/she mouses over it, the other buttons appear. To do this, underneath the code above, type the following:&lt;/li&gt;
            &lt;ol style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;; font-weight:bold;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;btn_00.btn_txt.text = &quot;menu&quot;;&lt;/li&gt;
              &lt;li&gt;options.btn_01.btn_txt.text = &quot;one&quot;;&lt;/li&gt;
              &lt;li&gt;options.btn_02.btn_txt.text = &quot;two&quot;;&lt;/li&gt;
              &lt;li&gt;options.btn_03.btn_txt.text = &quot;three&quot;;&lt;/li&gt;
              &lt;li&gt;options.btn_04.btn_txt.text = &quot;four&quot;;&lt;/li&gt;
              &lt;li&gt;options.btn_05.btn_txt.text = &quot;five&quot;;&lt;/li&gt;
              &lt;br/&gt;
              &lt;li style=&quot;font-weight:bold;&quot;&gt;options.visible = false;&lt;/li&gt;
            &lt;/ol&gt;
          &lt;li&gt;When testing this movie at this point, nothing will appear except the top button. When you mouse over it, its colors should still change, but the other buttons remain invisible. Therefore, what you will need to do is make the OPTIONS movieclip to appear when you mouse over the top button. This new line of code should be within the first function that you&#39;ve already written:&lt;li&gt;
            &lt;ol style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;; font-weight:bold;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;function newColor(evt:MouseEvent):void&lt;/li&gt;
              &lt;li&gt;{&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;; font-weight:bold;&quot; class=&quot;tag&quot;&gt;
                  &lt;li&gt;btn_00.stroke.transform.colorTransform = s_newC;&lt;/li&gt;
                  &lt;li&gt;btn_00.fill.transform.colorTransform = f_newC;&lt;/li&gt;
                  &lt;br/&gt;
                  &lt;li style=&quot;font-weight:bold;&quot;&gt;options.visible = true;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;}&lt;/li&gt;
              &lt;br/&gt;
            &lt;/ol&gt;
          &lt;br/&gt;
          &lt;br/&gt;
          &lt;li&gt;Make certain you save your document, and then open a new one.&lt;/li&gt;
          &lt;li&gt;Inside this document you should ONLY place a single image and a piece of text.&lt;/li&gt;
          &lt;li&gt;Save it with the name of one.fla in the same folder as the other and then generate the .swf file (cmd-enter).&lt;/li&gt;
          &lt;li&gt;Repeat that with 4 more files and name them two.fla, three.fla, four.fla, and five.fla.&lt;/li&gt;
          &lt;li&gt;Back in your index.fla file, lock all your layers and add a new layer named box.&lt;/li&gt;
          &lt;li&gt;Drag this layer under the as layer.&lt;/li&gt;
          &lt;li&gt;Draw a rectangle in this layer, convert it into a movieclip named box_mc and give it an instance name of box.&lt;/li&gt;
          &lt;li&gt;Draw a rectangle in this layer, convert it into a movieclip named box_mc and give it an instance name of box.&lt;/li&gt;
          &lt;li&gt;Place it directly to the right of your drop-down menu.&lt;/li&gt;
          &lt;li&gt;Enter into edit mode for this new rectangular movieclip.&lt;/li&gt;
          &lt;li&gt;Once inside it, delete the rectangle that you see there on the stage (but NOT from the library).&lt;/li&gt;
          &lt;li&gt;Exit edit mode. If you recall, we did this for the Midterm in the first half of the term. The box movieclip is still there, but it is now what is known as an EMPTY movieclip because it is blank.&lt;/li&gt;
          &lt;li&gt;If you haven&#39;t done so yet, give it the instance name of box.&lt;/li&gt;
          &lt;br/&gt;
          &lt;br/&gt;
          &lt;li&gt;The next step is to load those external .swf files into this box. For that, you will need to do two things:&lt;/li&gt;
            &lt;ol type=&quot;a&quot;&gt;
              &lt;li&gt;Create a new Loader object:&lt;/li&gt;
                &lt;ul style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;; font-weight:bold;&quot; class=&quot;tag&quot;&gt;
                  &lt;li&gt;var myLoader:Loader = new Loader();&lt;/li&gt;
                &lt;/ul&gt;
              &lt;li&gt;Create new URLRequest objects, one for EACH external file. Below is an example of one:&lt;/li&gt;
                &lt;ul style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;; font-weight:bold;&quot; class=&quot;tag&quot;&gt;
                  &lt;li&gt;var reqOne:URLRequest = new URLRequest(&quot;someFile.swf&quot;);
                &lt;/ul&gt;
              &lt;li&gt;Create a new a function for EACH external file to load it into the box movieclip on the stage:&lt;/li&gt;
                &lt;ul style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;; font-weight:bold;&quot; class=&quot;tag&quot;&gt;
                  &lt;li&gt;function loadOne(evt:MouseEvent):void&lt;/li&gt;
                  &lt;li&gt;{&lt;/li&gt;
                    &lt;ul style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;; font-weight:bold;&quot; class=&quot;tag&quot;&gt;
                      &lt;li&gt;myLoader.load(reqOne);&lt;/li&gt;
                      &lt;li&gt;this.box.addChild(myLoader);&lt;/li&gt;
                    &lt;/ul&gt;
                  &lt;li&gt;}&lt;/li&gt;
                &lt;/ul&gt;
              &lt;li&gt;Create a new event listener for EACH function that will load the file when the user CLICKS on the buttons in the drop-down menu&lt;/li&gt;
                &lt;ul style=&quot;list-style:none; font-family:Courier, &#39;Courier New&#39;; font-weight:bold;&quot; class=&quot;tag&quot;&gt;
                  &lt;li&gt;options.btn_01.addEventListener(MouseEvent.CLICK, loadOne);&lt;/li&gt;
                &lt;/ul&gt;
            &lt;/ol&gt;
        &lt;/ol&gt;
    &lt;/ul&gt;
&lt;/ol&gt;
&lt;br/&gt;
&lt;br/&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/3128534436378538937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/11/hi-everybody-good-work-yesterday-lets_23.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/3128534436378538937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/3128534436378538937'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/11/hi-everybody-good-work-yesterday-lets_23.html' title='&lt;small&gt;Fall 2010 &lt;/small&gt;week 11:&lt;br/&gt;&lt;small&gt;—11/22/10:  Mon. 9:00 - 12:00f'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-8520776669943236036</id><published>2010-11-09T06:52:00.000-08:00</published><updated>2010-11-29T10:03:38.372-08:00</updated><title type='text'>Fall 2010 week 9:—11/08/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everybody,&lt;/p&gt;
&lt;p&gt;Good Work, yesterday! Let&#39;s keep it up.&lt;/p&gt;

&lt;p&gt;Many of you are having trouble with this class and the coding, but that&#39;s all right. Learning how to script and code is NOT an easy thing; however, you have to &lt;em&gt;&lt;strong&gt;TRY&lt;/strong&gt;&lt;/em&gt;. Even if you know you&#39;re not going to be successful, you have to make a &lt;em&gt;&lt;strong&gt;SINCERE&lt;/strong&gt;&lt;/em&gt; effort. That means spending &lt;em&gt;&lt;strong&gt;MORE THAN A HALF HOUR&lt;/strong&gt;&lt;/em&gt; on the homework.&lt;/p&gt;
&lt;p&gt;And many of you are spending &lt;em&gt;&lt;strong&gt;FAR LESS&lt;/strong&gt;&lt;/em&gt; than that. That is exactly the &lt;em&gt;&lt;strong&gt;WRONG THING TO DO&lt;/strong&gt;&lt;/em&gt;, unless you like me so much you want to spend another semester in this class with me. I&#39;m flattered, but perhaps you want to move on with your lives and on to the next class. You can always come back and visit if you like me &lt;em&gt;&lt;strong&gt;THAT MUCH&lt;/strong&gt;&lt;/em&gt;.&lt;p&gt;
&lt;p&gt;Okay, well, there&#39;s homework this week, and extra credit. Have a nice week and work hard.&lt;/p&gt;
&lt;p&gt;Carter-&lt;/p&gt;

&lt;ol&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 9&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Classwork&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/week9/dma205_wk9_classFiles.zip&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; This week&#39;s class files&lt;/li&gt;
        &lt;ol&gt;
          &lt;lh&gt;&lt;strong&gt;Below is the work that we completed this week in class. Please review it if you feel you require extra practice, and come to class with any questions you may still have.&lt;/strong&gt;&lt;/lh&gt;
&lt;br/&gt;
&lt;br/&gt;
          &lt;li&gt;Create a new folder for today&#39;s work, and open a new Flash file.&lt;/li&gt;
          &lt;li&gt;Create a single rectangular movieclip symbol (without a stroke) with the following dimensions:&lt;/li&gt;
     &lt;ul&gt;
              &lt;li&gt;width: 100px&lt;/li&gt;
              &lt;li&gt;height: 25px&lt;/li&gt;
     &lt;/ul&gt;
          &lt;li&gt;Now, give it the instance name, one.&lt;/li&gt;
          &lt;li&gt;From your library, drag 4 more instances of this movieclip onto your stage.&lt;/li&gt;
          &lt;li&gt;Give them the instance names of two, three, four, and five.&lt;/li&gt;
          &lt;li&gt;Name the first layer rects and add a second named as.&lt;/li&gt;
          &lt;li&gt;In your new AS layer, type the following code:&lt;/li&gt;
            &lt;ul style=&quot;list-style:none; font-family:Courier;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;one.width = 250;&lt;/li&gt;
              &lt;li&gt;two.height = 185;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;Save and test. You should see that two of your rectangles changed according to the instructions given by the code.&lt;/li&gt;
          &lt;li&gt;Now, we&#39;ll change the third one with code:&lt;/li&gt;
            &lt;ul style=&quot;list-style:none; font-family:Courier;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;three.width = 300;&lt;/li&gt;
              &lt;li&gt;three.height = 50;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;Once again, save and test your movie.&lt;/li&gt;
          &lt;li&gt;In this case, we changed TWO properties, both the width AND the height for the same movieclip. Now, type the following code changes:&lt;/li&gt;
            &lt;ul style=&quot;list-style:none; font-family:Courier;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;one.width = 250;&lt;/li&gt;
              &lt;li&gt;two.height = 185;&lt;/li&gt;
&lt;br/&gt;
              &lt;li style=&quot;color:#999999;&quot;&gt;//the following two sections perform the same tasks&lt;/li&gt;
&lt;br/&gt;
              &lt;li style=&quot;color:#999999;&quot;&gt;/*  one&lt;/li&gt;
              &lt;li style=&quot;color:#999999;&quot;&gt;&amp;nbsp; &amp;nbsp; three.width = 300;&lt;/li&gt;
              &lt;li style=&quot;color:#999999;&quot;&gt;&amp;nbsp; &amp;nbsp; three.height = 50;&lt;/li&gt;
              &lt;li style=&quot;color:#999999;&quot;&gt;*/&lt;/li&gt;
&lt;br/&gt;
              &lt;li style=&quot;color:#999999;&quot;&gt;// two&lt;/li&gt;
              &lt;li&gt;with(three)&lt;/li&gt;
              &lt;li&gt;{&lt;/li&gt;
              &lt;ul style=&quot;list-style:none; font-family:Courier;&quot; class=&quot;tag&quot;&gt;
                &lt;li&gt;width = 300;&lt;/li&gt;
                &lt;li&gt;height = 50;&lt;/li&gt;
              &lt;/ul&gt;
              &lt;li&gt;}&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;The above changes to the code for the THIRD movieclip will not cause anything new to happen. It is simply another way to type the previous code. Notice, that you only have to type the INSTANCE NAME (three) one time instead of two times as you did previously. If there were a dozen or more lines of code where we were modifying many properties of the same object, this would be a much more efficient way of doing it, especially if the object were NESTED inside of other movieclips.&lt;/li&gt;

          &lt;li&gt;Now type the code for the last two movieclips, for ROTATION and ALPHA:&lt;/li&gt;
            &lt;ul style=&quot;list-style:none; font-family:Courier;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;four.rotation = 45;&lt;/li&gt;
              &lt;li&gt;five.alpha = 0.2;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;Save and test your movie. You will see that one rotated 45 degrees and that the other became more transparent.&lt;/li&gt;
          &lt;li&gt;For ROTATION, you can type a number anywhere between 0 and 360.&lt;/li&gt;
          &lt;li&gt;For ALPHA, you can type a number anywhere between 0.00 and 1.00.&lt;/li&gt;
&lt;br/&gt;
          &lt;li&gt;All of this code happens automatically. That is because code runs immediately from top to bottom when you test a movie UNLESS you type it within a function. This is what we will do next, so type the following code modifications:&lt;/li&gt;
            &lt;ul style=&quot;list-style:none; font-family:Courier;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;function chgRects(evt:MouseEvent):void&lt;/li&gt;
              &lt;li&gt;{&lt;/li&gt;
         &lt;ul style=&quot;list-style:none; font-family:Courier;&quot; class=&quot;tag&quot;&gt;
                  &lt;li&gt;one.width = 250;&lt;/li&gt;
                  &lt;li&gt;two.height = 185;&lt;/li&gt;
&lt;br/&gt;
                  &lt;li style=&quot;color:#999999;&quot;&gt;//the following two sections perform the same tasks&lt;/li&gt;
&lt;br/&gt;
                  &lt;li style=&quot;color:#999999;&quot;&gt;/*  one&lt;/li&gt;
                  &lt;li style=&quot;color:#999999;&quot;&gt;&amp;nbsp; three.width = 300;&lt;/li&gt;
                  &lt;li style=&quot;color:#999999;&quot;&gt;&amp;nbsp; three.height = 50;&lt;/li&gt;
                  &lt;li style=&quot;color:#999999;&quot;&gt;*/&lt;/li&gt;
&lt;br/&gt;
                  &lt;li style=&quot;color:#999999;&quot;&gt;// two&lt;/li&gt;
                  &lt;li&gt;with(three)&lt;/li&gt;
                  &lt;li&gt;{&lt;/li&gt;
             &lt;ul style=&quot;list-style:none; font-family:Courier;&quot; class=&quot;tag&quot;&gt;
        &lt;li&gt;width = 300;&lt;/li&gt;
        &lt;li&gt;height = 50;&lt;/li&gt;
             &lt;/ul&gt;
                  &lt;li&gt;}&lt;/li&gt;
&lt;br/&gt;
                  &lt;li&gt;four.rotation = 45;&lt;/li&gt;
                  &lt;li&gt;five.alpha = 0.2;&lt;/li&gt;
         &lt;/ul&gt;
              &lt;li&gt;}&lt;/li&gt;
            &lt;/ul&gt;
&lt;br/&gt;
          &lt;li&gt;Notice, we only typed the first line new and then enclosed the other lines of code that we&#39;d already typed between curly brackets. If you save and test your movie now, you&#39;ll see that nothing happens.&lt;/li&gt;
          &lt;li&gt;Now, all we need as far as code goes is a listener:&lt;/li&gt;
            &lt;ul style=&quot;list-style:none; font-family:Courier;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;six.addEventListener(MouseEvent.CLICK, chgRects);&lt;/li&gt;
            &lt;/ul&gt;
&lt;br/&gt;
          &lt;li&gt;The listener above tells us three things:&lt;/li&gt;
            &lt;ul&gt;
              &lt;li&gt;The first term, six, tells us that there must be some object on the stage with the INSTANCE NAME of six which the user must interact with;&lt;/li&gt;
              &lt;li&gt;The fourth term, CLICK, tells us that the user must CLICK on that object named six in order to make something happen;&lt;/li&gt;
              &lt;li&gt;The last term, chgRects, tells us that once the user clicks on that object named six, the chgRects function will be activated.&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;Therefore, you will need a SIXTH movieclip on your stage, and it must have the INSTANCE NAME OF six before this will function properly.&lt;/li&gt;
          &lt;li&gt;Once you do that, save and test your movie.&lt;/li&gt;
        &lt;/ol&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Homework&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;exercise 1&amp;#8212;&lt;/strong&gt; Making a Movie-Clip behave as a button:&lt;/li&gt;
        &lt;ol type=&quot;A&quot;&gt;
          &lt;li&gt;Draw a rectangle with the following characteristics:&lt;/li&gt;
            &lt;ol type=&quot;1&quot;&gt;
              &lt;li&gt;width: &lt;strong&gt;150px&lt;/strong&gt;;&lt;/li&gt;
              &lt;li&gt;height: &lt;strong&gt;25px&lt;/strong&gt;;&lt;/li&gt;
              &lt;li&gt;fill color: &lt;strong&gt;light gray&lt;/strong&gt;;&lt;/li&gt;
              &lt;li&gt;stroke color: &lt;strong&gt;dark gray&lt;/strong&gt;;&lt;/li&gt;
              &lt;li&gt;stroke width: &lt;strong&gt;5px&lt;/strong&gt;;&lt;/li&gt;
            &lt;/ol&gt;
          &lt;li&gt;Select the fill (&lt;strong&gt;NOT&lt;/strong&gt; the stroke).&lt;/li&gt;
          &lt;li&gt;Convert it to a movie-clip named rFill_mc.&lt;/li&gt;
          &lt;li&gt;Temporarily, cut and Paste it into its own layer.&lt;/li&gt;
          &lt;li&gt;Give it the instance name of rFill.&lt;/li&gt;
          &lt;li&gt;Move this layer &lt;strong&gt;below&lt;/strong&gt; the first layer and lock it.&lt;/li&gt;
          &lt;li&gt;Select the entire stroke and convert it to a movie-clip named rStroke_mc.&lt;/li&gt;
          &lt;li&gt;Give it the instance name of rStroke.&lt;/li&gt;
          &lt;li&gt;Unlock both layers, and select both the stroke and the fill on the stage.&lt;/li&gt;
          &lt;li&gt;Convert them together into another movie-clip named btn_mc.&lt;/li&gt;
          &lt;li&gt;Give it the instance name of rect.&lt;/li&gt;
          &lt;li&gt;Delete the blank layer.&lt;/li&gt;
          &lt;li&gt;Enter into edit mode for the rectangle.&lt;/li&gt;
          &lt;li&gt;Once inside the rectangle movie-clip, select both the fill and the stroke on the stage.&lt;/li&gt;
          &lt;li&gt;Then, right-click on top of your selection and choose &lt;strong&gt;distribute to layers&lt;/strong&gt;. Make sure the stroke layer is on top.&lt;/li&gt;
          &lt;li&gt;Delete the blank layer, and exit edit mode.&lt;/li&gt;
          &lt;li&gt;What you have now is a set of nested movie-clips: you have the main movie-clip named rect, and the nested movie-clips inside, stroke and fill.&lt;/li&gt;
&lt;br/&gt;
          &lt;li style=&quot;color:#ff0000;&quot;&gt;Your job for homework is to make &lt;strong&gt;&lt;em&gt;ONLY THE STROKE&lt;/em&gt;&lt;/strong&gt; change to &lt;strong&gt;&lt;em&gt;RED&lt;/em&gt;&lt;/strong&gt; when the user mouses over; and then, when the user mouses off, for the color to go back to its original dark gray.&lt;/li&gt;
        &lt;/ol&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
      &lt;li style=&quot;color:#ff0000;&quot;&gt;&lt;strong&gt;extra credit:&lt;/strong&gt; Using &lt;em&gt;&lt;strong&gt;BUTTON SYMBOLS&lt;/strong&gt;&lt;/em&gt; as buttons (and NOT movie-clips as buttons), together with the &lt;em&gt;&lt;strong&gt;VISIBLE&lt;/strong&gt;&lt;/em&gt; property, create the most simple drop-down menu that you can with a total of 5 buttons in it.&lt;/li&gt;
    &lt;/ul&gt;
&lt;/ol&gt;
&lt;br/&gt;
&lt;br/&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/8520776669943236036/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/11/hi-everybody-good-work-yesterday-lets.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/8520776669943236036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/8520776669943236036'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/11/hi-everybody-good-work-yesterday-lets.html' title='&lt;small&gt;Fall 2010 &lt;/small&gt;week 9:&lt;br/&gt;&lt;small&gt;—11/08/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-8824552682909536980</id><published>2010-11-04T10:31:00.000-07:00</published><updated>2010-11-09T08:07:46.286-08:00</updated><title type='text'>Fall 2010 week 8:—11/01/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everybody,&lt;/p&gt;
&lt;p&gt;Please make sure you come to class next week with your projects in working order and with the homework down below.&lt;/p&gt;
&lt;p&gt;Carter-&lt;/p&gt;


&lt;ol type =&quot;A&quot;&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 8&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;em&gt;Classwork 1:&lt;/em&gt;&lt;/p&gt;
    &lt;p&gt;This past class we had a test. It examined your practical knowledge of the code we have learned thus far, as well as your ability to understand the terminology in order to do something new.&lt;/p&gt;
    &lt;p&gt;If you had a difficult time with the exam, you should follow the steps below until you understand and can complete it to functioning order. Practice makes perfect.&lt;/p&gt;
    &lt;ol type=&quot;1&quot;&gt;
      &lt;li&gt;Create a folder with your name as its name.&lt;/li&gt;
      &lt;li&gt;Open a &lt;em&gt;new file&lt;/em&gt; in Flash.&lt;/li&gt;
      &lt;li&gt;Save it with the name of your &lt;em&gt;first initial&lt;/em&gt;, &lt;em&gt;last name&lt;/em&gt;, using camel case; and then an &lt;em&gt;underscore&lt;/em&gt; and finally &lt;em&gt;fa10&lt;/em&gt; (e.g. cJohnson_fa10).&lt;/li&gt;
      &lt;li&gt;In this exercise, make sure you name all your &lt;em&gt;layers&lt;/em&gt; properly.&lt;/li&gt;
      &lt;li&gt;Draw a rectangle on the upper-left corner your stage with a width of 100px, and a height of 200px.&lt;/li&gt;
      &lt;li&gt;Convert it into a &lt;em&gt;movieclip&lt;/em&gt; with whatever symbol name you want, but it should have something to do with what this object is or what it looks like.&lt;/li&gt;
      &lt;li&gt;Next, give it an appropriate &lt;em&gt;instance name&lt;/em&gt;. &lt;/li&gt;
      &lt;li&gt;Now, from the library, drag a &lt;em&gt;2nd instance&lt;/em&gt; of this rectangle onto the &lt;em&gt;bottom-center&lt;/em&gt; of the stage. &lt;/li&gt;
      &lt;li&gt;Give it the instance name of &lt;em&gt;btn_mc&lt;/em&gt;.&lt;/li&gt;
      &lt;li&gt;Save this file and then create another new file. &lt;/li&gt;
      &lt;li&gt;In this 2nd file, type the following aligned &lt;em&gt;right&lt;/em&gt; in the &lt;em&gt;upper-right corner&lt;/em&gt; of the stage:&lt;/li&gt;
        &lt;ol type=&quot;a&quot;&gt;
          &lt;li&gt;DMA205&lt;/li&gt;
          &lt;li&gt;Midterm Quiz&lt;/li&gt;
          &lt;li&gt;Your Name&lt;/li&gt;
          &lt;li&gt;Your ID &lt;/li&gt;
          &lt;li&gt;Fall 2010&lt;/li&gt;
        &lt;/ol&gt;
      &lt;li&gt;Save this file as &lt;em&gt;two.fla&lt;/em&gt;, then generate the &lt;em&gt;.swf file&lt;/em&gt;.&lt;/li&gt;
      &lt;li&gt;You are finished with the 2nd file, so you may close it if you wish.&lt;/li&gt;
      &lt;li&gt;I For the following 2 parts, you will be typing &lt;em&gt;ActionScript&lt;/em&gt; in the &lt;em&gt;first file&lt;/em&gt;.&lt;/li&gt;
       &lt;ol type=&quot;a&quot;&gt;
          &lt;lh style=&quot;text-decoration:underline;&quot;&gt;&lt;em&gt;ActionScript Part I&lt;/em&gt;&lt;/lh&gt;
          &lt;li&gt;In the actions panel of your &lt;em&gt;first&lt;/em&gt; file, you will need two things: a &lt;em&gt;function&lt;/em&gt; and a &lt;em&gt;listener&lt;/em&gt;.&lt;/li&gt;
          &lt;li&gt;Your &lt;em&gt;listener&lt;/em&gt; should &lt;em&gt;call&lt;/em&gt; the function when the user &lt;em&gt;mouses over&lt;/em&gt; the rectangle.&lt;/li&gt;
          &lt;li&gt;Your &lt;em&gt;function&lt;/em&gt; should contain the following one line of code:&lt;/li&gt;
            &lt;ul style=&quot;list-type:none;&quot;&gt;
              &lt;li style=&quot;font-weight:bold; font-family:Courier, &#39;Courier New&#39;;&quot;&gt;the rectangle’s instance name goes here.width = 400; &lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;Now, when you mouse over your rectangle, it should get wider.&lt;/li&gt;
       &lt;/ol&gt;
&lt;br/&gt;
       &lt;ol type=&quot;a&quot;&gt;
          &lt;lh style=&quot;text-decoration:underline;&quot;&gt;&lt;em&gt;ActionScript Part II&lt;/em&gt;&lt;/lh&gt;
          &lt;li&gt;The ActionScript of this file also goes in the &lt;em&gt;first file&lt;/em&gt;.&lt;/li&gt;
          &lt;li&gt;For this part, you will need the following &lt;em&gt;4 things&lt;/em&gt;:&lt;/li&gt;
            &lt;ul&gt;
              &lt;li&gt;&lt;em&gt;A URLRequest object;&lt;/em&gt;&lt;/li&gt;
              &lt;li&gt;&lt;em&gt;A Loader object;&lt;/em&gt;&lt;/li&gt;
              &lt;li&gt;&lt;em&gt;A 2nd function; and&lt;/em&gt;&lt;/li&gt;
              &lt;li&gt;&lt;em&gt;A listener.&lt;/em&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;The &lt;em&gt;URLRequest object&lt;/em&gt; should request the &lt;em&gt;2nd file&lt;/em&gt; that you have created (the one with your name and ID and the other text that you typed).&lt;/li&gt;
          &lt;li&gt;The function should have two lines of code that do the following: &lt;/li&gt;
            &lt;ul&gt;
              &lt;li&gt;In the &lt;em&gt;1st one&lt;/em&gt;, the &lt;em&gt;Loader object&lt;/em&gt; should load the &lt;em&gt;URLRequest object.&lt;/em&gt;&lt;/li&gt;
              &lt;li&gt;In the &lt;em&gt;2nd one&lt;/em&gt;, a &lt;em&gt;child&lt;/em&gt; should be added and it should contain the &lt;em&gt;Loader object&lt;/em&gt;.&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;The listener should call the 2nd function when the user clicks on the 2nd rectangle.&lt;/li&gt;
            &lt;ul style=&quot;list-style:none;&quot;&gt;
              &lt;li&gt;&lt;em&gt;***EXTRA CREDIT***&lt;/em&gt;&lt;/li&gt;
              &lt;li&gt;Make it so that when you mouse off the first rectangle in the first file, it goes back to its original size and shape. To do this, you will need another function and another listener.&lt;/li&gt;
            &lt;/ul&gt;
       &lt;/ol&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;em&gt;Classwork 2:&lt;/em&gt;&amp;nbsp;&amp;nbsp; &lt;a href=&quot;http://www.ii-i.net/documents/dma205/week8/dma205_mtExam.zip&quot;&gt;&lt;strong&gt;LINK&lt;/strong&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;Here are the files with the code and function Flash files.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;em&gt;Homework 1:&lt;/em&gt;
&lt;br/&gt;As you should&#39;ve done last week, take a look at your projects and do as much as possible to &lt;em&gt;complete &amp; improve&lt;/em&gt; them by next week. We will continue working on these projects for the Final Project, so you don&#39;t want to start out the rest of the term behind by having to fix what you have and then implementing all the many new items of ActionScript that we will be adding over the coming weeks.&lt;/li&gt;
  &lt;li&gt;&lt;em&gt;Homework 2:&lt;/em&gt;
    &lt;ol type=&quot;1&quot;&gt;
      &lt;li&gt;In a new file, create a rectangle WITHOUT a stroke and convert it into a movieclip.&lt;/li&gt;
      &lt;li&gt;Using what you know from what we did in class this week, create a function that is triggered when the user mouses over this movieclip.&lt;/li&gt;
      &lt;li&gt;The movieclip should get a &lt;em&gt;little bit wider&lt;/em&gt; and have a &lt;em&gt;slight reduction&lt;/em&gt; in &lt;em&gt;height&lt;/em&gt; when the user mouses over it.&lt;/li&gt;
      &lt;li&gt;You should also create a 2nd function that is triggered when the user mouses off of this movieclip.&lt;/li&gt;
      &lt;li&gt;In this function, the movieclip should change back to its original color and have a return to its original height when the user mouses off of it.&lt;/li&gt;
    &lt;/ol&gt;
&lt;/ol&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/8824552682909536980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/11/hi-everybody-please-make-sure-you-come.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/8824552682909536980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/8824552682909536980'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/11/hi-everybody-please-make-sure-you-come.html' title='&lt;small&gt;Fall 2010 &lt;/small&gt;week 8:&lt;br/&gt;&lt;small&gt;—11/01/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-3836252058763427091</id><published>2010-10-26T06:22:00.000-07:00</published><updated>2010-10-26T06:25:55.451-07:00</updated><title type='text'>Fall 2010 week 7:—10/25/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everybody,&lt;/p&gt;
&lt;p&gt;So you can all breathe a sigh of relief: one way or another, you got through the midterm push.&lt;/p&gt;
&lt;p&gt;Whether you did well at midterm or poorly is irrelevant at this point. You should behave as if you&#39;re starting fresh, almost as if we&#39;re starting a new semester. What you should all consider, however, is &lt;em&gt;HOW&lt;/em&gt; you want to start off the rest of the term next week. &lt;em&gt;IF YOU REALLY WANT TO START OFF ON THE RIGHT FOOT, THEN MAKE SURE YOU COME TO CLASS NEXT WEEK WITH YOUR PROJECTS ***WORKING PERFECTLY*** AND LOOKING GREAT!&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;So that means that some of you will have to push a bit more this week to get your projects working. We are going to continue with the same projects, but with MANY modifications for the final.&lt;/p&gt;


&lt;ol&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 7&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Homework 1:&lt;/em&gt;
&lt;br/&gt;Take a look at your projects and do as much as possible to improve them by next week. We will continue working on these projects for the Final, so you don&#39;t want to start out the rest of the term behind by having to fix what you have and then implementing all the many new items of ActionScript that we will be adding over the coming weeks.&lt;/li&gt;
  &lt;li&gt;&lt;em&gt;Homework 2:&lt;/em&gt;
&lt;br/&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/week7/dma205_mtQuiz.pdf&quot;&gt;&lt;strong&gt;LINK&lt;/strong&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp; This is an example of a quiz that I gave last semester. Next week at the beginning of class, I will give a quiz &lt;em&gt;VERY SIMILAR&lt;/em&gt; to this one. Make certain you can do it.&lt;/li&gt;
&lt;/ol&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/3836252058763427091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/10/hi-everybody-so-you-can-all-breathe.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/3836252058763427091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/3836252058763427091'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/10/hi-everybody-so-you-can-all-breathe.html' title='&lt;small&gt;Fall 2010 &lt;/small&gt;week 7:&lt;br/&gt;&lt;small&gt;—10/25/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-4139826232793599942</id><published>2010-10-21T10:26:00.001-07:00</published><updated>2010-10-21T12:51:48.754-07:00</updated><title type='text'>Fall 2010 week 6:—10/18/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everyone,&lt;/p&gt;
&lt;p&gt;A lot of you are very behind and, I suspect, didn&#39;t do anything during the three weeks before our last class that we did not meet. Please, try not to miss anymore classes or forget to do your homework.&lt;/p&gt;
&lt;p&gt;Complete the entire site by next week for your midterm project. Even if you do not have time to get it perfect, complete all the pages. Trying to do something, wrong or not, is always better than giving me something that is incomplete.&lt;/p&gt;
&lt;p&gt;Have a nice week.&lt;/p&gt;


&lt;ol&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 6&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Syllabus&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/dma205_syllabus.pdf&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; class syllabus&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Classwork&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/week6/dma205_wk6.zip&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; These files are similar to what we produced in class this week and last. Please make sure that you understand the construction and the code as YOU MUST DO the same thing for your midterm projects.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Homework&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;exercise 1:&lt;/strong&gt;
        &lt;p&gt;A few of you have not yet sent me your intended subjects for your midterm projects. As of this past Monday, they were late. I suggest you email me &lt;em&gt;IMMEDIATELY&lt;/em&gt;:&lt;/p&gt;
      &lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;exercise 2:&lt;/strong&gt;
        &lt;p&gt;&lt;em&gt;FINAL PROJECTS DUE MONDAY&lt;/em&gt;:&lt;/p&gt;
          &lt;ol type=&quot;1&quot;&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Pietr Mondriaan - De Stijl&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Jennifer De Los Santos&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;Theo van Doesburg - De Stijl&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Joan Miro - Surrealism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Julian Fagan&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Max Ernst - Surrealism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Christopher Batiz&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Georges Braque - Cubism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Giovanni Diaz&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;Juan Gris - Cubism&lt;/li&gt;
              &lt;li&gt;Umberto Boccioni - Futurism&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Carlo Carrà - Futurism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Cory Jeminez&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Kazimir Malevich - Suprematism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Mark Little&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;El Lissitzky - (Russian) Constructivism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Gabriel Ruiz&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Man Ray - Dadaism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Carlos Lopez&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Hannah Höch - Dadaism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Pablito Mirón&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;Henri Matisse - Fauvism&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;André Derain - Fauvism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Jaron Harris&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Paul Cezanne - Post-Impressionism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Acheson Phillips&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Vincent van Gogh - Post-Impressionism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Christopher Breland&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Wassily Kandinsky - Expressionism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Randy Brodie&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Otto Dix - Expressionism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Kenneth Jean&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Jackson Pollock - Abstract Expressionism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Andrew Mazowiecki&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Willem De Kooning - Abstract Expressionism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Dwight McLaurin&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Dan Flavin - Minimalism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Julio Perez&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Agnes Martin - Minimalism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Frank Crichlow&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Sol Lewitt - Conceptualism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Daniel Thomas&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Marcel Duchamp - Conceptualism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Michael Foster&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Roy Lichtenstein - Pop&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Eddie Jemmott&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Claes Oldenburg - Pop&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Janelle Yarn&lt;/span&gt;&lt;/li&gt;
          &lt;/ol&gt;
        &lt;p&gt;If you are not certain which one to choose, then ask your art history instructor (Miguel Arisa, Dan Kadish, Vahan Nahabedian, Steve Tecson) or me for suggestions, or consult an art history book. You must come to class prepared to tell me your idea no later than next Monday.&lt;em&gt;THE FIRST TO COME GETS FIRST CHOICE OF A PARTICULAR ARTIST&lt;/em&gt;, so I suggest that you email me your decision.&lt;/p&gt;
      &lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;exercise 3:&lt;/strong&gt;
        &lt;p&gt;As instructed in class this week, you must make the initial page load up &lt;em&gt;AUTOMATICALLY&lt;/em&gt;, before the user clicks on a button. The reason we want this is so that the user doesn&#39;t see a blank page when the site starts up. You must do the same thing for your &lt;em&gt;gallery pages&lt;/em&gt; so that when the user goes to those pages, there is already the FIRST image there showing up large. The code below is something like what you should have in your own index file right now, BEFORE you make any additions:&lt;/p&gt;
        &lt;ol style=&quot;list-style:none&quot;&gt;
          &lt;li&gt;&lt;span style=&quot;color:#99aa99;&quot;&gt;// below is the variable that is converted into a request object;&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;var oneRequest:URLRequest = new URLRequest(&quot;one.swf&quot;);&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;var twoRequest:URLRequest = new URLRequest(&quot;two.swf&quot;);&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;var threeRequest:URLRequest = new URLRequest(&quot;three.swf&quot;);&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;var fourRequest:URLRequest = new URLRequest(&quot;four.swf&quot;);&lt;/span&gt;&lt;/li&gt;
&lt;br/&gt;
          &lt;li&gt;&lt;span style=&quot;color:#99aa99;&quot;&gt;// below is the variable that is converted into a loader;&lt;/span&gt;&lt;/li&gt;
&lt;br/&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;var myLoader:Loader = new Loader();&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;myLoader.load(oneRequest);&lt;/span&gt;&lt;/li&gt;
&lt;br/&gt;
          &lt;li&gt;&lt;span style=&quot;color:#99aa99;&quot;&gt;// below is the function named loadOne &amp; its contents are between the { }&lt;/span&gt;&lt;/li&gt;
&lt;br/&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;function loadOne(event:MouseEvent): void {&lt;/span&gt;&lt;/li&gt;
            &lt;ul style=&quot;list-style:none;&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;myLoader.load(oneRequest);&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;bg_mc.addChild(myLoader);&lt;/span&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;};&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;function loadTwo(event:MouseEvent): void {&lt;/span&gt;&lt;/li&gt;
            &lt;ul style=&quot;list-style:none;&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;myLoader.load(twoRequest);&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;bg_mc.addChild(myLoader);&lt;/span&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;};&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;function loadThree(event:MouseEvent): void {&lt;/span&gt;&lt;/li&gt;
            &lt;ul style=&quot;list-style:none;&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;myLoader.load(threeRequest);&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;bg_mc.addChild(myLoader);&lt;/span&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;};&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;function loadFour(event:MouseEvent): void {&lt;/span&gt;&lt;/li&gt;
            &lt;ul style=&quot;list-style:none;&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;myLoader.load(fourRequest);&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;bg_mc.addChild(myLoader);&lt;/span&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;};&lt;/span&gt;&lt;/li&gt;
&lt;br/&gt;
          &lt;li&gt;&lt;span style=&quot;color:#99aa99;&quot;&gt;/* below is the listener which is waiting for the user to click on the button named one_btn;&lt;br/&gt;
          and, when he/she does,&lt;br/&gt;
          the function named loadOne is activated).*/&lt;/span&gt;&lt;/li&gt;
&lt;br/&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;one_btn.addEventListener(MouseEvent.CLICK, loadOne);&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;two_btn.addEventListener(MouseEvent.CLICK, loadTwo);&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;three_btn.addEventListener(MouseEvent.CLICK, loadThree);&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;four_btn.addEventListener(MouseEvent.CLICK, loadFour);&lt;/span&gt;&lt;/li&gt;
        &lt;/ol&gt;

        &lt;p&gt;As it is right now if everything functions properly, your projects load up the content from the external .swf files only when you click on a button. Clicking on the buttons &lt;em&gt;activates&lt;/em&gt; one of the functions that loads the external file into the index file. The code in the function only runs when the function is called. This means that we need to run that same code, but without using a function because the function keeps it from running automatically, and only allows it to run when the function is called. See the code below for a function as it currently is:&lt;/p&gt;
        &lt;ol style=&quot;list-style:none;&quot;&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;function loadOne(event:MouseEvent): void {&lt;/span&gt;&lt;/li&gt;
            &lt;ul style=&quot;list-style:none;&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;myLoader.load(oneRequest);&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;bg_mc.addChild(myLoader);&lt;/span&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;};&lt;/span&gt;&lt;/li&gt;
        &lt;/ol&gt;
        &lt;p&gt;Those two lines of code inside of the function are what we are looking for. They are the two lines that are actually responsible for loading the first external .swf file into the index. This means that you must not only have those two lines here inside the function, but also &lt;em&gt;&lt;strong&gt;OUTSIDE OF THE FUNCTION&lt;/strong&gt;&lt;/em&gt; as well. This will cause the first page to load automatically &lt;em&gt;&lt;strong&gt;AND&lt;/em&gt;&lt;/strong&gt; also when the user clicks on its button.&lt;/p&gt;
      &lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;exercise 4:&lt;/strong&gt;
        &lt;p&gt;Do the same thing for your gallery files so that the first image in each loads up automatically as well as when the button for it is clicked by the user.&lt;/p&gt;
      &lt;/li&gt;
    &lt;/ul&gt;




&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Midterm Requirements:&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;page size&lt;/em&gt;&lt;/strong&gt;: 1000px X 700px&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;page number&lt;/em&gt;&lt;/strong&gt;: 6 pages&lt;/li&gt;
        &lt;ol type=&quot;a&quot;&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;bio:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
this page is about the artist and should include sufficient text, and then enough accompanying images to help explain or demonstrate the text.&lt;/li&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;art:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
this page is about his/her art, and should, like the bio page, contain sufficient text and images to accompany the text for us to have a basic understanding of the art.&lt;/li&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;movement:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
this page is about the art movement that he/she participated in, and should, like the other two pages, contain sufficient text and images to accompany the text for us to have a basic understanding of the art: in this page, you &lt;em&gt;MUST INCLUDE AT LEAST 2 IMAGES FROM DIFFERENT ARTISTS IN THE SAME MOVEMENT&lt;/em&gt;.&lt;/li&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;gallery 1 &amp; 2:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
these pages should contain thumbnail images which, when clicked on, cause a larger image to show up with a caption below it&amp;#8212;the best way to do this is to place the large image in a separate Flash file and type some text below or beside it. Each page must have at least &lt;em&gt;&lt;strong&gt;4 images&lt;/strong&gt;&lt;/em&gt; and each should show up with a unique &lt;em&gt;caption&lt;/em&gt; to go with it.&lt;/li&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;bibliography:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
this page contains a list of links and a brief description of at least 10 online resources that have information or images. Also, list some recent books or films about the artist and/or his/her work. This should include who wrote it and when it was published it if is a book; or who directed it and when it was released if it is a film.&lt;/li&gt;
        &lt;/ol&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Midterm Grading:&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;topic&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
this is a giveaway of points (5% - a half of a letter grade - of the final grade of the project) if you all follow the topics you chose;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;color&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
this has to do with whether you&#39;ve seriously chosen your color scheme: if you choose too many colors or if they simply don&#39;t go together, points will be taken off; so, if you&#39;re not sure, keep it really minimal, or use the &lt;em&gt;&lt;strong&gt;COLOR INDEX&lt;/strong&gt;&lt;/em&gt;;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;images&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
another point giveaway if you use enough images AND if you &lt;em&gt;&lt;strong&gt;DO NOT DISTORT THEM&lt;/strong&gt;&lt;/em&gt;; and also if you don&#39;t use images more than once in such a small website;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;text&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
once again, another giveaway of points if you use enough text and if you spend a little time formatting it: a couple suggestions are that you should &lt;em&gt;&lt;strong&gt;NOT&lt;/strong&gt;&lt;/em&gt;stretch text all the way across the page, but break it up into a couple columns instead; also, like color, make sure you do not use too many fonts, especially multiple decorative fonts together;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;layout, positioning, &amp; alignment&lt;/em&gt;: 20pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
you should carefully consider the organization of each of your pages and, especially, keep in mind that consistency from page to page is very important. USE RULERS &amp; GUIDES!!!!;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;title:&lt;/em&gt; 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
make certain that there is a title and that it is present (in the same spot) no matter what the user does;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;buttons&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
buttons should be fully functional, should have 4 frames in which the hit frame is a simple gray rectangle, and they should be designed well&amp;#a hint here: students often make their buttons too large;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;content&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
yet another point giveaway and it is simply points to determine whether you have enough content in each page;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;movie-clip container&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;do you use a movieclip container (box_mc for the index and bigImg_mc for the gallery, for example)?;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;initial load&lt;/em&gt;: 15pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
when the user first opens up your site using the index, does content &lt;em&gt;&lt;strong&gt;AUTOMATICALLY LOAD&lt;/strong&gt;&lt;/em&gt; as it should, or does the user have to click on a button to make something appear when the page loads up initially?&amp;#8212;this also pertains to the gallery pages;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;button loading&lt;/em&gt;: 20pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
this simply refers to the functions connected to the buttons on the stage: does content load when you click on all your buttons?&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;folder organization&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
the folder that you give me next week should be organized, meaning that images should be in one folder. Also, right before you give me your project, put your .fla files into a separate folder as well. You should also remove any images or other files that are not being used.&lt;/li&gt;
    &lt;/ul&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/4139826232793599942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/10/hi-everyone-lot-of-you-are-very-behind.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/4139826232793599942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/4139826232793599942'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/10/hi-everyone-lot-of-you-are-very-behind.html' title='&lt;small&gt;Fall 2010 &lt;/small&gt;week 6:&lt;br/&gt;&lt;small&gt;—10/18/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-4340075328654829033</id><published>2010-10-14T06:47:00.000-07:00</published><updated>2010-10-18T07:40:12.027-07:00</updated><title type='text'>Fall 2010 week 5:—10/11/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everybody,&lt;br/&gt;
&lt;p&gt;I&#39;m sorry about the last two weeks. The week before last I was ill and then this week, of course, we had the problems with the administration not wanting to negotiate a new contract with us like adults. Luckily, all that has been resolved and I am not sick anymore. Please see the following exercises for your homework due Monday (along with the homework that was due last week).&lt;/p&gt;
&lt;br/&gt;
&lt;p&gt;Your &lt;em&gt;mid-term projects&lt;/em&gt; will be due in &lt;em&gt;three weeks&lt;/em&gt;; however, by &lt;em&gt;next week&lt;/em&gt; you must have a &lt;em&gt;partial rough draft&lt;/em&gt; to show me. This means you have to have &lt;em&gt;the first two &quot;pages&quot; of the site done by next week&lt;/em&gt;. That &lt;em&gt;DOES NOT&lt;/em&gt; mean they have to be perfect, as we will continue working on them two more weeks to get them into better condition. Moreover, we will continue working on them throughout the rest of the semester, adding features and editing what you already have. These projects will be the same projects that you give to me for the final as well.&lt;/p&gt;

&lt;p&gt;The most important part of this project is to &lt;em&gt;&lt;strong&gt;get the ACTIONSCRIPT to work&lt;/strong&gt;&lt;/em&gt;. Design is very important, but should take a backseat if you have to make a choice.&lt;/p&gt;


&lt;ol&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 5&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Syllabus&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/dma205_syllabus.pdf&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; class syllabus&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Classwork&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/week5/dma205_wk5.zip&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; This week&#39;s class files&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Homework&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;exercise 1:&lt;/strong&gt;
        &lt;p&gt;Many of you have not yet sent me your intended subjects for your midterm projects. As of this past Monday, they were late. I suggest you email me immediately:&lt;/p&gt;
            &lt;ol type=&quot;1&quot;&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Pietr Mondriaan - De Stijl&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Jennifer De Los Santos&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;Theo van Doesburg - De Stijl&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Joan Miro - Surrealism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Julian Fagan&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Max Ernst - Surrealism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Christopher Batiz&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;Georges Braque - Cubism&lt;/li&gt;
              &lt;li&gt;Juan Gris - Cubism&lt;/li&gt;
              &lt;li&gt;Umberto Boccioni - Futurism&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Carlo Carrà - Futurism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Cory Jeminez&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Kazimir Malevich - Suprematism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Mark Little&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;El Lissitzky - (Russian) Constructivism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Gabriel Ruiz&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Man Ray - Dadaism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Carlos Lopez&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Hannah Höch - Dadaism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Pablito Mirón&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;Henri Matisse - Fauvism&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;André Derain - Fauvism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Jaron Harris&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Paul Cezanne - Post-Impressionism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Acheson Phillips&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Vincent van Gogh - Post-Impressionism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Christopher Breland&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Wassily Kandinsky - Expressionism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Randy Brodie&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Otto Dix - Expressionism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Kenneth Jean&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Jackson Pollock - Abstract Expressionism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Andrew Mazowiecki&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Willem De Kooning - Abstract Expressionism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Dwight McLaurin&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Dan Flavin - Minimalism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Julio Perez&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Agnes Martin - Minimalism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Frank Crichlow&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Sol Lewitt - Conceptualism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Daniel Thomas&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Marcel Duchamp - Conceptualism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Michael Foster&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Roy Lichtenstein - Pop&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Eddie Jemmott&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Claes Oldenburg - Pop&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Janelle Yarn&lt;/span&gt;&lt;/li&gt;
            &lt;/ol&gt;
      &lt;li&gt;&lt;strong&gt;exercise 2:&lt;/strong&gt; Complete &lt;em&gt;THE FIRST TWO PAGES&lt;/em&gt; of your midterm project by next week to present to me a partial rough draft. This means that you &lt;em&gt;MUST COMPLETE THOSE TWO PAGES BY NEXT WEEK&lt;/em&gt;. I will then comment on what you show me and you will have two more weeks to improve it and smooth out all the rough edges.&lt;/li&gt;
    &lt;/ul&gt;




&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Midterm Requirements:&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;page size&lt;/em&gt;&lt;/strong&gt;: 1000px X 700px&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;page number&lt;/em&gt;&lt;/strong&gt;: 6 pages&lt;/li&gt;
        &lt;ol type=&quot;a&quot;&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;bio:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
this page is about the artist and should include sufficient text, and then enough accompanying images to help explain or demonstrate the text.&lt;/li&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;art:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
this page is about his/her art, and should, like the bio page, contain sufficient text and images to accompany the text for us to have a basic understanding of the art.&lt;/li&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;movement:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
this page is about the art movement that he/she participated in, and should, like the other two pages, contain sufficient text and images to accompany the text for us to have a basic understanding of the art: in this page, you &lt;em&gt;MUST INCLUDE AT LEAST 2 IMAGES FROM DIFFERENT ARTISTS IN THE SAME MOVEMENT&lt;/em&gt;.&lt;/li&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;gallery 1 &amp; 2:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
these pages should contain thumbnail images which, when clicked on, cause a larger image to show up with a caption below it&amp;#8212;the best way to do this is to place the large image in a separate Flash file and type some text below or beside it. Each page must have at least &lt;em&gt;&lt;strong&gt;4 images&lt;/strong&gt;&lt;/em&gt; and each should show up with a unique &lt;em&gt;caption&lt;/em&gt; to go with it.&lt;/li&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;bibliography:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
this page contains a list of links and a brief description of at least 10 online resources that have information or images. Also, list some recent books or films about the artist and/or his/her work. This should include who wrote it and when it was published it if is a book; or who directed it and when it was released if it is a film.&lt;/li&gt;
        &lt;/ol&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Midterm Grading:&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;topic&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
this is a giveaway of points (5% - a half of a letter grade - of the final grade of the project) if you all follow the topics you chose;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;color&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
this has to do with whether you&#39;ve seriously chosen your color scheme: if you choose too many colors or if they simply don&#39;t go together, points will be taken off; so, if you&#39;re not sure, keep it really minimal, or use the &lt;em&gt;&lt;strong&gt;COLOR INDEX&lt;/strong&gt;&lt;/em&gt;;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;images&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
another point giveaway if you use enough images AND if you &lt;em&gt;&lt;strong&gt;DO NOT DISTORT THEM&lt;/strong&gt;&lt;/em&gt;; and also if you don&#39;t use images more than once in such a small website;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;text&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
once again, another giveaway of points if you use enough text and if you spend a little time formatting it: a couple suggestions are that you should &lt;em&gt;&lt;strong&gt;NOT&lt;/strong&gt;&lt;/em&gt;stretch text all the way across the page, but break it up into a couple columns instead; also, like color, make sure you do not use too many fonts, especially multiple decorative fonts together;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;layout, positioning, &amp; alignment&lt;/em&gt;: 20pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
you should carefully consider the organization of each of your pages and, especially, keep in mind that consistency from page to page is very important. USE RULERS &amp; GUIDES!!!!;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;title:&lt;/em&gt; 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
make certain that there is a title and that it is present (in the same spot) no matter what the user does;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;buttons&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
buttons should be fully functional, should have 4 frames in which the hit frame is a simple gray rectangle, and they should be designed well&amp;#a hint here: students often make their buttons too large;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;content&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
yet another point giveaway and it is simply points to determine whether you have enough content in each page;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;movie-clip container&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;do you use a movieclip container (box_mc for the index and bigImg_mc for the gallery, for example)?;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;initial load&lt;/em&gt;: 15pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
when the user first opens up your site using the index, does content &lt;em&gt;&lt;strong&gt;AUTOMATICALLY LOAD&lt;/strong&gt;&lt;/em&gt; as it should, or does the user have to click on a button to make something appear when the page loads up initially?&amp;#8212;this also pertains to the gallery pages;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;button loading&lt;/em&gt;: 20pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
this simply refers to the functions connected to the buttons on the stage: does content load when you click on all your buttons?&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;folder organization&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
the folder that you give me next week should be organized, meaning that images should be in one folder. Also, right before you give me your project, put your .fla files into a separate folder as well. You should also remove any images or other files that are not being used.&lt;/li&gt;
    &lt;/ul&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/4340075328654829033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/10/hi-everybody-your-mid-term-projects.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/4340075328654829033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/4340075328654829033'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/10/hi-everybody-your-mid-term-projects.html' title='&lt;small&gt;Fall 2010 &lt;/small&gt;week 5:&lt;br/&gt;&lt;small&gt;—10/11/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-8075770806946617235</id><published>2010-10-05T08:54:00.001-07:00</published><updated>2010-10-06T13:15:54.601-07:00</updated><title type='text'>Fall 2010 week 4:—10/04/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everyone,&lt;/p&gt;
&lt;p&gt;I&#39;m sorry that I wasn&#39;t in class on Monday, but I&#39;ve been a little ill since the weekend. I will undoubtedly be in class next week. You must, however, despite my absence, continue working on your projects. Please make certain that you bring all of the work that I ask for below to our class next week.&lt;/p&gt;
&lt;p&gt;Have a nice week.&lt;/p&gt;


&lt;ol&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 4&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Syllabus&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/dma205_syllabus.pdf&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; class syllabus&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Classwork&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/week4/dma205_week4.zip&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; These files are similar to what we produced in class  last week. Please make sure that you understand the construction and the code as YOU will be doing the same thing for your midterm projects.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Homework&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;exercise 1:&lt;/strong&gt;
        &lt;p&gt;Many of you have not yet sent me your intended subjects for your midterm projects. As of this past Monday, they were late. I suggest you email me immediately:&lt;/p&gt;
            &lt;ol type=&quot;1&quot;&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Pietr Mondriaan - De Stijl&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Jennifer De Los Santos&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;Theo van Doesburg - De Stijl&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Joan Miro - Surrealism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Julian Fagan&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Max Ernst - Surrealism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Christopher Batiz&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;Georges Braque - Cubism&lt;/li&gt;
              &lt;li&gt;Juan Gris - Cubism&lt;/li&gt;
              &lt;li&gt;Umberto Boccioni - Futurism&lt;/li&gt;
              &lt;li&gt;Carlo Carrà - Futurism&lt;/li&gt;
              &lt;li&gt;Kazimir Malevich - Suprematism&lt;/li&gt;
              &lt;li&gt;El Lissitzky - (Russian) Constructivism&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Man Ray - Dadaism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Carlos Lopez&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Hannah Höch - Dadaism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Pablito Mirón&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;Henri Matisse - Fauvism&lt;/li&gt;
              &lt;li&gt;André Derain - Fauvism&lt;/li&gt;
              &lt;li&gt;Paul Cezanne - Post-Impressionism&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Vincent van Gogh - Post-Impressionism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Christopher Breland&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;Wassily Kandinsky - Expressionism&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Otto Dix - Expressionism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Kenneth Jean&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;Jackson Pollock - Abstract Expressionism&lt;/li&gt;
              &lt;li&gt;Willem De Kooning - Abstract Expressionism&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Dan Flavin - Minimalism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Julio Perez&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;Agnes Martin - Minimalism&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Sol Lewitt - Conceptualism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Daniel Thomas&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Marcel Duchamp - Conceptualism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Michael Foster&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Roy Lichtenstein - Pop&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Eddie Jemmott&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Claes Oldenburg - Pop&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Janelle Yarn&lt;/span&gt;&lt;/li&gt;
            &lt;/ol&gt;
        &lt;p&gt;If you are not certain which one to choose, then ask your art history instructor (Miguel Arisa, Dan Kadish, Vahan Nahabedian, Steve Tecson) or me for suggestions, or consult an art history book. You must come to class prepared to tell me your idea no later than next Monday.&lt;em&gt;THE FIRST TO COME GETS FIRST CHOICE OF A PARTICULAR ARTIST&lt;/em&gt;, so I suggest that you email me your decision.&lt;/p&gt;
      &lt;/li&gt;
&lt;br/&gt;
      &lt;li&gt;&lt;strong&gt;exercise 2:&lt;/strong&gt; Make certain that you have at least &lt;em&gt;three resources&lt;/em&gt; to do your research and get your images. These may be either books or websites, and you must come with them written down ready to show to me first thing in class.&lt;/li&gt;
&lt;br/&gt;
      &lt;li&gt;&lt;strong&gt;exercise 3:&lt;/strong&gt; Last week, I asked you to do &lt;em&gt;TWO MOCKUPS&lt;/em&gt; for the first page of your website. If you hadn&#39;t done those by yesterday (Monday), then you got a break. They will be due next Monday. A mockup is a &quot;fake&quot; website, or an image that simply &quot;poses&quot; or &quot;pretends to be&quot; a website. You will use Photoshop or Illustrator, or both, to do your mockups. They must look &lt;em&gt;EXACTLY&lt;/em&gt; as you intend them to look when you actually make your websites in Flash. Choose your &lt;em&gt;color scheme&lt;/em&gt;, your &lt;em&gt;fonts&lt;/em&gt; and your &lt;em&gt;layout&lt;/em&gt;. You should also design your &lt;em&gt;navigation&lt;/em&gt;: will you utilize graphic buttons, or will you use simply text links to click on to go from page to page?&lt;/li&gt;
&lt;br/&gt;
      &lt;li&gt;&lt;strong&gt;exercise 4:&lt;/strong&gt; You should create your &lt;em&gt;INDEX&lt;/em&gt; file in  &lt;em&gt;FLASH&lt;/em&gt;. Recall my discussion on the separation of &lt;em&gt;interface elements&lt;/em&gt; from &lt;em&gt;content elements&lt;/em&gt;. In your index you should &lt;em&gt;ONLY&lt;/em&gt; place navigation (buttons and/or links) and those items that will remain visible to the user at all times, such as the title of the site or the background. &lt;em&gt;THERE SHOULD BE NO CONTENT AT ALL IN THIS FILE&lt;/em&gt;. If you&#39;re not certain, email me and ask me if one thing or another belongs. This file should be similar to the &lt;em&gt;INDEX&lt;/em&gt; files we produced last week in class together.&lt;/li&gt;
    &lt;/ul&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/8075770806946617235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/10/hi-everyone-im-sorry-that-i-wasnt-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/8075770806946617235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/8075770806946617235'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/10/hi-everyone-im-sorry-that-i-wasnt-in.html' title='&lt;small&gt;Fall 2010 &lt;/small&gt;week 4:&lt;br/&gt;&lt;small&gt;—10/04/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-2826056346142280238</id><published>2010-09-28T07:58:00.001-07:00</published><updated>2010-10-03T11:59:25.219-07:00</updated><title type='text'>Fall 2010 week 3:—9/27/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everyone,&lt;br/&gt;
I know this is not easy stuff and that it can sometimes be frustrating, but it seems to me that all of you are actively really trying to figure things out. This is what is important, not whether you get it right 100% of the time. I don&#39;t want to run this point into the ground, but it&#39;s worth mentioning again, so good for you. The main thing you should take out of this class is learning how to figure this stuff out, when you have an error or a problem that you want to solve, how is it that you go about figuring out how to do that: spending time with the problem and making a concerted effort to working it out.&lt;/p&gt;
&lt;p&gt;Carter-&lt;/p&gt;

&lt;br/&gt;
&lt;br/&gt;




&lt;ol type=&quot;I&quot;&gt;
  &lt;li&gt;&lt;em&gt;WEEK 3&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
    &lt;ol type=&quot;A&quot;&gt;
      &lt;li&gt;&lt;em&gt;Classwork&lt;/em&gt;&lt;/li&gt;
        &lt;ul type=&quot;circle&quot;&gt;
          &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; class file&lt;/li&gt;
        &lt;/ul&gt;
      &lt;li&gt;&lt;em&gt;Homework&lt;/em&gt;&lt;/li&gt;
        &lt;ul type=&quot;circle&quot;&gt;
          &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;Information:&lt;/span&gt;&lt;/li&gt;
            &lt;ol type=&quot;1&quot;&gt;
              &lt;li&gt;Pietr Mondriaan - De Stijl&lt;/li&gt;
              &lt;li&gt;Theo van Doesburg - De Stijl&lt;/li&gt;
              &lt;li&gt;Joan Miro - Surrealism&lt;/li&gt;
              &lt;li&gt;Max Ernst - Surrealism&lt;/li&gt;
              &lt;li&gt;Georges Braque - Cubism&lt;/li&gt;
              &lt;li&gt;Juan Gris - Cubism&lt;/li&gt;
              &lt;li&gt;Umberto Boccioni - Futurism&lt;/li&gt;
              &lt;li&gt;Carlo Carrà - Futurism&lt;/li&gt;
              &lt;li&gt;Kazimir Malevich - Suprematism&lt;/li&gt;
              &lt;li&gt;El Lissitzky - (Russian) Constructivism&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Man Ray - Dadaism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Carlos Lopez&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Hannah Höch - Dadaism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Pablito Mirón&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;Henri Matisse - Fauvism&lt;/li&gt;
              &lt;li&gt;André Derain - Fauvism&lt;/li&gt;
              &lt;li&gt;Paul Cezanne - Post-Impressionism&lt;/li&gt;
              &lt;li&gt;Vincent van Gogh - Post-Impressionism&lt;/li&gt;
              &lt;li&gt;Wassily Kandinsky - Expressionism&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Otto Dix - Expressionism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Kenneth Jean&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;Jackson Pollock - Abstract Expressionism&lt;/li&gt;
              &lt;li&gt;Willem De Kooning - Abstract Expressionism&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Dan Flavin - Minimalism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Julio Perez&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;Agnes Martin - Minimalism&lt;/li&gt;
              &lt;li&gt;Sol Lewitt - Conceptualism&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Marcel Duchamp - Conceptualism&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Michael Foster&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span  style=&quot;text-decoration:line-through; color:#ff0000;&quot;&gt;Roy Lichtenstein - Pop&lt;/span&gt; &lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;--&gt;Eddie Jemmott&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;Claes Oldenburg - Pop&lt;/li&gt;
            &lt;/ol&gt;


          &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;Exercise 1:&lt;/span&gt;
            &lt;ol type=&quot;1&quot;&gt;
              &lt;li&gt;Choose an artist and his/her movement as the subject of your midterm project. You may come to class with your selection, or, you may email to me your selection; but please make certain I know who you are if you email me. Also, there will be &lt;em&gt;only one person per artist/movement&lt;/em&gt;. Therefore, I suggest that you select a &lt;em&gt;PLAN B&lt;/em&gt; topic from above in case someone has already selected what you wanted.&lt;/li&gt;
              &lt;li&gt;Come in to class next monday with &lt;em&gt;TWO MOCKUPS&lt;/em&gt; of the &lt;em&gt;FIRST PAGE&lt;/em&gt; of your website for the final project. &lt;/li&gt;
              &lt;li&gt;&lt;span style=&quot;color:#33aa99; font-weight:bold;&quot;&gt;A mockup is a FAKE website done in an image program such as Photoshop or Illustrator, thus the word MOCK!!!&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;The subject of your site is &lt;em&gt;BOTH&lt;/em&gt; the &lt;em&gt;artist&lt;/em&gt; above on the left &lt;em&gt;AND&lt;/em&gt; the art-historical &lt;em&gt;movement&lt;/em&gt; that he or she belongs to on the right.&lt;/li&gt;
              &lt;li&gt;They &lt;em&gt;MUST&lt;/em&gt; be done in Illustrator and/or Photoshop.&lt;/li&gt;
              &lt;li&gt;You &lt;em&gt;MUST&lt;/em&gt; choose your color scheme for this site and write it on a piece of paper.&lt;/li&gt;
              &lt;li&gt;You &lt;em&gt;MUST&lt;/em&gt; choose your font scheme for this site and list on a piece of paper all the ones that you will use.&lt;/li&gt;
              &lt;li&gt;You &lt;em&gt;MUST&lt;/em&gt; come in with a list of at least &lt;em&gt;THREE&lt;/em&gt; references to books or other websites where you will be getting your material.&lt;/li&gt;
              &lt;li&gt;They &lt;em&gt;MUST&lt;/em&gt; include a title for the site.&lt;/li&gt;
              &lt;li&gt;They &lt;em&gt;MUST&lt;/em&gt; include both text and images.&lt;/li&gt;
              &lt;li&gt;They &lt;em&gt;MUST&lt;/em&gt; be 100% complete or you will not receive credit.&lt;/li&gt;
              &lt;li&gt;Be prepared to stay a few minutes after class if necessary to discuss your ideas with me.&lt;/li&gt;
            &lt;/ol&gt;
        &lt;/ul&gt;
    &lt;/ol&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/2826056346142280238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/09/hi-everyone-i-know-this-is-not-easy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/2826056346142280238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/2826056346142280238'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/09/hi-everyone-i-know-this-is-not-easy.html' title='&lt;small&gt;Fall 2010 &lt;/small&gt;week 3:&lt;br/&gt;&lt;small&gt;—9/27/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-4534972097077163676</id><published>2010-09-23T07:34:00.000-07:00</published><updated>2010-09-23T07:54:47.677-07:00</updated><title type='text'>Fall 2010 week 2:—9/20/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everyone,&lt;br/&gt;
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.&lt;/p&gt;
&lt;br/&gt;
&lt;p&gt;Please review here what we did in class yesterday (Monday). Each week, I will post two things:
&lt;ol&gt;
  &lt;li&gt;the files that we produced in class that week; and,&lt;/li&gt;
  &lt;li&gt;the homework that will be due the following week.&lt;/li&gt;
&lt;/ol&gt;
&lt;br/&gt;


&lt;ol&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 2&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Syllabus&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;#&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; class syllabus&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Classwork&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/week1/dma205_wk1.zip&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; This weeks classfiles (same as last week&#39;s)&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Homework&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;exercise 1:&lt;/strong&gt;
        &lt;p&gt;Today, in this week&#39;s class, you completed a very basic animation with a few small bits of code to add interactivity; for example, &lt;em&gt;making the animation stop when you clicked on your button&lt;/em&gt;, and &lt;em&gt;making it resume when you click on the 2nd button&lt;/em&gt;. Next, what you will do is &lt;em&gt;make it skip to frame 25 when you click on a 3rd button&lt;/em&gt;.&lt;/p&gt;
        &lt;ol&gt;
          &lt;li&gt;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.&lt;/li&gt;
          &lt;li&gt;You should next select the button and give it the instance name of &lt;em&gt;three&lt;/em&gt;.&lt;/li&gt;
          &lt;li&gt;Then, in your actions panel, below the 2nd function, you will need to type a third function:&lt;br/&gt;
            &lt;ol style=&quot;list-style:none;&quot; class=&quot;tag&quot;&gt;
              &lt;li&gt;function jumpIt(evt:MouseEvent):void{&lt;/li&gt;
                &lt;ol style=&quot;list-style:none;&quot; class=&quot;tag&quot;&gt;
                  &lt;li&gt;gotoAndPlay(25);&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;}&lt;/li&gt;
            &lt;/ol&gt;
          &lt;li&gt;Then, below the 2nd &lt;em&gt;eventListener&lt;/em&gt;, 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.&lt;/li&gt;
          &lt;li&gt;Once you do that, save and test your movie.&lt;/li&gt;
          &lt;li&gt;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.&lt;/li&gt;
          &lt;li&gt;Put a 4th button on the stage beside the other two.&lt;/li&gt;
          &lt;li&gt;Give it an instance name as you have done for the other three.&lt;/li&gt;
          &lt;li&gt;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 &lt;em&gt;skipIT&lt;/em&gt;.&lt;/li&gt;
          &lt;li&gt;The actions inside this function should simply read:&lt;big&gt;gotoAndStop(currentFrame + 10);&lt;/big&gt;&lt;/li&gt;
          &lt;li&gt;Save and test your movie. Clear up any errors you have&lt;/li&gt;
          &lt;li&gt;Open a new file.&lt;/li&gt;
          &lt;li&gt;Create a simple 200 frame animation.&lt;/li&gt;
          &lt;li&gt;Now, create a basic button rectangular button symbol.&lt;/li&gt;
          &lt;li&gt;Next, from your library, take 4 instances of your button symbol and arrange them horizontally along the bottom the stage.&lt;/li&gt;
          &lt;li&gt;Give them the instance names of &lt;em&gt;pt1_btn&lt;/em&gt;, &lt;em&gt;pt2_btn&lt;/em&gt;, &lt;em&gt;pt3_btn&lt;/em&gt;, and &lt;em&gt;pt4_btn&lt;/em&gt;.&lt;/li&gt;
          &lt;li&gt;Create an actions layer, and type a &lt;em&gt;stop();&lt;/em&gt; action in frame one.&lt;/li&gt;
          &lt;li&gt;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.&lt;/li&gt;
          &lt;li&gt;HINTS: you will need 4 functions, 4 listeners, and inside those 4 new functions, you will need gotoAndPlay(); actions.&lt;/li&gt;
          &lt;li&gt;Oh, and remember, &lt;em&gt;COPY &amp; PASTE&lt;/em&gt; is your friend. Just make certain you don&#39;t copy and paste mistakes, because then you multiply your mistakes.&lt;/li&gt;
        &lt;/ol&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/4534972097077163676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/09/hi-everyone-for-everyone-who-was-new.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/4534972097077163676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/4534972097077163676'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/09/hi-everyone-for-everyone-who-was-new.html' title='&lt;small&gt;Fall 2010 &lt;/small&gt;week 2:&lt;br/&gt;&lt;small&gt;—9/20/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-1375826849599896228</id><published>2010-08-05T15:24:00.000-07:00</published><updated>2010-08-09T08:28:56.101-07:00</updated><title type='text'>Summer 2010 week 13:—8/2/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everyone,&lt;/p&gt;
&lt;p&gt;Okay Everyone, here we go, the last final week, the final push until, well, the final is due. What you will find here is a painstaking list of all the code and explanations that you will need for your final project. You will also find an additional aspect, a &lt;em&gt;new thing&lt;/em&gt;, that you will have to add to your project, a &lt;em&gt;toggle button that turns music on and off&lt;/em&gt;. This is not worth the most points, so everything else in the project is definitely more important, but doing it will definitely separate the good projects from the truly excellent projects.&lt;/p&gt;
&lt;p&gt;What I&#39;m trying to say here is that you should do everything else first, and then if you have time, work on the music toggle. Good luck, and let me know if you have any questions. Don&#39;t wait until the last minute.&lt;/p&gt;
&lt;p style=&quot;font-variant:small-caps; font-weight:bold;&quot;&gt;Don&#39;t forget: I am going to be at TCI around 11am tomorrow. The school closes at 3pm, so I will remain as long as students need me. If you come, you should come early, because once I am no longer needed, I will leave. See you there!&lt;/p&gt;
&lt;p&gt;Carter-&lt;/p&gt;

&lt;br/&gt;
&lt;br/&gt;




&lt;ul type=&quot;square&quot; style=&quot;margin-left:-25px;&quot;&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 13&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
    &lt;ul style=&quot;list-style:none;&quot; style=&quot;margin-left:-10px;&quot;&gt;
      &lt;lh&gt;&lt;span style=&quot;font-variant:small-caps; font-weight:bold; font-size:12pt; text-decoration:underline;&quot;&gt;Final Project:&lt;/span&gt;&lt;/lh&gt;
        &lt;ol type=&quot;I&quot; style=&quot;margin-left:-15px;&quot;&gt;
          &lt;li&gt;&lt;em&gt;PART I&lt;/em&gt;&lt;/li&gt;
            &lt;ol type=&quot;A&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;color:#5D7631; font-weight:bold;&quot;&gt;Declarations:&lt;/span&gt; &amp;nbsp;&amp;nbsp; You should always start out your code at the top with your &lt;em&gt;declarations&lt;/em&gt;. What this means is that you are announcing to AS3 that you are going to be using some variables or other data storage devices, and that you are going to use certain objects in your script down below. For our script, you will need to start out with two &lt;em&gt;Arrays&lt;/em&gt;, and then a number of &lt;em&gt;ColorTransform&lt;/em&gt; objects. If we need any others later, we will return to the top of the script and add them.&lt;/li&gt;
              &lt;br/&gt;
                &lt;ol type=&quot;1&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;font-weight:bold; font-variant:small-caps;&quot;&gt;Array Objects&lt;/span&gt;&lt;/li&gt;
                    &lt;ol type=&quot;a&quot;&gt;
                      &lt;li&gt;Text Array&lt;/li&gt;
                        &lt;ol type=&quot;i&quot;&gt;
                          &lt;li&gt;First, an array is a particular kind of &lt;em&gt;object&lt;/em&gt; in Flash and ActionScript, and all objects begin as &lt;em&gt;variables&lt;/em&gt;. These variables, however, are then modified so that they take on additional properties that ordinary variables do not possess.&lt;/li&gt;
                          &lt;li&gt;Second, remember that an array is an object, much like a variable, which holds data. However, an array is able to hold many, many data items, unlike variables which may only hold onto one data element.&lt;/li&gt;
                          &lt;li&gt;The first array that we need is the array that we will use to add text to the buttons. These elements must simply state whatever label you want to appear in your buttons.&lt;/li&gt;
                          &lt;li&gt;Each data item held in an array is indicated by a number. these numbers are known as &lt;em&gt;index numbers&lt;/em&gt;, and they always begin counting with the number &lt;em&gt;zero (0)&lt;/em&gt;.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var txtArray:Array = new Array();&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;txtArray[0] = &quot;bio&quot;;&lt;/li&gt;
                                  &lt;li&gt;txtArray[1] = &quot;art&quot;;&lt;/li&gt;
                                  &lt;li&gt;txtArray[2] = &quot;galleries&quot;;&lt;/li&gt;
                                  &lt;li&gt;txtArray[3] = &quot;gallery 1&quot;;&lt;/li&gt;
                                  &lt;li&gt;txtArray[4] = &quot;gallery 2&quot;;&lt;/li&gt;
                                  &lt;li&gt;txtArray[5] = &quot;gallery 3&quot;;&lt;/li&gt;
                                  &lt;li&gt;txtArray[6] = &quot;resources&quot;;&lt;/li&gt;
                                &lt;/ol&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Another, shorter way of giving an array data, which is what we just did above (we put strings, pieces of text with quotation marks around them) and otherwise known as &lt;em&gt;populating&lt;/em&gt; an array is here:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var txtArray:Array = new Array(&quot;bio, &quot;art&quot;, &quot;galleries&quot;, &quot;gallery 1&quot;, &quot;gallery 2&quot;, &quot;gallery 3&quot;, &quot;resources&quot;);&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Yet another, even shorter and more efficient way of populating an array is what is known as &lt;em&gt;literal notation&lt;/em&gt;:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var txtArray:Array = [&quot;bio, &quot;art&quot;, &quot;galleries&quot;, &quot;gallery 1&quot;, &quot;gallery 2&quot;, &quot;gallery 3&quot;, &quot;resources&quot;];&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Any of these is acceptable when declaring and populating an array. They all do exactly the same thing. It is simply a matter of preference.&lt;/li&gt;
                          &lt;li&gt;Now, assuming that you&#39;ve already created your buttons, you need to apply the text to them. Recall, the way that you should have created your buttons are as &lt;em&gt;MovieClip instances&lt;/em&gt;, and that this button movieclip must contain &lt;em&gt;2 additional movieclips&lt;/em&gt; within it, a &lt;em&gt;stroke_mc&lt;/em&gt; movieclip for the stroke and a &lt;em&gt;fill_mc&lt;/em&gt; for the fill. It should also contain a &lt;em&gt;dynamic text box&lt;/em&gt;.&lt;/li&gt;
                          &lt;li&gt;Each of these three items that are inside of your &lt;em&gt;button movieclip&lt;/em&gt; should have &lt;em&gt;instance names&lt;/em&gt;. I have givem them the instance names of &lt;em&gt;stroke&lt;/em&gt;, &lt;em&gt;fill&lt;/em&gt;, and &lt;em&gt;btn_txt&lt;/em&gt;.&lt;/li&gt;
                          &lt;li&gt;You might also want to take note that for the &lt;em&gt;instance names&lt;/em&gt; for the &lt;em&gt;button movieclips&lt;/em&gt;, I have started with &lt;em&gt;btn_00&lt;/em&gt;. I have done this to match the counting of the array which also begins at &lt;em&gt;0&lt;/em&gt;.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;btn_00.btn_txt.text = txtArray[0];&lt;/li&gt;
                              &lt;li&gt;btn_01.btn_txt.text = txtArray[1];&lt;/li&gt;
                              &lt;li&gt;btn_02.btn_txt.text = txtArray[2];&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Furthermore, you must remember that the buttons of the &lt;em&gt;drop-down menu&lt;/em&gt; are &lt;em&gt;INSIDE&lt;/em&gt; another movieclip which, in class, I named &lt;em&gt;options&lt;/em&gt;:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;btn_00.btn_txt.text = txtArray[0];&lt;/li&gt;
                              &lt;li&gt;btn_01.btn_txt.text = txtArray[1];&lt;/li&gt;
                              &lt;li&gt;btn_02.btn_txt.text = txtArray[2];&lt;/li&gt;
                              &lt;li&gt;options.btn_03.btn_txt.text = txtArray[3];&lt;/li&gt;
                              &lt;li&gt;options.btn_04.btn_txt.text = txtArray[4];&lt;/li&gt;
                              &lt;li&gt;options.btn_05.btn_txt.text = txtArray[5];&lt;/li&gt;
                              &lt;li&gt;btn_06.btn_txt.text = txtArray[6];&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                        &lt;/ol&gt;
                      &lt;br/&gt;
                      &lt;li&gt;URL Array&lt;/li&gt;
                        &lt;ol type=&quot;i&quot;&gt;
                          &lt;li&gt;The second array should be typed below the first and is going to be used for the &lt;em&gt;URLs&lt;/em&gt; for when we need to &lt;em&gt;request&lt;/em&gt; the &lt;em&gt;content&lt;/em&gt; files, also known as the external &lt;em&gt;.swf files&lt;/em&gt;. Whichever mode of creating and populating an array that you used above, you could use here as well. Consistency in a script is always best and helps to avoid confusion later on. However, since each item in our array is also a &lt;em&gt;URLRequest object&lt;/em&gt;, the best way to type it is as follows:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var urlArray:Array = new Array();&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;urlArray[0] = new URLRequest(&quot;bio.swf&quot;);&lt;/li&gt;
                                  &lt;li&gt;urlArray[1] = new URLRequest(&quot;art.swf&quot;);&lt;/li&gt;
                                  &lt;li&gt;urlArray[2] = ...etc...&lt;/li&gt;
                                &lt;/ol&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;If you want to put your &lt;em&gt;content pages&lt;/em&gt; in a separate &lt;em&gt;sub-folder&lt;/em&gt; named &lt;em&gt;content&lt;/em&gt;, for example, you would type your array slightly differently as below:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var urlArray:Array = new Array();&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;urlArray[0] = new URLRequest(&quot;content/bio.swf&quot;);&lt;/li&gt;
                                  &lt;li&gt;urlArray[1] = new URLRequest(&quot;content/art.swf&quot;);&lt;/li&gt;
                                  &lt;li&gt;urlArray[2] = ...etc...&lt;/li&gt;
                                &lt;/ol&gt;
                            &lt;/ol&gt;
                        &lt;/ol&gt;
                    &lt;/ol&gt;
                  &lt;br/&gt;
                  &lt;br/&gt;
                  &lt;br/&gt;
                  &lt;li&gt;&lt;span style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;ColorTransform Objects&lt;/span&gt;&lt;/li&gt;
                    &lt;ol type=&quot;a&quot;&gt;
                      &lt;li&gt;New Colors&lt;/li&gt;
                        &lt;ol type=&quot;i&quot;&gt;
                          &lt;li&gt;ColorTransform objects are really just what their name suggests they might be: they are objects which have the ability to change the color of something. In this case, we want to change the color of a movieclip from its current color to a new color. For that, we need to create a ColorTransform object and then apply it to the item that we wish to transform.&lt;/li&gt;
                          &lt;li&gt;The first color object I have down below will be attached to my stroke so that I can modify the color of my stroke to a new color. Thus, in front of the &lt;em&gt;c&lt;/em&gt;, I have put the letter &lt;em&gt;s&lt;/em&gt;, referring to &lt;em&gt;stroke&lt;/em&gt;.&lt;/li&gt;
                          &lt;li&gt;Also, notice down below that the way we create this object is virtually identical to the way that we created our arrays:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var sc_new:ColorTransform = new ColorTransform();&lt;/li&gt;
                              &lt;li&gt;sc_new.color = 0x990000;&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Next, is the new color for the fill movieclip, for which I follow exactly the same procedure, except instead of the &lt;em&gt;s&lt;/em&gt; in front of the &lt;em&gt;c&lt;/em&gt;, I have placed an &lt;em&gt;f&lt;/em&gt; to refer to &lt;em&gt;fill&lt;/em&gt;:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var fc_new:ColorTransform = new ColorTransform();&lt;/li&gt;
                              &lt;li&gt;fc_new.color = 0xffaaaa;&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Many of you have also created a ColorTransform object for your text:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var tc_new:ColorTransform = new ColorTransform();&lt;/li&gt;
                              &lt;li&gt;tc_new.color = 0x660000;&lt;/li&gt;
                            &lt;/ol&gt;
                        &lt;/ol&gt;
                      &lt;br/&gt;
                      &lt;li&gt;Old Colors&lt;/li&gt;
                        &lt;ol type=&quot;i&quot;&gt;
                          &lt;li&gt;The next set of colors are, for lack of better terminology, are the old colors. These are the original colors that our buttons began with and which they should return to once the user stops interacting with them. If you have three new colors, you should also have 3 old colors:&lt;/li&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var sc_old:ColorTransform = new ColorTransform();&lt;/li&gt;
                              &lt;li&gt;sc_old.color = 0x000000;&lt;/li&gt;
                              &lt;br/&gt;
                              &lt;li&gt;var fc_old:ColorTransform = new ColorTransform();&lt;/li&gt;
                              &lt;li&gt;fc_old.color = 0xffffff;&lt;/li&gt;
                              &lt;br/&gt;
                              &lt;li&gt;var tc_old:ColorTransform = new ColorTransform();&lt;/li&gt;
                              &lt;li&gt;tc_old.color = 0x000000;&lt;/li&gt;
                            &lt;/ol&gt;
                        &lt;/ol&gt;
                    &lt;/ol&gt;
                &lt;/ol&gt;
              &lt;br/&gt;
              &lt;br/&gt;
              &lt;br/&gt;
              &lt;br/&gt;
              &lt;li&gt;&lt;span style=&quot;color:#5D7631; font-weight:bold;&quot;&gt;Functions:&lt;/span&gt; &amp;nbsp;&amp;nbsp; After our declarations above, we will start with our functions. I want to start from the simplest and then progress to the more advanced. At the same time, I would like to start with the general functions, the ones that affect many objects and move to the more particular functions, the ones that affect fewer objects.&lt;/li&gt;
              &lt;br/&gt;
                &lt;ol type=&quot;1&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Color Modification Function&lt;/span&gt;&lt;/li&gt;
                    &lt;ol type=&quot;a&quot;&gt;
                      &lt;li&gt;New Stroke Color&lt;/li&gt;
                        &lt;ol type=&quot;i&quot; style=&quot;margin-left:-25px;&quot;&gt;
                          &lt;li&gt;The first function we will try is the function that will change the colors of the buttons. To start this out, however, instead of trying to change all three colors for the stroke, the fill, and the text all at once, it&#39;s always better to do one thing at at time. Then, once you get that one thing to function, you can add additional features. Let&#39;s start with getting the stroke color for &lt;em&gt;ONE&lt;/em&gt; of the button movieclips to change.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function overIt(evt:MouseEvent):void{&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;btn_00.stroke.transform.colorTransform = sc_new;&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;That&#39;s very simple, but it won&#39;t work at all until we add a listener to call on this function when we &lt;em&gt;MOUSE_OVER&lt;/em&gt; the button.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;btn_00.addEventListener(MouseEvent.MOUSE_OVER, overIt);&lt;/li&gt;
                            &lt;/ol&gt;
                        &lt;/ol&gt;
                      &lt;li&gt;Multiple Button Color Change&lt;/li&gt;
                        &lt;ol type=&quot;i&quot;&gt;
                          &lt;li&gt;Now, when you mouse over the first button, the stroke should change colors. There is a problem with this, however: you should notice that inside the function that I used a &lt;em&gt;particular&lt;/em&gt; instance name, &lt;em&gt;btn_00&lt;/em&gt;. Therefore, this will only work for that one button. If you try mousing over any of the other buttons, it doesn&#39;t work at all on them.&lt;/li&gt;
                          &lt;li&gt;Using this logic, then, we&#39;d have to write a separate function for each button just to change the color of each button. That is too much typing to do something simple.&lt;/li&gt;
                          &lt;li&gt;This means, to be more efficient, we have to think of something that allows us to change the color of whatever button that the user happens to be mousing over &lt;em&gt;at any given time&lt;/em&gt;. How can we pinpoint a particular button, the button the user is mousing over at any given moment, without actually calling it by name? Because if we call it by name, that means we&#39;ll have to go through each one and call each one by name one at a time. This is not efficient at all.&lt;/li&gt;
                          &lt;li&gt;The answer is in the little variable in the &lt;em&gt;function declaration&lt;/em&gt;, &lt;em&gt;evt:MouseEvent&lt;/em&gt;. There, the term evt (an abbreviation of the word event), is actually a variable. As you should know, a variable is a data container. In this case, this variable contains a particular kind of data. The word after it &lt;em&gt;MouseEvent&lt;/em&gt; tells you what kind of data is contained within that variable, information about a event that occurs with the mouse. Whenever the user mouses over the button, information about the button and the event is stored in that variable.&lt;/li&gt;
                          &lt;li&gt;This means, that that variable, evt, contains information about whatever button that the user happens to be mousing over at any given time, and we can access that information.&lt;/li&gt;
                          &lt;li&gt;One of the properties of a MouseEvent is &lt;em&gt;currentTarget&lt;/em&gt;. The word target is whatever happens to be the target of the user&#39;s attention with the mouse. If the user is mousing over a button, that button is the currentTarget.&lt;/li&gt;
                          &lt;li&gt;Let&#39;s try something: let us put a &lt;em&gt;trace&lt;/em&gt; in our function and for the moment disable our statement by commenting it out. We are going to trace the &lt;em&gt;name of the current target&lt;/em&gt;.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function overIt(evt:MouseEvent):void{&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//btn_00.stroke.transform.colorTransform = sc_new;&lt;/li&gt;
                                  &lt;li&gt;trace(evt.currentTarget.name);&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Now, let&#39;s add &lt;em&gt;listeners&lt;/em&gt; for the remaining buttons:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;btn_00.addEventListener(MouseEvent.MOUSE_OVER, overIt);&lt;/li&gt;
                              &lt;li&gt;btn_01.addEventListener(MouseEvent.MOUSE_OVER, overIt);&lt;/li&gt;
                              &lt;li&gt;btn_02.addEventListener(MouseEvent.MOUSE_OVER, overIt);&lt;/li&gt;
                              &lt;li&gt;options.btn_03.addEventListener(MouseEvent.MOUSE_OVER, overIt);&lt;/li&gt;
                              &lt;li&gt;options.btn_04.addEventListener(MouseEvent.MOUSE_OVER, overIt);&lt;/li&gt;
                              &lt;li&gt;options.btn_05.addEventListener(MouseEvent.MOUSE_OVER, overIt);&lt;/li&gt;
                              &lt;li&gt;options.btn_06.addEventListener(MouseEvent.MOUSE_OVER, overIt);&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;You should see now, that when you test your movie you the name of the button you are mousing over, of &lt;em&gt;WHICHEVER&lt;/em&gt; button you are mousing over, pops up in the output window.&lt;/li&gt;
                          &lt;li&gt;So, let&#39;s apply that to the color change:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function overIt(evt:MouseEvent):void{&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;&lt;span style=&quot;color:#ff0000; text-decoration:line-through;&quot;&gt;btn_00&lt;/span&gt;evt.currentTarget.stroke.transform.colorTransform = sc_new;&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                        &lt;/ol&gt;
                      &lt;li&gt;New Fill Color&lt;/li&gt;
                        &lt;ol type=&quot;i&quot; style=&quot;margin-left:-25px;&quot;&gt;
                          &lt;li&gt;We can apply the same technique to making the color of the fill and text change:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function overIt(evt:MouseEvent):void{&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                &lt;li&gt;evt.currentTarget.stroke.transform.colorTransform = sc_new;&lt;/li&gt;
                                &lt;li&gt;evt.currentTarget.fill.transform.colorTransform = fc_new;&lt;/li&gt;
                                &lt;li&gt;evt.currentTarget.btn_txt.transform.colorTransform = tc_new;&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                        &lt;/ol&gt;
                      &lt;br/&gt;
                      &lt;li&gt;Original Stroke &amp; Fill Colors&lt;/li&gt;
                        &lt;ol type=&quot;i&quot;&gt;
                          &lt;li&gt;Now that we have changed the color, let&#39;s make it change back. We&#39;ll begin this by creating a new function:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function outIt(evt:MouseEvent):void{&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                &lt;li&gt;evt.currentTarget.stroke.transform.colorTransform = sc_old;&lt;/li&gt;
                                &lt;li&gt;evt.currentTarget.fill.transform.colorTransform = fc_old;&lt;/li&gt;
                                &lt;li&gt;evt.currentTarget.btn_txt.transform.colorTransform = tc_old;&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;And then the listeners:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;btn_00.addEventListener(MouseEvent.MOUSE_OUT, outIt);&lt;/li&gt;
                              &lt;li&gt;btn_01.addEventListener(MouseEvent.MOUSE_OUT, outIt);&lt;/li&gt;
                              &lt;li&gt;btn_02.addEventListener(MouseEvent.MOUSE_OUT, outIt);&lt;/li&gt;
                              &lt;li&gt;options.btn_03.addEventListener(MouseEvent.MOUSE_OUT, outIt);&lt;/li&gt;
                              &lt;li&gt;options.btn_04.addEventListener(MouseEvent.MOUSE_OUT, outIt);&lt;/li&gt;
                              &lt;li&gt;options.btn_05.addEventListener(MouseEvent.MOUSE_OUT, outIt);&lt;/li&gt;
                              &lt;li&gt;options.btn_06.addEventListener(MouseEvent.MOUSE_OVER, outIt);&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Great, now it changes back and forth easily from one set of colors back to the original set of colors. Great, now onto the next job, &lt;em&gt;opening and closing&lt;/em&gt; the &lt;em&gt;drop-down menu&lt;/em&gt;.&lt;/li&gt;
                        &lt;/ol&gt;
                    &lt;/ol&gt;
                  &lt;br/&gt;
                  &lt;br/&gt;
                  &lt;br/&gt;
                  &lt;li&gt;&lt;span style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Drop-Down Function&lt;/span&gt;&lt;/li&gt;
                    &lt;ol type=&quot;a&quot; style=&quot;margin-left:-25px;&quot;&gt;
                      &lt;li&gt;Close Menu&lt;/li&gt;
                        &lt;ol type=&quot;i&quot; style=&quot;margin-left:-25px;&quot;&gt;
                          &lt;li&gt;The first thing we need to do is close the menu so that when we first open our site it is &lt;em&gt;NOT&lt;/em&gt; opened with all of the buttons underneath it showing. We don&#39;t want those buttons showing until we mouse over the top button of the menu, the only one that should be showing. All the others, remember, are inside another movieclip that we named &lt;em&gt;options&lt;/em&gt;.&lt;/li&gt;
                          &lt;li&gt;That&#39;s very easy, at the very top of your script in the actions window, type the following line of code:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;this.options.visible = false;&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;And that&#39;s it for that. When you test the movie, you&#39;ll see those buttons are gone&lt;/li&gt;
                        &lt;/ol&gt;
                      &lt;li&gt;Open Menu&lt;/li&gt;
                        &lt;ol type=&quot;i&quot;&gt;
                          &lt;li&gt;But now, we want to make them appear when we mouse over the top button. That&#39;s easy enough. All we would have to do is create a function so that when you &lt;em&gt;MOUSE_OVER&lt;/em&gt; the top button of the menu, the other buttons below it become visible.&lt;/li&gt;
                          &lt;li&gt;If you recall, however, we already have a &lt;em&gt;listener&lt;/em&gt; for the &lt;em&gt;MOUSE_OVER&lt;/em&gt; event, and it calls our &lt;em&gt;first function&lt;/em&gt;, &lt;em&gt;overIt&lt;/em&gt;. That means we have to put this part within that function.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function overIt(evt:MouseEvent):void{&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                &lt;li&gt;evt.currentTarget.stroke.transform.colorTransform = sc_new;&lt;/li&gt;
                                &lt;li&gt;evt.currentTarget.fill.transform.colorTransform = fc_new;&lt;/li&gt;
                                &lt;li&gt;evt.currentTarget.btn_txt.transform.colorTransform = tc_new;&lt;/li&gt;
                                &lt;li style=&quot;font-weight:bold;&quot;&gt;this.options.visible = true;&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Aha! If you tested that, you found that it didn&#39;t quite work. It opens when you mouse over ANY of the buttons, not only the one with the menu. That&#39;s a problem. We ONLY want it to open when we mouse over the &lt;em&gt;top button with the menu&lt;/em&gt; and &lt;em&gt;ONLY&lt;/em&gt; that button, none of the others.&lt;/li&gt;
                          &lt;li&gt;To do that we&#39;ll need to learn about a new type of statement, a &lt;em&gt;conditional&lt;/em&gt; statement. We also call these &lt;em&gt;if/else&lt;/em&gt; statements.&lt;/li&gt;
                          &lt;li&gt;In an &lt;em&gt;If/else&lt;/em&gt; statement, you can pinpoint an action that you want to have happen only &lt;em&gt;IF&lt;/em&gt; a certain condition is met.&lt;/li&gt;
                          &lt;li&gt;Our condition is &lt;em&gt;if&lt;/em&gt; the user &lt;em&gt;mouses over&lt;/em&gt; the &lt;em&gt;top button&lt;/em&gt; of the menu. In my script, my top button has an &lt;em&gt;instance name&lt;/em&gt; of &lt;em&gt;btn_02&lt;/em&gt;, so that will be my condition:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function overIt(evt:MouseEvent):void{&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;evt.currentTarget.stroke.transform.colorTransform = sc_new;&lt;/li&gt;
                                  &lt;li&gt;evt.currentTarget.fill.transform.colorTransform = fc_new;&lt;/li&gt;
                                  &lt;li&gt;evt.currentTarget.btn_txt.transform.colorTransform = tc_new;&lt;/li&gt;
                                  &lt;li style=&quot;font-weight:bold;&quot;&gt;if (evt.currentTarget.name == &quot;btn_02&quot;) {&lt;/li&gt;
                                    &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                      &lt;li&gt;this.options.visible = true;&lt;/li&gt;
                                    &lt;/ol&gt;
                                  &lt;li style=&quot;font-weight:bold;&quot;&gt;}&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;To make certain that the menu stays open so long as we are mousing over &lt;em&gt;ANY&lt;/em&gt; of the buttons of the menu, not just the top one, but also the others below it, we must add some conditions to our statement.&lt;/li&gt;
                          &lt;li&gt;Not only do we want it to remain open &lt;em&gt;IF&lt;/em&gt; we mouse over the top button, but we want it to remain open if we mouse over the &lt;em&gt;top&lt;/em&gt; button &lt;em&gt;OR&lt;/em&gt; the &lt;em&gt;2nd&lt;/em&gt; button, &lt;em&gt;OR&lt;/em&gt; the &lt;em&gt;3rd&lt;/em&gt; button, &lt;em&gt;OR&lt;/em&gt; the &lt;em&gt;4th&lt;/em&gt; button. The way we includ the &lt;em&gt;OR OPTIONS&lt;/em&gt; is with the &lt;em&gt;||&lt;/em&gt; characters, which are located at the &lt;em&gt;SHIFT - \&lt;/em&gt;.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function overIt(evt:MouseEvent):void{&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;evt.currentTarget.stroke.transform.colorTransform = sc_new;&lt;/li&gt;
                                  &lt;li&gt;evt.currentTarget.fill.transform.colorTransform = fc_new;&lt;/li&gt;
                                  &lt;li&gt;evt.currentTarget.btn_txt.transform.colorTransform = tc_new;&lt;/li&gt;
                                  &lt;li&gt;if (evt.currentTarget.name == &quot;btn_02&quot; &lt;span style=&quot;font-weight:bold;&quot;&gt;|| evt.currentTarget.name == &quot;btn_03&quot; || evt.currentTarget.name == &quot;btn_04&quot; || evt.currentTarget.name == &quot;btn_05&quot;&lt;/span&gt;) {&lt;/li&gt;
                                    &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                      &lt;li&gt;this.options.visible = true;&lt;/li&gt;
                                    &lt;/ol&gt;
                                  &lt;li style=&quot;font-weight:bold;&quot;&gt;}&lt;/li&gt;
                                &lt;/ol&gt; 
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Now, the menu will remain open until you mouse over another button. This isn&#39;t a perfect solution, but it is fine for now. &lt;em&gt;I will give extra credit to anyone who comes up with a solution in which the menu closes when you mouse off any of the buttons&lt;/em&gt;, without having to wait until you mouse over another button before it closes. Don&#39;t spend a lot of time and don&#39;t write a lot of code to solve this. It isn&#39;t that important. Other things in this project are much more important.&lt;/li&gt;
                        &lt;/ol&gt;
                    &lt;/ol&gt;
                  &lt;br/&gt;
                  &lt;br/&gt;
                  &lt;br/&gt;
                  &lt;br/&gt;
                  &lt;li&gt;&lt;span style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Loading External Files&lt;/span&gt;&lt;/li&gt;
                    &lt;ol type=&quot;a&quot; style=&quot;margin-left:-25px;&quot;&gt;
                      &lt;li&gt;Loader Object&lt;/li&gt;
                        &lt;ol type=&quot;i&quot;&gt;
                          &lt;li&gt;We left off at the beginning one of our &lt;em&gt;objects&lt;/em&gt;, and that is the &lt;em&gt;Loader&lt;/em&gt; object. This is essential for placing external files within another main file.&lt;/li&gt;
                          &lt;li&gt;We have our &lt;em&gt;URLRequest&lt;/em&gt; objects that request a particular file. Now we need to place the requested file within an object that will actually do the job of loading it, of bringing it from outside the current (index) .swf file and preparing it for placement onto the current file. If you recall my gun analogy from class, the URLRequest is the external file, so it is like a bullet. The loader, then, is the gun that will deliver our bullet.&lt;/li&gt;
                          &lt;li&gt;The next two jobs then are to create the loader and then place the bullets inside our gun. Our gun, however, is a special sort of gun that can only hold and fire one bullet at a time. That means it is like most shotguns: we have to reload it with a new shell each time we shoot with it.&lt;/li&gt;
                          &lt;li&gt;First let&#39;s create the loader at the top, in the &lt;em&gt;declarations&lt;/em&gt; section of our code. We can place it beneath the array with the URLRequests:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;var urlArray:Array = new Array();&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;urlArray[0] = new URLRequest(&quot;bio.swf&quot;);&lt;/li&gt;
                                  &lt;li&gt;urlArray[1] = new URLRequest(&quot;art.swf&quot;);&lt;/li&gt;
                                  &lt;li&gt;urlArray[2] = ...etc...&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;br/&gt;
                              &lt;li style=&quot;font-weight:bold;&quot;&gt;var swfLoader:Loader = new Loader();&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Now, at the bottom, in the &lt;em&gt;functions&lt;/em&gt; section of our code, let&#39;s start with a new function for loading the external &lt;em&gt;.swf files&lt;/em&gt;.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function loadIt(evt:MouseEvent):void {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                &lt;br/&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Now, at the bottom, in the &lt;em&gt;functions&lt;/em&gt; section of our code, let&#39;s start with a new function for loading the external &lt;em&gt;.swf files&lt;/em&gt;.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function loadIt(evt:MouseEvent):void {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li style=&quot;font-weight:bold;&quot;&gt;swfLoader.load(urlArray[0]);&lt;/li&gt;
                                  &lt;li style=&quot;font-weight:bold;&quot;&gt;box_mc.addChild(swfLoader);&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Create a listener grouped at the &lt;em&gt;bottom&lt;/em&gt; with all of the other listeners. Since we are trying to load the &lt;em&gt;first item&lt;/em&gt; of our array, this means we want the listener to relate to the &lt;em&gt;first button&lt;/em&gt;.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;btn_00.addEventListener(MouseEvent.CLICK, loadIt);&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;This is very nice and all, but we have a similar problem that we did above when we wanted to change the colors of the different buttons. If you look in our function, you will see that it will only add the &lt;em&gt;first item of the array&lt;/em&gt;, and none of the others. If we followed this logic, as with the color function, we&#39;d have to write &lt;em&gt;one function for every button&lt;/em&gt;. That is terribly inefficient, and there is a better way.&lt;/li&gt;
                          &lt;li&gt;Once again, we need to rely on that little &lt;em&gt;variable&lt;/em&gt; named &lt;em&gt;evt&lt;/em&gt; within the parentheses in the &lt;em&gt;function declaration&lt;/em&gt;.&lt;/li&gt;
                          &lt;li&gt;Like we did with the colors, we&#39;ll use it together with the &lt;em&gt;currentTarget&lt;/em&gt; property:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function loadIt(evt:MouseEvent):void {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//swfLoader.load(urlArray[0]);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//box_mc.addChild(swfLoader);&lt;/li&gt;
                                  &lt;li&gt;trace(evt.currentTarget.name);&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Now, when you click on the first button, in the &lt;em&gt;output window&lt;/em&gt;, you&#39;ll see the name of the button. So, let&#39;s add the listeners for all of the other buttons:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;btn_00.addEventListener(MouseEvent.CLICK, loadIt);&lt;/li&gt;
                              &lt;li&gt;btn_01.addEventListener(MouseEvent.CLICK, loadIt);&lt;/li&gt;
                              &lt;li style=&quot;color:#ff0000; text-decoration:line-through;&quot;&gt;btn_02.addEventListener(MouseEvent.CLICK, loadIt);&lt;/li&gt;
                              &lt;li&gt;options.btn_03.addEventListener(MouseEvent.CLICK, loadIt);&lt;/li&gt;
                              &lt;li&gt;options.btn_04.addEventListener(MouseEvent.CLICK, loadIt);&lt;/li&gt;
                              &lt;li&gt;options.btn_05.addEventListener(MouseEvent.CLICK, loadIt);&lt;/li&gt;
                              &lt;li&gt;btn_06.addEventListener(MouseEvent.CLICK, loadIt);&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;Notice that I have a line through the listener for btn_02 (the third button). That is because it is the one with the drop-down menu. It doesn&#39;t load external files, so we don&#39;t need to include it in this function.&lt;/li&gt;
                          &lt;li&gt;Now, when you click on the individual buttons, you see their names pop up in the output window.&lt;/li&gt;
                          &lt;li&gt;Next, let&#39;s load a file, but to do so we&#39;ll have to learn a new type of statement. As above with the &lt;em&gt;drop-down menu&lt;/em&gt;, we have &lt;em&gt;conditions&lt;/em&gt;. In this case, we don&#39;t have only &lt;em&gt;ONE&lt;/em&gt; condition &lt;em&gt;OR&lt;/em&gt; another. No, in this case we have &lt;em&gt;MULTIPLE CONDITIONS&lt;/em&gt;.&lt;/li&gt;
                          &lt;li&gt;We could still use the &lt;em&gt;If/else&lt;/em&gt; statement, but when you have many conditions, it is better to use the &lt;em&gt;switch&lt;/em&gt; statement.&lt;/li&gt;
                          &lt;li&gt;In our situation, we have several buttons and each of those buttons loads a different file. &lt;em&gt;IF&lt;/em&gt; we mouse over one button, &lt;em&gt;THEN&lt;/em&gt; we must load a certain file. Otherwise, &lt;em&gt;IF&lt;/em&gt; we mouse over another button, &lt;em&gt;THEN&lt;/em&gt; we must load another file; and so on for several buttons.&lt;/li&gt;
                          &lt;li&gt;The variable, &lt;em&gt;evt&lt;/em&gt; allows us to &lt;em&gt;capture&lt;/em&gt; which button the user happens to be mousing over or clicking on at any given moment. Once again, this is very useful to us. This time, like before, we are going to &lt;em&gt;capture&lt;/em&gt; the &lt;em&gt;instance name&lt;/em&gt; of the button; but in addition, we are going to store it in a new variable within the function:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function loadIt(evt:MouseEvent):void {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li style=&quot;font-weight:bold;&quot;&gt;var btnName:String = evt.currentTarget.name;&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//swfLoader.load(urlArray[0]);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//box_mc.addChild(swfLoader);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//trace(evt.currentTarget.name);&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;With this variable, you will see that it contains the necessary information. If we put the variable &lt;em&gt;within the trace&lt;/em&gt; you will see that it traces the same info as before here: &lt;em&gt;trace(evt.currentTarget.name);&lt;/em&gt;&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function loadIt(evt:MouseEvent):void {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;var btnName:String = evt.currentTarget.name;&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//swfLoader.load(urlArray[0]);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//box_mc.addChild(swfLoader);&lt;/li&gt;
                                  &lt;li style=&quot;font-weight:bold;&quot;&gt;trace(btnName);&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;As you can see if you try that out, nothing has changed with the addition of that variable.&lt;/li&gt;
                          &lt;li&gt;Now, we can use that variable, &lt;em&gt;btnName&lt;/em&gt; to determine &lt;em&gt;which button&lt;/em&gt; the user happens to be mousing over. And then, once we determine which &lt;em&gt;case&lt;/em&gt; it is, we&#39;ll tell actionscript to load one file or another.&lt;/li&gt;
                          &lt;li&gt;In the &lt;em&gt;case&lt;/em&gt; of &lt;em&gt;btn_00&lt;/em&gt;, then Flash should load the &lt;em&gt;first file&lt;/em&gt;; in the &lt;em&gt;case&lt;/em&gt; of &lt;em&gt;btn_01&lt;/em&gt;, then Flash should load the &lt;em&gt;second file&lt;/em&gt;; and so on for all the files.&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function loadIt(evt:MouseEvent):void {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;var btnName:String = evt.currentTarget.name;&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//swfLoader.load(urlArray[0]);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//box_mc.addChild(swfLoader);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//trace(btnName);&lt;/li&gt;
                                  &lt;li style=&quot;font-weight:bold&quot;&gt;switch (btnName) {&lt;/li&gt;
                                    &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                      &lt;li style=&quot;font-weight:bold&quot;&gt;case &quot;btn_00&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;do something;&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;stop;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li style=&quot;font-weight:bold&quot;&gt;case &quot;btn_01&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;do something else;&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;stop;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li style=&quot;font-weight:bold&quot;&gt;case &quot;btn_03&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;do this other thing;&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;stop;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li style=&quot;font-weight:bold&quot;&gt;case &quot;btn_04&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;do yet another thing;&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;stop;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li style=&quot;font-weight:bold&quot;&gt;case &quot;btn_05&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;blah blah blah;&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;stop;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li style=&quot;font-weight:bold&quot;&gt;case &quot;btn_06&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;yadda yadda yadda;&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;stop;&lt;/li&gt;
                                        &lt;/ol&gt;
                                    &lt;/ol&gt;
                                  &lt;li style=&quot;font-weight:bold&quot;&gt;}&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;So, what we actually want to tell the &lt;em&gt;switch&lt;/em&gt; statement to do is to load different files depending on which button is clicked:&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function loadIt(evt:MouseEvent):void {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;var btnName:String = evt.currentTarget.name;&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//swfLoader.load(urlArray[0]);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//box_mc.addChild(swfLoader);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//trace(btnName);&lt;/li&gt;
                                  &lt;li&gt;switch (btnName) {&lt;/li&gt;
                                    &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                      &lt;li&gt;case &quot;btn_00&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;swfLoader.load(urlArray[0]);&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;box_mc.addChild(swfLoader);&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;break;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li&gt;case &quot;btn_01&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;swfLoader.load(urlArray[1]);&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;box_mc.addChild(swfLoader);&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;break;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li&gt;case &quot;btn_03&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;swfLoader.load(urlArray[2]);&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;box_mc.addChild(swfLoader);&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold&quot;&gt;break;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li&gt;...etc...&lt;/li&gt;
                                    &lt;/ol&gt;
                                  &lt;li style=&quot;font-weight:bold&quot;&gt;}&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;
                          &lt;li&gt;In addition, we want to make certain that the &lt;em&gt;drop-down&lt;/em&gt; menu closes when you click on any of the buttons that are within the menu. In my case, in the drop-down menu that I&#39;ve created here, that would be the &lt;em&gt;4th&lt;/em&gt;, &lt;em&gt;5th&lt;/em&gt;, and &lt;em&gt;6th&lt;/em&gt; buttons (&lt;em&gt;btn_03 - btn_05&lt;/em&gt;).&lt;/li&gt;
                          &lt;br/&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;function loadIt(evt:MouseEvent):void {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;var btnName:String = evt.currentTarget.name;&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//swfLoader.load(urlArray[0]);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//box_mc.addChild(swfLoader);&lt;/li&gt;
                                  &lt;li style=&quot;color:#999999;&quot;&gt;//trace(btnName);&lt;/li&gt;
                                  &lt;li&gt;switch (btnName) {&lt;/li&gt;
                                    &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                      &lt;li&gt;case &quot;btn_00&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li&gt;swfLoader.load(urlArray[0]);&lt;/li&gt;
                                          &lt;li&gt;box_mc.addChild(swfLoader);&lt;/li&gt;
                                          &lt;li&gt;break;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li&gt;case &quot;btn_01&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li&gt;swfLoader.load(urlArray[1]);&lt;/li&gt;
                                          &lt;li&gt;box_mc.addChild(swfLoader);&lt;/li&gt;
                                          &lt;li&gt;break;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li&gt;case &quot;btn_03&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li&gt;swfLoader.load(urlArray[2]);&lt;/li&gt;
                                          &lt;li&gt;box_mc.addChild(swfLoader);&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold;&quot;&gt;this.options.visible = false;&lt;/li&gt;
                                          &lt;li&gt;break;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li&gt;case &quot;btn_04&quot; :&lt;/li&gt;
                                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                          &lt;li&gt;swfLoader.load(urlArray[3]);&lt;/li&gt;
                                          &lt;li&gt;box_mc.addChild(swfLoader);&lt;/li&gt;
                                          &lt;li style=&quot;font-weight:bold;&quot;&gt;this.options.visible = false;&lt;/li&gt;
                                          &lt;li&gt;break;&lt;/li&gt;
                                        &lt;/ol&gt;
                                      &lt;li&gt;...etc...&lt;/li&gt;
                                    &lt;/ol&gt;
                                  &lt;li&gt;}&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;br/&gt;




                        &lt;/ol&gt;
                    &lt;/ol&gt;
                &lt;/ol&gt;
            &lt;/ol&gt;
          &lt;li&gt;&lt;em&gt;PART II&lt;/em&gt;&lt;/li&gt;
            &lt;ol type=&quot;A&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;color:#5D7631; font-weight:bold;&quot;&gt;Music:&lt;/span&gt; &amp;nbsp;&amp;nbsp; For the last part of this project, you will need to do two things: create what&#39;s known as a &lt;em&gt;toggle button&lt;/em&gt;, which is a button that has an &lt;em&gt;ON&lt;/em&gt; position and an &lt;em&gt;OFF&lt;/em&gt; position. When you click on it once it turns ON, and then when you click on it again, it turns OFF.&lt;/li&gt;
              &lt;ol type=&quot;1&quot;&gt;
                &lt;li&gt;&lt;span style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Toggle Button&lt;/span&gt;:&lt;/li&gt;
                  &lt;ol type=&quot;a&quot;&gt;
                    &lt;li&gt;As with the other buttons, this button will be a &lt;em&gt;nested&lt;/em&gt; set of movieclips. This simply means that you will have movieclips within movieclips.&lt;/li&gt;
                    &lt;li&gt;For example, perhaps you will have a shape that looks like a &lt;em&gt;speaker&lt;/em&gt; for your &lt;em&gt;ON&lt;/em&gt; position, and then a &lt;em&gt;red slash&lt;/em&gt; that appears over the speaker for your &lt;em&gt;OFF&lt;/em&gt; position.&lt;/li&gt;
                    &lt;li&gt;So, your first job is to draw a side-view of the way a speaker looks: ( http://www.tuaw.com/2007/09/12/access-your-macs-super-quiet-mode/ ). That is an example.&lt;/li&gt;
                    &lt;li&gt;Once you do that, convert it into a movieclip symbol.&lt;/li&gt;
                    &lt;li&gt;Next, draw a &lt;em&gt;diagonal red slash&lt;/em&gt; over the top of it and conver it into a movieclip as well.&lt;/li&gt;
                    &lt;li&gt;Both of these movieclips should have &lt;em&gt;instance names&lt;/em&gt;.&lt;/li&gt;
                    &lt;li&gt;The speaker I will call &lt;em&gt;sndON&lt;/em&gt;, and the slash I will call simply &lt;em&gt;sndOFF&lt;/em&gt;.&lt;/li&gt;
                    &lt;li&gt;Now place the red slash on top of the speaker if you haven&#39;t already.&lt;/li&gt;
                    &lt;li&gt;Select them both and convert them into another symbol named &lt;em&gt;sndBtn&lt;/em&gt;.&lt;/li&gt;
                    &lt;li&gt;Enter into edit mode for this new symbol and then select both objects.&lt;/li&gt;
                    &lt;li&gt;Right-click on your selection and select &lt;em&gt;distribute to layers&lt;/em&gt;.&lt;/li&gt;
                    &lt;li&gt;Delete the blank layer and exit edit mode.&lt;/li&gt;
                    &lt;li&gt;Give your symbol the instance name of &lt;em&gt;snd&lt;/em&gt;.&lt;/li&gt;
                  &lt;/ol&gt;
                &lt;br/&gt;
                &lt;li&gt;&lt;span style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Toggle Button Actions&lt;/span&gt;:&lt;/li&gt;
                  &lt;ol type=&quot;a&quot;&gt;
                    &lt;li&gt;This button is very similar to the drop-down menu: first we have to hide the &lt;em&gt;red slash&lt;/em&gt;. Therefore, at the very top of your code, on the 2nd line, type the following line of code:&lt;/li&gt;
                    &lt;br/&gt;
                      &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                        &lt;li&gt;this.snd.sndOFF.visible = false;&lt;/li&gt;
                      &lt;/ol&gt;
                    &lt;br/&gt;
                    &lt;li&gt;Since the &lt;em&gt;sndOFF&lt;/em&gt; movieclip, the one of the red slash is going to be &lt;em&gt;IN&lt;/em&gt;visible, the visibility is FALSE, then all the user will see is the speaker. This means that the movie will start off with the sound playing. The default is to have music. The user will have to turn it off if he/she wishes.&lt;/li&gt;
                    &lt;li&gt;Now, we need to create a function that switches the visibility of the slash from &lt;em&gt;false&lt;/em&gt; to &lt;em&gt;true&lt;/em&gt;. This will signify that the sound has &lt;em&gt;stopped&lt;/em&gt; and no longer playing because the speaker will have a &lt;em&gt;VISIBLE&lt;/em&gt; red slash over the speaker.&lt;/li&gt;
                    &lt;br/&gt;
                      &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                        &lt;li&gt;function sndOnOff(evt:MouseEvent):void {&lt;/li&gt;
                          &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                            &lt;li&gt;this.snd.sndOFF.visible = true;&lt;/li&gt;
                          &lt;/ol&gt;
                        &lt;li&gt;}&lt;/li&gt;
                      &lt;/ol&gt;
                    &lt;br/&gt;
                    &lt;li&gt;Following this, you will need to add the listener for the &lt;em&gt;snd&lt;/em&gt; movieclip:&lt;/li&gt;
                    &lt;br/&gt;
                      &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                        &lt;li&gt;snd.addEventListener(MouseEvent.CLICK, sndOnOff);&lt;/li&gt;
                      &lt;/ol&gt;
                    &lt;br/&gt;
                    &lt;li&gt;The problem with this function is that it only turns the sound &lt;em&gt;ON&lt;/em&gt;. It would be better if the function turned it both on &lt;em&gt;AND&lt;/em&gt; off. To do that we will need another &lt;em&gt;if/else&lt;/em&gt; statement. This statement will simply determine if the &lt;em&gt;red slash&lt;/em&gt; is visible or invisible. If it is visible, then the sound is &lt;em&gt;OFF&lt;/em&gt;; and if it is invisible, then the sound is &lt;em&gt;ON&lt;/em&gt;.&lt;/li&gt;
                    &lt;br/&gt;
                      &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                        &lt;li&gt;function sndOnOff(evt:MouseEvent):void {&lt;/li&gt;
                          &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                            &lt;li style=&quot;font-weight:bold;&quot;&gt;if(snd.sndOFF.visible == false) {&lt;/li&gt;
                              &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                &lt;li&gt;snd.sndOFF.visible = true;&lt;/li&gt;
                              &lt;/ol&gt;
                            &lt;li style=&quot;font-weight:bold;&quot;&gt;} else {&lt;/li&gt;
                              &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                &lt;li style=&quot;font-weight:bold;&quot;&gt;snd.sndOFF.visible = false;&lt;/li&gt;
                              &lt;/ol&gt;
                            &lt;li style=&quot;font-weight:bold;&quot;&gt;}&lt;/li&gt;
                          &lt;/ol&gt;
                        &lt;li&gt;}&lt;/li&gt;
                      &lt;/ol&gt;
                    &lt;/ol&gt;
                  &lt;br/&gt;
                  &lt;li&gt;&lt;span style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Music File&lt;/span&gt;:&lt;/li&gt;
                    &lt;ol type=&quot;a&quot;&gt;
                      &lt;li&gt;Now, in your main folder, create another folder named &lt;em&gt;music&lt;/em&gt;.&lt;/li&gt;
                      &lt;li&gt;Within that folder, you need to place a music file. This music file &lt;em&gt;MUST&lt;/em&gt; be an &lt;em&gt;.mp3&lt;/em&gt; file.&lt;/li&gt;
                    &lt;/ol&gt;
                  &lt;li&gt;&lt;span style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Music Actions&lt;/span&gt;:&lt;/li&gt;
                    &lt;ol type=&quot;a&quot;&gt;
                      &lt;li&gt;In order to have this button place music into your site, you will first need to &lt;em&gt;declare&lt;/em&gt; three objects. Therefore, scroll &lt;em&gt;UP&lt;/em&gt; to the &lt;em&gt;declarations&lt;/em&gt; section of your code at the top.&lt;/li&gt;
                      &lt;li&gt;The first object is the &lt;em&gt;sound object&lt;/em&gt; and it contains the music sound itself.&lt;/li&gt;
                      &lt;li&gt;The second object is the &lt;em&gt;sound channel object&lt;/em&gt; and it controls the behavior of the sound, whether it is playing or not.&lt;/li&gt;
                      &lt;li&gt;The third object is the &lt;em&gt;URLRequest object&lt;/em&gt;, which, like any of our other request objects, requests an &lt;em&gt;external&lt;/em&gt; file and prepares it for loading into the main .swf movie file.&lt;/li&gt;
                      &lt;br/&gt;
                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                          &lt;li&gt;var sndMus:Sound = new Sound();&lt;/li&gt;
                          &lt;li&gt;var sndChan:SoundChannel = new SoundChannel();&lt;/li&gt;
                          &lt;li&gt;var sndReq:URLRequest = new URLRequest(&quot;song.mp3&quot;);&lt;/li&gt;
                        &lt;/ol&gt;
                      &lt;br/&gt;
                      &lt;li&gt;Next, you have to load the requested file:&lt;/li&gt;
                      &lt;br/&gt;
                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                          &lt;li&gt;var sndMus:Sound = new Sound();&lt;/li&gt;
                          &lt;li&gt;var sndChan:SoundChannel = new SoundChannel();&lt;/li&gt;
                          &lt;li&gt;var sndReq:URLRequest = new URLRequest(&quot;song.mp3&quot;);&lt;/li&gt;
                          &lt;li style=&quot;font-weight:bold;&quot;&gt;sndMus.load(sndReq);&lt;/li&gt;
                        &lt;/ol&gt;
                      &lt;br/&gt;
                      &lt;li&gt;Now, you have to create a function to play the loaded file; but that doesn&#39;t make any sense: we already have a function that operates the button. We can just add some actions to that function:&lt;/li&gt;
                      &lt;br/&gt;
                        &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                          &lt;li&gt;function sndOnOff(evt:MouseEvent):void {&lt;/li&gt;
                            &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                              &lt;li&gt;if(snd.sndOFF.visible == false) {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;snd.sndOFF.visible = false;&lt;/li&gt;
                                  &lt;li style=&quot;font-weight:bold;&quot;&gt;sndChan = sndMus.play();&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;} else {&lt;/li&gt;
                                &lt;ol style=&quot;list-style:none; margin-left:-25px;&quot; class=&quot;tag&quot;&gt;
                                  &lt;li&gt;snd.sndOFF.visible = true;&lt;/li&gt;
                                  &lt;li style=&quot;font-weight:bold;&quot;&gt;sndChan.stop();&lt;/li&gt;
                                &lt;/ol&gt;
                              &lt;li&gt;}&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;li&gt;}&lt;/li&gt;
                        &lt;/ol&gt;
                    &lt;/ol&gt;
                &lt;/ol&gt;
            &lt;/ol&gt;
        &lt;/ol&gt;
   &lt;/ul&gt;
&lt;/ul&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/1375826849599896228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/08/hi-everyone-okay-everyone-here-we-go.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/1375826849599896228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/1375826849599896228'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/08/hi-everyone-okay-everyone-here-we-go.html' title='&lt;small&gt;Summer 2010 &lt;/small&gt;week 13:&lt;br&gt;—&lt;small&gt;8/2/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-4210107201607087848</id><published>2010-07-27T07:07:00.001-07:00</published><updated>2010-08-02T07:26:12.549-07:00</updated><title type='text'>Summer 2010 week 12:—7/26/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everyone,&lt;/p&gt;
&lt;p&gt;As you have seen from class this week, we are beginning our final project. This means that what we will be doing until the last class is revising our midterm projects and applying what we have learned since midterm to them.&lt;/p&gt;
&lt;p&gt;At this point in the term, I have shown you almost everything that I want you to know, save for one last item, which is how to attach music files to your Flash movie, and then how to stop and restart them. We will do this part next week for homework. In class for next week what we will be doing is simply working on your projects. I will go around and speak to you individually and speak to you about what needs to be done to bring them to the next level regarding both design and technical issues.&lt;/p&gt;
&lt;p&gt;For this week&#39;s homework, therefore, you will see a list of items that you need to have complete for your project when you give it to me in 2 weeks. You should do most of this, however, because as I mention above, I will be assigning the sound next week, and you&#39;ll need some time next week to complete that rather than working on revising the design of your projects and resolving technical issues.&lt;/p&gt;
&lt;p&gt;Carter-&lt;/p&gt;

&lt;br/&gt;
&lt;br/&gt;




&lt;ol type=&quot;I&quot;&gt;
  &lt;li&gt;&lt;em&gt;WEEK 11&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
    &lt;ol type=&quot;A&quot;&gt;
      &lt;li&gt;&lt;em&gt;Classwork (7/14)&lt;/em&gt;&lt;/li&gt;
        &lt;ul type=&quot;circle&quot;&gt;
          &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://dma-205.blogspot.com&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; &lt;em&gt;NO FILES&lt;/em&gt; from this week&#39;s class&lt;/li&gt;
        &lt;/ul&gt;
      &lt;li&gt;&lt;span style=&quot;font-variant:small-caps; font-weight:bold; font-size:12pt; text-decoration:underline;&quot;&gt;Homework:&lt;/span&gt;&lt;/li&gt;
        &lt;ul type=&quot;circle&quot;&gt;
          &lt;li&gt;&lt;span style=&quot;color:#5D7631; font-weight:bold;&quot;&gt;Exercise 1:&lt;/span&gt; &amp;nbsp;&amp;nbsp; Follow the following steps and make certain that you have &lt;em&gt;ALL&lt;/em&gt; of them complete for the final project due on the last day of class:&lt;/li&gt;
&lt;br/&gt;
            &lt;ol type=&quot;1&quot;&gt;
              &lt;lh style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Navigation Buttons and/or Links&lt;/lh&gt;
              &lt;li&gt;The primary navigation for your website should &lt;em&gt;ONLY&lt;/em&gt; be located in your &lt;em&gt;INDEX&lt;/em&gt; file. This means, &lt;em&gt;ALL YOUR BUTTONS&lt;/em&gt; should be there and &lt;em&gt;NOT&lt;/em&gt; in the other files. Many of you put the same buttons that you have in your index file in your other pages as well. This is incorrect.&lt;/li&gt;
              &lt;li&gt;Therefore, what you&#39;ll have to do is open up all your pages and make certain that there are no buttons in those other pages.&lt;/li&gt;
              &lt;li&gt;The exceptions to this are the &lt;em&gt;GALLERY pages&lt;/em&gt;. The gallery pages, remember, have image thumbnails that we used as buttons. Buttons like these for the gallery pages should remain. This is &lt;em&gt;secondary navigation&lt;/em&gt; and buttons for this sort of navigation can stay in the other pages; however, please delete any &lt;em&gt;primary navigation&lt;/em&gt; buttons from your content pages.&lt;/li&gt;
              &lt;li&gt;Now, go to your &lt;em&gt;index&lt;/em&gt; and delete your buttons there. You will have to &lt;em&gt;REPLACE&lt;/em&gt; them with &lt;em&gt;MovieClips&lt;/em&gt; like the ones we&#39;ve been working on in class that only &lt;em&gt;behave&lt;/em&gt; like buttons because of the ActionScript we have been using.&lt;/li&gt;
              &lt;li&gt;Remember, each part of these buttons, the stroke (if you have one) and the fill (if you have one) should be a separate movieclip within the main movieclip.&lt;/li&gt;
              &lt;li&gt;The text is also inside of the main movieclip, but recall, that &lt;em&gt;YOU DO NOT TYPE THE TEXT OUT&lt;/em&gt;. Rather, you use a &lt;em&gt;DYNAMIC TEXT BOX&lt;/em&gt; and place text there with code.&lt;/li&gt;
              &lt;li&gt;All navigation should be done with &lt;em&gt;MOVIECLIPS&lt;/em&gt; and &lt;em&gt;ACTIONSCRIPT&lt;/em&gt;. You will not use any button symbols at all.&lt;/li&gt;
              &lt;li&gt;This includes the &lt;em&gt;THUMBNAIL IMAGES&lt;/em&gt; in your gallery pages. These should also be &lt;em&gt;MOVIECLIPS&lt;/em&gt;. When you mouse over or click on these images, an outline should appear. If you need help with this part, I can provide it to you on Monday.&lt;/li&gt;
&lt;br/&gt;
              &lt;lh style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Pop-up Menus&lt;/lh&gt;
              &lt;li&gt;You will also need to use at least &lt;em&gt;ONE POP-UP MENU&lt;/em&gt;. This should used to reach your &lt;em&gt;gallery pages&lt;/em&gt;. Since you should already have 2 pages for your gallery, this is a perfect place for the pop-up menu to allow the user to select one page of images or the other page.&lt;/li&gt;
&lt;br/&gt;
              &lt;lh style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Gallery Pages&lt;/lh&gt;
              &lt;li&gt;Furthermore, you will need to &lt;em&gt;ADD&lt;/em&gt; another page of images for a total of &lt;em&gt;THREE GALLERY PAGES&lt;/em&gt;. There should be no less than 5 images per gallery page, for a total of &lt;em&gt;AT LEAST 15 IMAGES&lt;/em&gt;.&lt;/li&gt;
&lt;br/&gt;
              &lt;lh style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Title&lt;/lh&gt;
              &lt;li&gt;The title of the site should be in the index since it should be present throughout the site, no matter which page the user is looking at.&lt;/li&gt;
&lt;br/&gt;
              &lt;lh style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Sub-titles&lt;/lh&gt;
              &lt;li&gt;The subtitles for the site, or the names of the individual pages should be prominently positioned somewhere within the individual pages. The user should know &lt;em&gt;which page&lt;/em&gt; she or he is looking at at any given moment.&lt;/li&gt;
&lt;br/&gt;
              &lt;lh style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Text&lt;/lh&gt;
              &lt;li&gt;&lt;em&gt;DO NOT&lt;/em&gt; stretch text!! If you need to make text bigger or smaller, increase its font-size.&lt;/li&gt;
              &lt;li&gt;The paragraph text for any site is never more than 12pt. Do NOT center whole paragraphs and do NOT bold everything. Making text bold is reserved for those items you want to emphasize, and centering may be done for titles, or subtitles, not for entire paragraphs.&lt;/li&gt;
              &lt;li&gt;Captions should accompany all images unless it is just part of some design that you&#39;ve made.&lt;/li&gt;
              &lt;li&gt;Captions for the gallery images should include the name of the work of art and its date at the very least.&lt;/li&gt;
&lt;br/&gt;
              &lt;lh style=&quot;font-weight:bold; font-variant:small-caps; text-decoration:underline;&quot;&gt;Images&lt;/lh&gt;
              &lt;li&gt;There should be some sort of imagery on &lt;em&gt;ALL&lt;/em&gt; pages, including the bibliography.&lt;/li&gt;
            &lt;/ol&gt;
        &lt;/ul&gt;
    &lt;/ol&gt;
&lt;/ol&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/4210107201607087848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/07/hi-everyone-as-you-have-seen-from-class.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/4210107201607087848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/4210107201607087848'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/07/hi-everyone-as-you-have-seen-from-class.html' title='&lt;small&gt;Summer 2010 &lt;/small&gt;week 12:&lt;br&gt;—&lt;small&gt;7/26/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-7056386582122038473</id><published>2010-07-19T10:38:00.001-07:00</published><updated>2010-07-25T20:10:44.359-07:00</updated><title type='text'>Summer 2010 week 11:—7/19/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everybody,&lt;br/&gt;
&lt;p&gt;I&#39;m sorry that I wasn&#39;t in class today. I have been a bit ill all weekend since Friday, so I thought it better that I not go in to class today. However, it&#39;s nearing the end of the term, so we haven&#39;t any time to waste. Below you will see the steps that I want you to complete and bring to class next week &lt;em&gt;ALONG WITH THE HOMEWORK FOR THIS WEEK&lt;/em&gt;, so don&#39;t forget. &lt;em&gt;BOTH HOMEWORKS&lt;/em&gt; (last week&#39;s and this weeks)  &lt;em&gt;WILL BE DUE NEXT WEEK&lt;/em&gt;!!!&lt;/p&gt;


&lt;ol type=&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 10&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Syllabus&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/dma205_syllabus.pdf&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; class syllabus&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Classwork&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; No class files this week;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Homework&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;exercise 1:&lt;/strong&gt;&lt;/li&gt;
        &lt;ol type=&quot;a&quot;&gt;
          &lt;li&gt;Create a drop-down menu as we did last week in class. This time, however, put only 3 movie-clip buttons in the part that appears and disappears.&lt;/li&gt;
          &lt;li&gt;The &lt;em&gt;instance names&lt;/em&gt; for the 4 movieclips which function as buttons should be &lt;em&gt;btn_01&lt;/em&gt;, &lt;em&gt;btn_02&lt;/em&gt;, &lt;em&gt;btn_03&lt;/em&gt;, and&lt;em&gt;btn_04&lt;/em&gt;.&lt;/li&gt;
          &lt;li&gt;The &lt;em&gt;instance name&lt;/em&gt; of the movieclips which contains the 3 options should be &lt;em&gt;options&lt;/em&gt; .&lt;/li&gt;
          &lt;li&gt;This drop-down menu should function exactly the way they did in class last week. Also, make sure that, as per last week&#39;s homework, when you mouse off the menu, the menu options should disappear.&lt;/li&gt;
          &lt;li&gt;In addition, use an array to make the text show in the 4 movie-clips as instructed in last week&#39;s homework.&lt;/li&gt;
          &lt;li&gt;Create another array named &lt;em&gt;urlArray&lt;/em&gt;:&lt;/li&gt;
            &lt;ol style=&quot;list-style:none; margin-left:-20px;&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;font-size:10pt; font-family:Courier;&quot;&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;var&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;urlArray:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;Array&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#0000aa;&quot;&gt;new Array()&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
            &lt;/ol&gt;
          &lt;li&gt;Next, as indicated in last week&#39;s blog entry, below the previous code, we need to put data into the array. We call this process &lt;strong&gt;populating&lt;/strong&gt; 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, &lt;em&gt;MANY DATA ELEMENTS&lt;/em&gt;. Each of these data elements is indicated by a number, and the counting starts at &lt;em&gt;0&lt;/em&gt;:&lt;/li&gt;
            &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;urlArray&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;[0]&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#0000aa;&quot;&gt;new URLRequest&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#00aa00;&quot;&gt;&quot;http://dma-205.blogspot.com&quot;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;);&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;urlArray&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;[0]&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#0000aa;&quot;&gt;new URLRequest&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#00aa00;&quot;&gt;&quot;http://www.actionscript.org&quot;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;);&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;urlArray&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;[0]&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#0000aa;&quot;&gt;new URLRequest&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#00aa00;&quot;&gt;&quot;http://www.kirupa.com&quot;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;);&lt;/span&gt;&lt;/li&gt;
            &lt;/ol&gt;
          &lt;li&gt;Now, we have to modify the code that we created last week. As you may have noticed last week, the code is very, very long to do simple things. We have 2 functions for each of our buttons just to make the colors chane when we mouse-over them. It can be greatly simplified. In fact, all we really need is one function for that activity. What we are going to do is create 4 functions in total instead of 2 functions per button situation that we have now. The first two we&#39;ll work with are for the opening and closing of the menu:&lt;/li&gt;
            &lt;ol&gt;
              &lt;li&gt;Comment out all the &lt;em&gt;functions&lt;/em&gt; which pertain to the changing of the colors and the opening and closing of the menu. You should also comment out the &lt;em&gt;listeners&lt;/em&gt;. Do not delete these functions &amp; listeners, however, until you get the replacement functions working properly.&lt;/li&gt;
              &lt;li&gt;Create a new function and name it &lt;em&gt;menuOpen&lt;/em&gt;.&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;menuOpen (evt:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;):&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
                    &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                      &lt;li&gt;&amp;nbsp;&lt;/li&gt;
                    &lt;/ol&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;Next, create another function named&lt;em&gt;menuClose&lt;/em&gt;.&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;menuClose (evt:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;):&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
                    &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                      &lt;li&gt;&amp;nbsp;&lt;/li&gt;
                    &lt;/ol&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;Eventually, in a future class, we will combine these two functions using what&#39;s known as an &lt;em&gt;if/else&lt;/em&gt; statement, but for now we&#39;ll keep them as 2 separate function. Right now, however, they have nothing inside of them, so let&#39;s put some actions in the first one:&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;menuOpen (evt:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;):&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
                    &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                      &lt;li&gt;options.visible = true;&lt;/li&gt;
                    &lt;/ol&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;Now, modify the listener for the first button to read as follows:&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;btn_01.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;addEventListener&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MOUSE_OVER&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;, menuOpen);&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;Save and test your movie and it should open up.&lt;/li&gt;
              &lt;li&gt;Next, we will put some actions in the second function:&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;menuClose (evt:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;):&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
                    &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                      &lt;li&gt;options.visible = false;&lt;/li&gt;
                    &lt;/ol&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;And modify the mouse-over listener for the first button to read as follows:&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;btn_01.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;addEventListener&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MOUSE_OUT&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;, menuClose);&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;For now, we are not quite ready, however, for the above listener, so let&#39;s comment it out for the time being. We will come back to this later. This means that the menu will not yet close:&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;//btn_01.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;addEventListener&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;MOUSE_OUT&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;, menuClose);&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
            &lt;/ol&gt;
            &lt;br/&gt;
            &lt;br/&gt;
          &lt;li&gt;Next, we&#39;ll modify the code to make the buttons change colors again, but with much less code:&lt;/li&gt;
            &lt;ol&gt;
              &lt;li&gt;Create a new function and name it &lt;em&gt;colorFun_01&lt;/em&gt;. With this function we must do &lt;em&gt;TWO&lt;/em&gt; things: &lt;em&gt;(1)&lt;/em&gt; determine which button the user is mousing over, and &lt;em&gt;(2)&lt;/em&gt; make that button change its colors.&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;colorFun_01 (evt:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;):&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
                    &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;btn_01.stroke.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;colorTransform&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;= sColor_new;&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;btn_01.fill.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;colorTransform&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;= fColor_new;&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;btn_01.btn_txt.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;colorTransform&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;= sColor_new;&lt;/span&gt;&lt;/li&gt;
                    &lt;/ol&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;The problem with this function, of course, as some of you will probably have noticed is that it will only change one button, the one that is named using its instance name, &lt;em&gt;btn_01&lt;/em&gt;. Therefore, we have to figure out a way to select &lt;em&gt;whichever button we happen to mouse-over&lt;/em&gt;&lt;/li&gt;
              &lt;li&gt;The answer to this is contained within &lt;em&gt;evt&lt;/em&gt;. I mentioned it once before, but that little statement that is in between the parenthesis, is actually a variable and the type of information that will be contained within the variable: &lt;em&gt;(evt:MouseEvent)&lt;/em&gt;, where &lt;em&gt;evt&lt;/em&gt; is the variable name, and &lt;em&gt;MouseEvent&lt;/em&gt; is the type of information held within it.&lt;/li&gt;
              &lt;li&gt;If you look in your listeners, you will see that term again, &lt;em&gt;MouseEvent&lt;/em&gt;. When the listener calls on the function, the information of &lt;em&gt;WHICH&lt;/em&gt; particular button the user happens to be interacting with is being stored by that variable &lt;em&gt;evt&lt;/em&gt;. That means, that evt knows which button is currently being moused-over or clicked on or whatever &lt;em&gt;at any given moment&lt;/em&gt;.&lt;/li&gt;
              &lt;li&gt;This means that we do NOT have to be specific by naming a particular button&#39;s instance name, all we have to do is invoke &lt;em&gt;evt&lt;/em&gt;.&lt;/li&gt;
              &lt;li&gt;Now, because evt contains &lt;em&gt;MouseEvent&lt;/em&gt; information, it also possesses a new property. That property is known as &lt;em&gt;currentTarget&lt;/em&gt;, in which the current target is whatever is the movie-clip that the user happens to be interacting with at any given moment.&lt;/li&gt;
              &lt;li&gt;Let us test this, so first, temporarily comment out the code in the function:&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;colorFun_01 (evt:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;):&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
                    &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;//btn_01.stroke.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;colorTransform&lt;/span&gt; &lt;span style=&quot;color:#aaaaaa;&quot;&gt;= s_new;&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;//btn_01.fill.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;colorTransform&lt;/span&gt; &lt;span style=&quot;color:#aaaaaa;&quot;&gt;= f_new;&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;//btn_01.btn_txt.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;colorTransform&lt;/span&gt; &lt;span style=&quot;color:#aaaaaa;&quot;&gt;= s_new;&lt;/span&gt;&lt;/li&gt;
                    &lt;/ol&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;Now, add the following line of code:&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;colorFun_01 (evt:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;):&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
                    &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;trace&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(evt);&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;//btn_01.stroke.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;colorTransform&lt;/span&gt; &lt;span style=&quot;color:#aaaaaa;&quot;&gt;= s_new;&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;//btn_01.fill.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;colorTransform&lt;/span&gt; &lt;span style=&quot;color:#aaaaaa;&quot;&gt;= f_new;&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;//btn_01.btn_txt.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;colorTransform&lt;/span&gt; &lt;span style=&quot;color:#aaaaaa;&quot;&gt;= s_new;&lt;/span&gt;&lt;/li&gt;
                    &lt;/ol&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;Next, modify your listener for the first movieclip button to call this function instead of the old color change function.&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;btn_01.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;addEventListener&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MOUSE_OVER&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;, colorFun_01);&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;Save and test your movie.&lt;/li&gt;
              &lt;li&gt;Mouse-over on your button and look at your output window. If you don&#39;t have any errors, what it will do is tell you something about a movieclip.&lt;/li&gt;
              &lt;li&gt;Now, let&#39;s add a name to that movieclip.&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;colorFun_01 (evt:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;):&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
                    &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;trace&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(evt.currentTarget.name);&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;//btn_01.stroke.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;colorTransform&lt;/span&gt; &lt;span style=&quot;color:#aaaaaa;&quot;&gt;= s_new;&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;//btn_01.fill.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;colorTransform&lt;/span&gt; &lt;span style=&quot;color:#aaaaaa;&quot;&gt;= f_new;&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;//btn_01.btn_txt.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#aaaaaa;&quot;&gt;colorTransform&lt;/span&gt; &lt;span style=&quot;color:#aaaaaa;&quot;&gt;= s_new;&lt;/span&gt;&lt;/li&gt;
                    &lt;/ol&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;Save and test the movie again. Now, when you click on the button, you should see the instance name of it inside the output window.&lt;/li&gt;
              &lt;li&gt;Modify all the listeners that pertain to the &lt;em&gt;old color change functions&lt;/em&gt; for the &lt;em&gt;MOUSE_OVER&lt;/em&gt; actions. When you mouse over each of them, they the output should indicate which one you have moused-over by its instance name.&lt;/li&gt;
              &lt;li&gt;This tells us for certain that, instead of typing a particular instance name, we can just use the generic term, &lt;em&gt;currentTarget&lt;/em&gt; after the variable name, &lt;em&gt;evt&lt;/em&gt;. Let us now do that. First, comment out the &lt;em&gt;trace&lt;/em&gt; and remove the comments from the other lines of code, modifying the instance name to add &lt;em&gt;evt.currentTarget&lt;/em&gt; instead.&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;colorFun_01 (evt:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;):&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
                    &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;evt.currentTarget&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;.stroke.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;colorTransform&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;= s_new;&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;evt.currentTarget&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;.fill.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;colorTransform&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;= f_new;&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;evt.currentTarget&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;.btn_txt.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;colorTransform&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;= s_new;&lt;/span&gt;&lt;/li&gt;
                    &lt;/ol&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;Good, now that that works, let&#39;s see if we can create the function to make the color change back:&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;colorFun_02 (evt:&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;):&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
                    &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;evt.currentTarget&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;.stroke.&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;colorTransform&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;= s_old;&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;evt.currentTarget&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;.fill.&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;colorTransform&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;= f_old;&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;evt.currentTarget&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;.btn_txt.&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;transform&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;colorTransform&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;= s_old;&lt;/span&gt;&lt;/li&gt;
                    &lt;/ol&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;Do not forget to modify the listeners for &lt;em&gt;all the movieclips&lt;/em&gt; so that they call this function when the user &lt;em&gt;mouses-off&lt;/em&gt; of them.&lt;/li&gt;
            &lt;/ol&gt;
            &lt;br/&gt;
            &lt;br/&gt;
        &lt;/ol&gt;
      &lt;li&gt;&lt;strong&gt;exercise 2:&lt;/strong&gt;&lt;/li&gt;
        &lt;ol type=&quot;a&quot;&gt;
          &lt;li&gt;Next, let&#39;s make the links in the drop-down menu active:&lt;/li&gt;
            &lt;ol type=&quot;1&quot;&gt;
              &lt;li&gt;To start, then, we&#39;ll put to use that &lt;em&gt;new array&lt;/em&gt; that we created in the beginning of this homework:&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;font-size:10pt; font-family:Courier;&quot;&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;var&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;urlArray:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;Array&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#0000aa;&quot;&gt;new Array()&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
                    &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;urlArray&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;[0]&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#0000aa;&quot;&gt;new URLRequest&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#00aa00;&quot;&gt;&quot;http://dma-205.blogspot.com&quot;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;);&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;urlArray&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;[0]&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#0000aa;&quot;&gt;new URLRequest&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#00aa00;&quot;&gt;&quot;http://www.actionscript.org&quot;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;);&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;urlArray&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;[0]&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#0000aa;&quot;&gt;new URLRequest&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#00aa00;&quot;&gt;&quot;http://www.kirupa.com&quot;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;);&lt;/span&gt;&lt;/li&gt;
                    &lt;/ol&gt;
                &lt;/ol&gt;
              &lt;li&gt;Let&#39;s start putting these URLs to work for us by creating a new function called &lt;em&gt;linkfun&lt;/em&gt;:&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;linkFun(evt:&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;):&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
                    &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
                    &lt;/ol&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;Next, inside that function, first, I&#39;d like to create a variable to store the name of the particular movieclip that is moused-over or mouse-out of at any given moment:&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;linkFun(evt:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;):&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
                    &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;var mcName:String = evt.currentTarget.name;&lt;/span&gt;&lt;/li&gt;
                    &lt;/ol&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;We are going to use this string inside what&#39;s called a &lt;em&gt;switch&lt;/em&gt; statement. This statement allows a script to select from several possibilities, or &lt;em&gt;cases&lt;/em&gt;. Think of it this way. We have &lt;em&gt;3 buttons&lt;/em&gt;, and therefore there are &lt;em&gt;3 possible outcomes&lt;/em&gt;. The user could click on one of the buttons, or the user could click on one of the others. Depending on which button the user actually clicks on, &lt;em&gt;3 different things could happen&lt;/em&gt;. &lt;em&gt;THOSE ARE OUR 3 CASES&lt;/em&gt;. The way we are going to tell Flash to determine if it&#39;s one movieclip or another is by its instance name. Recall, the instance name is going to be stored in our new variable, whichever movieclip button the user happens to have moused-over:&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;linkFun(evt:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;):&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
                    &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;var&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;mcName:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;String&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;= evt.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;currentTarget&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;switch(mcName) {&lt;/span&gt;&lt;/li&gt;
                        &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                          &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;case &quot;btn_02&quot; :&lt;/span&gt;&lt;/li&gt;
                            &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                              &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;do something;&lt;/span&gt;&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;case &quot;btn_03&quot; :&lt;/span&gt;&lt;/li&gt;
                            &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                              &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;do something;&lt;/span&gt;&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;case &quot;btn_04&quot; :&lt;/span&gt;&lt;/li&gt;
                            &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                              &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;do something;&lt;/span&gt;&lt;/li&gt;
                            &lt;/ol&gt;
                        &lt;/ol&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
                    &lt;/ol&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;The way the above statement works is this: recall, &lt;em&gt;mcName&lt;/em&gt; contains the name of the particular movieclip that the user mouses-over. Actionscript is then going to look at each of the 3 cases. It will then &lt;em&gt;compare&lt;/em&gt; the name that is inside &lt;em&gt;mcName&lt;/em&gt; with the &lt;em&gt;strings&lt;/em&gt; that you see there in each case, &lt;em&gt;&quot;btn_02&quot;&lt;/em&gt;, &lt;em&gt;&quot;btn_03&quot;&lt;/em&gt;, or &lt;em&gt;&quot;btn_04&quot;&lt;/em&gt;. Whichever one matches, the script then does what &lt;em&gt;the next line tells it to do&lt;/em&gt;.&lt;/li&gt;
              &lt;li&gt;What we want it to do is to &lt;em&gt;open up a new web-page&lt;/em&gt;:&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;linkFun(evt:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;):&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
                    &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;var&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;mcName:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;String&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;= evt.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;currentTarget&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;switch&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(mcName) {&lt;/span&gt;&lt;/li&gt;
                        &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                          &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color:#00aa00;&quot;&gt;&quot;btn_02&quot;&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;:&lt;/span&gt;&lt;/li&gt;
                            &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                              &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;navigateToURL(new web address);&lt;/span&gt;&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color:#00aa00;&quot;&gt;&quot;btn_03&quot;&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;:&lt;/span&gt;&lt;/li&gt;
                            &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                              &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;navigateToURL(new web address);&lt;/span&gt;&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color:#00aa00;&quot;&gt;&quot;btn_04&quot;&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;:&lt;/span&gt;&lt;/li&gt;
                            &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                              &lt;li&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;navigateToURL(&quot;new web address&quot;);&lt;/span&gt;&lt;/li&gt;
                            &lt;/ol&gt;
                        &lt;/ol&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
                    &lt;/ol&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;Obviously, we couldn&#39;t just type &lt;em&gt;do something&lt;/em&gt;, so we replaced it with the action &lt;em&gt;navigateToURL();&lt;/em&gt;&lt;/li&gt;
              &lt;li&gt;What we didn&#39;t do is type in a particular web address. We could do that, but it&#39;d have to be a string like so: &lt;span style=&quot;color:#00aa00;&quot;&gt;&quot;http://www.google.com&quot;&lt;/span&gt;.&lt;/li&gt;
              &lt;li&gt;However, we do not have to do that. We have already created the &lt;em&gt;array&lt;/em&gt; above, and inside each numbered element of the array, is a particular &lt;em&gt;URL address&lt;/em&gt;. Therefore, all we really have to do is type the &lt;em&gt;NAME OF THE ARRAY&lt;/em&gt; followed by its &lt;em&gt;INDEX NUMBER&lt;/em&gt;:&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;function&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;linkFun(evt:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;):&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
                    &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;var&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;mcName:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;String&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;= evt.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;currentTarget&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;switch&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(mcName) {&lt;/span&gt;&lt;/li&gt;
                        &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                          &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color:#00aa00;&quot;&gt;&quot;btn_02&quot;&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;:&lt;/span&gt;&lt;/li&gt;
                            &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                              &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;navigateToURL&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;urlArray[0]&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;);&lt;/span&gt;&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color:#00aa00;&quot;&gt;&quot;btn_03&quot;&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;:&lt;/span&gt;&lt;/li&gt;
                            &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                              &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;navigateToURL&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;urlArray[1]&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;);&lt;/span&gt;&lt;/li&gt;
                            &lt;/ol&gt;
                          &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color:#00aa00;&quot;&gt;&quot;btn_04&quot;&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;:&lt;/span&gt;&lt;/li&gt;
                            &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                              &lt;li&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;navigateToURL&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;urlArray[2]&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;);&lt;/span&gt;&lt;/li&gt;
                            &lt;/ol&gt;
                        &lt;/ol&gt;
                      &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
                    &lt;/ol&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;The last step is to type the three &lt;em&gt;listeners&lt;/em&gt; for the three &lt;em&gt;movieclips&lt;/em&gt;, each which corresponds to a different &lt;em&gt;case&lt;/em&gt;:&lt;/li&gt;
                &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier; margin-left:-20px;&quot;&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;options.btn_02.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;addEventListener&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;CLICK&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;, linkFun);&lt;/span&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;options.btn_03.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;addEventListener&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;CLICK&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;, linkFun);&lt;/span&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;options.btn_04.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;addEventListener&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;MouseEvent&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;CLICK&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;, linkFun);&lt;/span&gt;&lt;/li&gt;
                &lt;/ol&gt;
              &lt;li&gt;Next, go to the &lt;em&gt;FILE&lt;/em&gt; menu, and select &lt;em&gt;Publish Settings&lt;/em&gt;.&lt;/li&gt;
              &lt;li&gt;Make certain that both &lt;em&gt;.swf&lt;/em&gt; and &lt;em&gt;.html&lt;/em&gt; are selected.&lt;/li&gt;
              &lt;li&gt;Then at the bottom, click &lt;em&gt;publish&lt;/em&gt; and okay.&lt;/li&gt;
              &lt;li&gt;Open up your folder, and notice that you have an &lt;em&gt;.html&lt;/em&gt; file there. Open it up in your browser and try it out.&lt;/li&gt;
              &lt;li&gt;The links may not function as you may get a notice in your browser saying that it is a potentially unsafe action. That is okay. We will deal with that another time. Just click okay as that tells us that it is at least trying to open up an outside web-site.&lt;/li&gt;

            &lt;/ol&gt;

            &lt;br/&gt;
            &lt;br/&gt;
        &lt;/ol&gt;
      &lt;li&gt;&lt;strong&gt;exercise 3: EXTRA CREDIT&lt;/strong&gt;&lt;/li&gt;
        &lt;ol type=&quot;a&quot;&gt;
          &lt;li&gt;Instead of linking to other web-sites, try to get other &lt;em&gt;.swf files&lt;/em&gt; to load into the page when you click onto the buttons in the pull-down menu.&lt;/li&gt;
        &lt;/ol&gt;
    &lt;/ul&gt;
&lt;/ol&gt;
            &lt;br/&gt;
            &lt;br/&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/7056386582122038473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/07/hi-everybody-im-sorry-that-i-wasnt-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/7056386582122038473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/7056386582122038473'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/07/hi-everybody-im-sorry-that-i-wasnt-in.html' title='&lt;small&gt;Summer 2010 &lt;/small&gt;week 11:&lt;br&gt;—&lt;small&gt;7/19/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-8887603712962363457</id><published>2010-07-13T15:40:00.001-07:00</published><updated>2010-07-19T10:31:01.286-07:00</updated><title type='text'>Summer 2010 week 10:—7/12/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everybody,&lt;br/&gt;
&lt;p&gt;This week&#39;s class was the tenth one of the term. There are 4 more classes until it&#39;s all over. Please make the most of the time that you have remaining. Sometime, during this week before our next class, I&#39;ll be emailing you detailed evaluations of your midterm projects. Also, I&#39;ll be putting up here the requirements for the final project due in on the last day of class.&lt;/p&gt;
&lt;p&gt;Have a good week. Carter-&lt;/p&gt;


&lt;ol&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 10&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Syllabus&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/dma205_syllabus.pdf&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; class syllabus&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Classwork&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/week10/dma205_wk10_su10.docx&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; This is this week&#39;s class file&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Homework&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;exercise 1:&lt;/strong&gt;&lt;/li&gt;
        &lt;p&gt;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.&lt;/p&gt;
      &lt;/li&gt;
&lt;br/&gt;
      &lt;li&gt;&lt;strong&gt;exercise 2:&lt;/strong&gt;&lt;/li&gt;
        &lt;ol type=&quot;a&quot;&gt;
          &lt;lh style=&quot;font-variant:small-caps; font-weight:bold; font-size:10pt;&quot;&gt;Once you get all of your code functioning above, you&#39;re going to make some modifications.&lt;/lh&gt;
          &lt;li&gt;Instead of the way I instructed you to type the text into the buttons in class, you&#39;re going to use what is known as an &lt;strong&gt;array&lt;/strong&gt;. First, delete the text and the quotes that you typed in class. Leave it blank following the &lt;strong&gt;equal sign (=)&lt;/strong&gt; for the moment until I tell you what to type there.&lt;/li&gt;
          &lt;li&gt;Next, type the following at the very top of your code to create the array object:&lt;/li&gt;
            &lt;ol style=&quot;list-style:none;&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;font-size:10pt; font-family:Courier;&quot;&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;var&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;txtArray:&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;Array&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#0000aa;&quot;&gt;new Array()&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
            &lt;/ol&gt;
          &lt;li&gt;Next, below that, we need to put data into the array. We call this process &lt;strong&gt;populating&lt;/strong&gt; 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&lt;/li&gt;
            &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier;&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;txtArray&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;[0]&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#00aa00;&quot;&gt;&quot;MENU&quot;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;;&lt;/span&gt;&lt;br/&gt;
              &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;txtArray&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;[1]&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#00aa00;&quot;&gt;&quot;one&quot;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;;&lt;/span&gt;&lt;br/&gt;
              &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;txtArray&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;[2]&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#00aa00;&quot;&gt;&quot;two&quot;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;;&lt;/span&gt;&lt;br/&gt;
              &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;txtArray&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;[3]&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#00aa00;&quot;&gt;&quot;three&quot;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;;&lt;/span&gt;&lt;br/&gt;
              &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;txtArray&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;[4]&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#00aa00;&quot;&gt;&quot;four&quot;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
            &lt;/ol&gt;
          &lt;li&gt;Now, we have to assign the individual &lt;strong&gt;dynamic text boxes&lt;/strong&gt; that are inside our movieclips the text that is inside the array elements:&lt;br/&gt;
            &lt;ol style=&quot;list-style:none; font-size:10pt; font-family:Courier;&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;btn_01.btn_txt.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;text&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;= txtArray&lt;/span&gt;&lt;span style=&quot;color:#00aa00;&quot;&gt;[0]&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;;&lt;/span&gt;&lt;br/&gt;
              &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;btn_01.btn_txt.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;text&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;= txtArray&lt;/span&gt;&lt;span style=&quot;color:#00aa00;&quot;&gt;[1]&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;;&lt;/span&gt;&lt;br/&gt;
              &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;btn_01.btn_txt.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;text&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;= txtArray&lt;/span&gt;&lt;span style=&quot;color:#00aa00;&quot;&gt;[2]&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;;&lt;/span&gt;&lt;br/&gt;
              &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;btn_01.btn_txt.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;text&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;= txtArray&lt;/span&gt;&lt;span style=&quot;color:#00aa00;&quot;&gt;[3]&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;;&lt;/span&gt;&lt;br/&gt;
              &lt;li&gt;&lt;span style=&quot;color:#000000;&quot;&gt;btn_01.btn_txt.&lt;/span&gt;&lt;span style=&quot;color:#0000aa;&quot;&gt;text&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;= txtArray&lt;/span&gt;&lt;span style=&quot;color:#00aa00;&quot;&gt;[4]&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;;&lt;/span&gt;&lt;/li&gt;
            &lt;/ol&gt;
        &lt;/ol&gt;
      &lt;li&gt;&lt;strong&gt;exercise 3:&lt;/strong&gt;&lt;/li&gt;
        &lt;ol type=&quot;a&quot;&gt;
          &lt;li&gt;Attempt to get the 4 options to disappear again &lt;strong&gt;ONLY&lt;/strong&gt;whenever you do one of these 2 things:&lt;/li&gt;
            &lt;ul&gt;
              &lt;li&gt;click on one of the buttons; or&lt;/li&gt; 
              &lt;li&gt;mouse outside of the 4 options&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/ol&gt;

    &lt;/ul&gt;
&lt;/ol&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/8887603712962363457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/07/hi-everybody-this-weeks-class-was-tenth.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/8887603712962363457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/8887603712962363457'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/07/hi-everybody-this-weeks-class-was-tenth.html' title='&lt;small&gt;Summer 2010 &lt;/small&gt;week 10:&lt;br&gt;—&lt;small&gt;7/12/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-6972484607418849722</id><published>2010-06-29T06:17:00.000-07:00</published><updated>2010-07-01T08:06:14.145-07:00</updated><title type='text'>Summer 2010 week 8:—6/28/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everybody,&lt;br/&gt;
&lt;p&gt;Have a good week. We are more than halfway through the term now. Try not to melt in the heat and humidity before the end of summer.&lt;/p&gt;


&lt;ol&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 8&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Syllabus&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/dma205_syllabus.pdf&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; class syllabus&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Classwork&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/week8/dma205_wk8_su10.zip&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; These are this week&#39;s class files;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Homework&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;exercise 1:&lt;/strong&gt;
        &lt;p&gt;Complete the classfile that we were working on before I sent you home by using ActionScript to change the color of the rectangle.&lt;/p&gt;
      &lt;/li&gt;
&lt;br/&gt;
      &lt;li&gt;&lt;strong&gt;exercise 2:&lt;/strong&gt;
        &lt;ol type=&quot;a&quot;&gt;
          &lt;li&gt;In a new file, create a rectangle &lt;strong&gt;WITHOUT&lt;/strong&gt; a stroke and convert it into a movieclip.&lt;/li&gt;
          &lt;li&gt;Using what you know from what we did in class this week, create a &lt;strong&gt;function&lt;/strong&gt; that is triggered when the user &lt;strong&gt;mouses over&lt;/strong&gt; this movieclip.&lt;/li&gt;
          &lt;li&gt;The movieclip should &lt;strong&gt;change colors&lt;/strong&gt; and have a &lt;strong&gt;reduction in height&lt;/strong&gt; when the user mouses over it.&lt;/li&gt;
          &lt;li&gt;You should also create a 2nd function that is triggered when the user &lt;strong&gt;mouses off&lt;/strong&gt; of this movieclip.&lt;/li&gt;
          &lt;li&gt;In this function, the movieclip should &lt;strong&gt;change back&lt;/strong&gt; to its original color and have a &lt;strong&gt;return&lt;/strong&gt; to its original height when the user mouses off of it.&lt;/li&gt;
        &lt;/ol&gt;
    &lt;/ul&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/6972484607418849722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/06/hi-everybody-have-good-week.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/6972484607418849722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/6972484607418849722'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/06/hi-everybody-have-good-week.html' title='&lt;small&gt;Summer 2010 &lt;/small&gt;week 8:&lt;br&gt;—&lt;small&gt;6/28/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-3910327552369510732</id><published>2010-06-21T20:06:00.000-07:00</published><updated>2010-06-28T06:10:49.122-07:00</updated><title type='text'>Summer 2010 week 7:—6/21/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everybody,&lt;br/&gt;
So you can all breathe a sigh of relief: you got through the midterm push. Whether you did well at midterm or poorly is irrelevant at this point. You should behave as if you&#39;re starting fresh, almost as if we&#39;re starting a new semester. What you should all consider, however, is &lt;em&gt;HOW&lt;/em&gt; you want to start off the rest of the term next week. &lt;em&gt;IF YOU REALLY WANT TO START OFF GOOD, THEN MAKE SURE YOU COME TO CLASS NEXT WEEK WITH YOUR PROJECTS WORKING PERFECTLY AND LOOKING GREAT!&lt;/em&gt;. So that means that some of you will have to push a bit more this week to get your projects working. We are going to continue, but with the same projects and with MANY modifications for the final.&lt;/p&gt;


&lt;ol&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 7&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Homework 1:&lt;/em&gt;
&lt;br/&gt;Take a look at your projects and do as much as possible to improve them by next week. We will continue working on these projects for the Final, so you don&#39;t want to start out the rest of the term behind by having to fix what you have and then implementing all the many new items of ActionScript that we will be adding over the coming weeks.&lt;/li&gt;
  &lt;li&gt;&lt;em&gt;Homework 2:&lt;/em&gt;
&lt;br/&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/week7/dma205_mtQuiz.pdf&quot;&gt;&lt;strong&gt;LINK&lt;/strong&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp; You also need to complete the classwork quiz that we did today if you weren&#39;t able to in class.&lt;/li&gt;
&lt;/ol&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/3910327552369510732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/06/hi-everybody-so-you-can-all-breathe.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/3910327552369510732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/3910327552369510732'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/06/hi-everybody-so-you-can-all-breathe.html' title='&lt;small&gt;Summer 2010 &lt;/small&gt;week 7:&lt;br&gt;—&lt;small&gt;6/21/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-2275000063007106774</id><published>2010-06-15T06:47:00.001-07:00</published><updated>2010-06-15T08:31:35.694-07:00</updated><title type='text'>Summer 2010 week 6:—6/14/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everybody,&lt;br/&gt;
&lt;p&gt;Okay, less than one more week to go before you must have your mid-term projects completed to give to me next Monday. For a few of you, I&#39;m rather comfortable in the states that your projects are in; for most of you, however, I am seriously concerned.&lt;/p&gt;
&lt;p&gt;As is always the case, if you do not do your homework, it comes back to you in the end; and here we are nearing the end, and as I saw in class Monday, a number of you still seem to have no idea what you&#39;re doing. Doing homework does three things:
  &lt;ol type=&quot;1&quot;&gt;
    &lt;li&gt;It gives you practice,&lt;/li&gt;
    &lt;li&gt;Prepares you for the mid-term and final projects, and&lt;/li&gt;
    &lt;li&gt;Shows you where your weak points lie, and therefore for what you require extra help.&lt;/li&gt;
  &lt;/ol&gt;
I wonder why none of you have asked me for help before yesterday. There are others of you who seem to understand, more or less, but who just hadn&#39;t done anything. Both cases are sad.&lt;/p&gt;
&lt;p&gt;For all of you in particular who didn&#39;t have much to show me yesterday (but this is for EVERYONE), I highly recommend that you find me this week and show me your work to get my input one last time before you give me your project on Monday. I say this because &lt;em&gt;&lt;strong&gt;DESIGN IS 30% OF THE GRADE&lt;/strong&gt;&lt;/em&gt;, not just if it functions properly.&lt;/p&gt;

&lt;p&gt;Nonetheless, the most important part of this project is to &lt;em&gt;&lt;strong&gt;get the ACTIONSCRIPT to work&lt;/strong&gt;&lt;/em&gt;. As you can see, design is very important, but should take a backseat if you have to make a choice.&lt;/p&gt;


&lt;ol&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 6&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Syllabus&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/dma205_syllabus.pdf&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; class syllabus&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Classwork&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/week6/dma205_wk6.zip&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; These are the same as last week&#39;s class files because there are no NEW files for this week;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Homework&lt;/em&gt;&amp;#8212;There are two small things that you must complete for the project next week for it to be wholly complete.&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;exercise 1:&lt;/strong&gt;
        &lt;p&gt;You must make the initial page load up &lt;em&gt;AUTOMATICALLY&lt;/em&gt;, before the user clicks on a button. The reason we want this is so that the user doesn&#39;t see a blank page when the site starts up. You must do the same thing for your &lt;em&gt;gallery pages&lt;/em&gt; so that when the user goes to those pages, there is already the FIRST image there showing up large. The code below is something like what you should have in your own index file right now, BEFORE you make any additions:&lt;/p&gt;
        &lt;ol&gt;
          &lt;li&gt;&lt;span style=&quot;color:#99aa99;&quot;&gt;// below is the variable that is converted into a request object;&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;var oneRequest:URLRequest = new URLRequest(&quot;one.swf&quot;);&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;var twoRequest:URLRequest = new URLRequest(&quot;two.swf&quot;);&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;var threeRequest:URLRequest = new URLRequest(&quot;three.swf&quot;);&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;var fourRequest:URLRequest = new URLRequest(&quot;four.swf&quot;);&lt;/span&gt;&lt;/li&gt;
&lt;br/&gt;
          &lt;li&gt;&lt;span style=&quot;color:#99aa99;&quot;&gt;// below is the variable that is converted into a loader;&lt;/span&gt;&lt;/li&gt;
&lt;br/&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;var myLoader:Loader = new Loader();&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;myLoader.load(oneRequest);&lt;/span&gt;&lt;/li&gt;
&lt;br/&gt;
          &lt;li&gt;&lt;span style=&quot;color:#99aa99;&quot;&gt;// below is the function named loadOne &amp; its contents are between the { }&lt;/span&gt;&lt;/li&gt;
&lt;br/&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;function loadOne(event:MouseEvent): void {&lt;/span&gt;&lt;/li&gt;
            &lt;ul type=&quot;circle&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;myLoader.load(oneRequest);&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;bg_mc.addChild(myLoader);&lt;/span&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;};&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;function loadTwo(event:MouseEvent): void {&lt;/span&gt;&lt;/li&gt;
            &lt;ul type=&quot;circle&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;myLoader.load(twoRequest);&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;bg_mc.addChild(myLoader);&lt;/span&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;};&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;function loadThree(event:MouseEvent): void {&lt;/span&gt;&lt;/li&gt;
            &lt;ul type=&quot;circle&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;myLoader.load(threeRequest);&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;bg_mc.addChild(myLoader);&lt;/span&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;};&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;function loadFour(event:MouseEvent): void {&lt;/span&gt;&lt;/li&gt;
            &lt;ul type=&quot;circle&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;myLoader.load(fourRequest);&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;bg_mc.addChild(myLoader);&lt;/span&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;};&lt;/span&gt;&lt;/li&gt;
&lt;br/&gt;
          &lt;li&gt;&lt;span style=&quot;color:#99aa99;&quot;&gt;/* below is the listener which is waiting for the user to click on the button named one_btn;&lt;br/&gt;
          and, when he/she does,&lt;br/&gt;
          the function named loadOne is activated).*/&lt;/span&gt;&lt;/li&gt;
&lt;br/&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;one_btn.addEventListener(MouseEvent.CLICK, loadOne);&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;two_btn.addEventListener(MouseEvent.CLICK, loadTwo);&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;three_btn.addEventListener(MouseEvent.CLICK, loadThree);&lt;/span&gt;&lt;/li&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;four_btn.addEventListener(MouseEvent.CLICK, loadFour);&lt;/span&gt;&lt;/li&gt;
        &lt;/ol&gt;

        &lt;p&gt;As it is right now if everything functions properly, your projects load up the content from the external .swf files only when you click on a button. Clicking on the buttons &lt;em&gt;activates&lt;/em&gt; one of the functions that loads the external file into the index file. The code in the function only runs when the function is called. This means that we need to run that same code, but without using a function because the function keeps it from running automatically, and only allows it to run when the function is called. See the code below for a function as it currently is:&lt;/p&gt;
        &lt;ol&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;function loadOne(event:MouseEvent): void {&lt;/span&gt;&lt;/li&gt;
            &lt;ul type=&quot;circle&quot;&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;myLoader.load(oneRequest);&lt;/span&gt;&lt;/li&gt;
              &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;bg_mc.addChild(myLoader);&lt;/span&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;li&gt;&lt;span style=&quot;color:#66aa33; font-size:10pt; font-family:Courier;&quot;&gt;};&lt;/span&gt;&lt;/li&gt;
        &lt;/ol&gt;
        &lt;p&gt;Those two lines of code inside of the function are what we are looking for. They are the two lines that are actually responsible for loading the first external .swf file into the index. This means that you must not only have those two lines here inside the function, but also &lt;em&gt;&lt;strong&gt;OUTSIDE OF THE FUNCTION&lt;/strong&gt;&lt;/em&gt; as well. This will cause the first page to load automatically &lt;em&gt;&lt;strong&gt;AND&lt;/em&gt;&lt;/strong&gt; also when the user clicks on its button.&lt;/p&gt;
      &lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;exercise 2:&lt;/strong&gt;
        &lt;p&gt;Do the same thing for your gallery files so that the first image in each loads up automatically as well as when the button for it is clicked by the user.&lt;/p&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Midterm Requirements:&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;page size&lt;/em&gt;&lt;/strong&gt;: 1000px X 700px&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;page number&lt;/em&gt;&lt;/strong&gt;: 5 pages&lt;/li&gt;
        &lt;ol type=&quot;a&quot;&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;bio:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
this page is about the artist and should include sufficient text, and then enough accompanying images to help explain or demonstrate the text.&lt;/li&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;art:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
this page is about the art, and should, like the bio page, contain sufficient text and images to accompany the text for us to have a basic understanding of the art.&lt;/li&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;gallery 1 &amp; 2:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
these pages should contain thumbnail images which, when clicked on, cause a larger image to show up with a caption below it&amp;#8212;the best way to do this is to place the large image in a separate Flash file and type some text below or beside it. Each page must have at least &lt;em&gt;&lt;strong&gt;4 images&lt;/strong&gt;&lt;/em&gt; and each should show up with a unique &lt;em&gt;caption&lt;/em&gt; to go with it.&lt;/li&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;bibliography:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
this page contains a list of links and a brief description of at least 10 online resources that have information or images. Also, list some recent books or films about the artist and/or his/her work. This should include who wrote it and when it was published it if is a book; or who directed it and when it was released if it is a film.&lt;/li&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;index:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
although not technically a page, you will still need a primary file which will load all of the external &quot;pages&quot; or .swf files.&lt;/li&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;img01_index &amp; img02_index:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
although not technically pages, you will still need two primary image files which will load all of the external &quot;images&quot; or .swf files for your two gallery pages&lt;/li&gt;
        &lt;/ol&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Midterm Grading:&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;topic&lt;/em&gt;: 10pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
this is a giveaway of points (10% - a whole letter grade - of the final grade) if you all follow the topics you chose;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;color&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
this has to do with whether you&#39;ve seriously chosen your color scheme: if you choose too many colors or if they simply don&#39;t go together, points will be taken off; so, if you&#39;re not sure, keep it really minimal, or use the &lt;em&gt;&lt;strong&gt;COLOR INDEX&lt;/strong&gt;&lt;/em&gt;;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;images&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
another point giveaway if you use enough images AND if you &lt;em&gt;&lt;strong&gt;DO NOT DISTORT THEM&lt;/strong&gt;&lt;/em&gt;; and also if you don&#39;t use images more than once in such a small website;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;text&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
once again, another giveaway of points if you use enough text and if you spend a little time formatting it: a couple suggestions are that you should &lt;em&gt;&lt;strong&gt;NOT&lt;/strong&gt;&lt;/em&gt;stretch text all the way across the page, but break it up into a couple columns instead; also, like color, make sure you do not use too many fonts, especially multiple decorative fonts together;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;layout&lt;/em&gt;: 10pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
you should carefully consider the organization of each of your pages and, especially, keep in mind that consistency from page to page is very important;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;title:&lt;/em&gt; 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
make certain that there is a title and that it is present (in the same spot) no matter what the user does;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;buttons&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
buttons should be fully functional, should have 4 frames in which the hit frame is a simple gray rectangle, and they should be designed well&amp;#a hint here: students often make their buttons too large;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;content&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
yet another point giveaway and it is simply points to determine whether you have enough content in each page;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;movie-clip container&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;do you use a movieclip container (box_mc for the index and bigImg_mc for the gallery, for example)?;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;initial load&lt;/em&gt;: 15pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
when the user first opens up your site using the index, does content &lt;em&gt;&lt;strong&gt;AUTOMATICALLY LOAD&lt;/strong&gt;&lt;/em&gt; as it should, or does the user have to click on a button to make something appear when the page loads up initially?&amp;#8212;this also pertains to the gallery pages;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;button loading&lt;/em&gt;: 20pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
this simply refers to the functions connected to the buttons on the stage: does content load when you click on all your buttons?&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;folder organization&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
the folder that you give me next week should be organized, meaning that images should be in one folder. Also, right before you give me your project, put your .fla files into a separate folder as well. You should also remove any images or other files that are not being used.&lt;/li&gt;
    &lt;/ul&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/2275000063007106774/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/06/hi-everybody-okay-less-than-one-more.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/2275000063007106774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/2275000063007106774'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/06/hi-everybody-okay-less-than-one-more.html' title='&lt;small&gt;Summer 2010 &lt;/small&gt;week 6:&lt;br&gt;—&lt;small&gt;6/14/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-1232649288569730479</id><published>2010-06-08T06:06:00.000-07:00</published><updated>2010-06-15T08:15:53.533-07:00</updated><title type='text'>Summer 2010 week 5:—6/07/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everybody,&lt;br/&gt;
&lt;p&gt;Your &lt;em&gt;mid-term projects&lt;/em&gt; will be due in &lt;em&gt;two weeks&lt;/em&gt;; however, by &lt;em&gt;next week&lt;/em&gt; you must have a &lt;em&gt;complete rough draft&lt;/em&gt; to show me. This means you have to have &lt;em&gt;all of the work done by next week&lt;/em&gt;. That &lt;em&gt;DOES NOT&lt;/em&gt; mean they have to be perfect, as we will continue working on them one more week to get them into better condition. Moreover, we will continue working on them throughout the rest of the semester, adding features and editing what you already have. These projects will be the same projects that you give to me for the final as well.&lt;/p&gt;

&lt;p&gt;The most important part of this project is to &lt;em&gt;&lt;strong&gt;get the ACTIONSCRIPT to work&lt;/strong&gt;&lt;/em&gt;. Design is very important, but should take a backseat if you have to make a choice.&lt;/p&gt;


&lt;ol&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 5&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Syllabus&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/dma205_syllabus.pdf&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; class syllabus&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Classwork&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/week5/dma205_wk5.zip&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; This week&#39;s class files&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Homework&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;exercise 1:&lt;/strong&gt; Complete your midterm project by next week to present to me a rough draft. This means that you &lt;em&gt;MUST COMPLETE THE ENTIRE SITE BY NEXT WEEK&lt;/em&gt;. I will then comment on what you show me and you will have one more week to improve it and smooth out all the rough edges.&lt;/li&gt;
    &lt;/ul&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Midterm Requirements:&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;page size&lt;/em&gt;&lt;/strong&gt;: 1000px X 700px&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;page number&lt;/em&gt;&lt;/strong&gt;: 5 pages&lt;/li&gt;
        &lt;ol type=&quot;a&quot;&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;bio:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
this page is about the artist and should include sufficient text, and then enough accompanying images to help explain or demonstrate the text.&lt;/li&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;art:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
this page is about the art, and should, like the bio page, contain sufficient text and images to accompany the text for us to have a basic understanding of the art.&lt;/li&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;gallery 1 &amp; 2:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
these pages should contain thumbnail images which, when clicked on, cause a larger image to show up with a caption below it&amp;#8212;the best way to do this is to place the large image in a separate Flash file and type some text below or beside it. Each page must have at least &lt;em&gt;&lt;strong&gt;4 images&lt;/strong&gt;&lt;/em&gt; and each should show up with a unique &lt;em&gt;caption&lt;/em&gt; to go with it.&lt;/li&gt;
          &lt;li&gt;&lt;strong&gt;&lt;em&gt;bibliography:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
this page contains a list of links and a brief description of at least 10 online resources that have information or images. Also, list some recent books or films about the artist and/or his/her work. This should include who wrote it and when it was published it if is a book; or who directed it and when it was released if it is a film.&lt;/li&gt;
        &lt;/ol&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Midterm Grading:&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;topic&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
this is a giveaway of points (5% - a half of a letter grade - of the final grade of the project) if you all follow the topics you chose;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;color&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
this has to do with whether you&#39;ve seriously chosen your color scheme: if you choose too many colors or if they simply don&#39;t go together, points will be taken off; so, if you&#39;re not sure, keep it really minimal, or use the &lt;em&gt;&lt;strong&gt;COLOR INDEX&lt;/strong&gt;&lt;/em&gt;;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;images&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
another point giveaway if you use enough images AND if you &lt;em&gt;&lt;strong&gt;DO NOT DISTORT THEM&lt;/strong&gt;&lt;/em&gt;; and also if you don&#39;t use images more than once in such a small website;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;text&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
once again, another giveaway of points if you use enough text and if you spend a little time formatting it: a couple suggestions are that you should &lt;em&gt;&lt;strong&gt;NOT&lt;/strong&gt;&lt;/em&gt;stretch text all the way across the page, but break it up into a couple columns instead; also, like color, make sure you do not use too many fonts, especially multiple decorative fonts together;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;layout, positioning, &amp; alignment&lt;/em&gt;: 20pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
you should carefully consider the organization of each of your pages and, especially, keep in mind that consistency from page to page is very important. USE RULERS &amp; GUIDES!!!!;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;title:&lt;/em&gt; 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
make certain that there is a title and that it is present (in the same spot) no matter what the user does;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;buttons&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
buttons should be fully functional, should have 4 frames in which the hit frame is a simple gray rectangle, and they should be designed well&amp;#a hint here: students often make their buttons too large;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;content&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
yet another point giveaway and it is simply points to determine whether you have enough content in each page;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;movie-clip container&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;do you use a movieclip container (box_mc for the index and bigImg_mc for the gallery, for example)?;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;initial load&lt;/em&gt;: 15pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
when the user first opens up your site using the index, does content &lt;em&gt;&lt;strong&gt;AUTOMATICALLY LOAD&lt;/strong&gt;&lt;/em&gt; as it should, or does the user have to click on a button to make something appear when the page loads up initially?&amp;#8212;this also pertains to the gallery pages;&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;button loading&lt;/em&gt;: 20pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
this simply refers to the functions connected to the buttons on the stage: does content load when you click on all your buttons?&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;&lt;em&gt;folder organization&lt;/em&gt;: 5pts&lt;/strong&gt;&amp;#8212;&lt;br/&gt;
the folder that you give me next week should be organized, meaning that images should be in one folder. Also, right before you give me your project, put your .fla files into a separate folder as well. You should also remove any images or other files that are not being used.&lt;/li&gt;
    &lt;/ul&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/1232649288569730479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/06/hi-everybody-your-mid-term-projects.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/1232649288569730479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/1232649288569730479'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/06/hi-everybody-your-mid-term-projects.html' title='&lt;small&gt;Summer 2010 &lt;/small&gt;week 5:&lt;br&gt;—&lt;small&gt;6/07/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-3183038254956375093</id><published>2010-06-05T09:14:00.000-07:00</published><updated>2010-06-08T06:13:56.870-07:00</updated><title type='text'>Summer 2010 week 4:—6/04/10:  Fri. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everyone,&lt;br/&gt;
Good Class yesterday. Keep up the good work. Not much homework, so I expect everyone to have it in class on Monday.&lt;/p&gt;
&lt;p&gt;Have a nice weekend!&lt;/p&gt;


&lt;ol&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 4&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Syllabus&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/dma205_syllabus.pdf&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; class syllabus&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Classwork&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/week4/dma205_week4.zip&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; This week&#39;s class files&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Homework&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;exercise 1:&lt;/strong&gt; Choose a topic for your &lt;em&gt;&lt;strong&gt;MIDTERM PROJECT&lt;/strong&gt;&lt;/em&gt;. This should be a &lt;em&gt;&lt;strong&gt;visual artist from the 20th Century &lt;em&gt;SINCE&lt;/EM&gt; 1960&lt;/strong&gt;&lt;/em&gt;. This may include the following:
        &lt;ul type=&quot;disk&quot;&gt;
          &lt;li&gt;Painters&lt;/li&gt;
          &lt;li&gt;Sculptors&lt;/li&gt;
          &lt;li&gt;Video Artists&lt;/li&gt;
          &lt;li&gt;Conceptual Artists&lt;/li&gt;
          &lt;li&gt;Installation Artists&lt;/li&gt;
          &lt;li&gt;Photographers (NOT fashion photography)&lt;/li&gt;
          &lt;li&gt;Performance Artists (NOT actors or musicians)&lt;/li&gt;
        &lt;/ul&gt;
     If you are not certain which one to choose, then ask your art history instructor (Miguel Arisa, Dan Kadish, Vahan Nahabedian, Steve Tecson) or me for suggestions, or consult an art history book. You must come to class prepared to tell me your idea, or you will not get credit for your homework. &lt;em&gt;THE FIRST TO COME GETS FIRST CHOICE OF A PARTICULAR ARTIST&lt;/em&gt;. So come early, or have a second and third choice ready as there will only be &lt;em&gt;one student per artist&lt;/em&gt;.&lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;exercise 2:&lt;/strong&gt; Make certain that you have at least &lt;em&gt;three resources&lt;/em&gt; to do your research and get your images. These may be either books or websites, and you must come with them ready to show to me first thing in class.&lt;/li&gt;
    &lt;/ul&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/3183038254956375093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/06/hi-everyone-nice-to-be-back.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/3183038254956375093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/3183038254956375093'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/06/hi-everyone-nice-to-be-back.html' title='&lt;small&gt;Summer 2010 &lt;/small&gt;week 4:&lt;br&gt;—&lt;small&gt;6/04/10:  Fri. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-266389225600475638</id><published>2010-05-25T06:18:00.000-07:00</published><updated>2010-05-25T07:02:12.113-07:00</updated><title type='text'>Summer 2010 week 3:—5/24/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everyone,&lt;br/&gt;
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.&lt;/p&gt;
&lt;br/&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;p&gt;This week, you will have to complete what we began in class, and then read further for additional assignments.&lt;/p&gt;


&lt;ol type=&quot;I&quot;&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 3&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Syllabus&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/dma205_syllabus.pdf&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; class syllabus&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Classwork&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/week3/dma205_wk3.zip&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; This weeks class-files: read the text file included here for an explanation of the ActionScript&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Homework&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;exercise A:&lt;/strong&gt;&lt;/li&gt;
        &lt;p&gt;In this week&#39;s class, you completed a very basic website in Flash, &lt;em&gt;making an external file load when you clicked on your button&lt;/em&gt;, and then &lt;em&gt;making another one load when you click on a second button&lt;/em&gt;.&lt;/p&gt;
        &lt;ol type=&quot;1&quot;&gt;
          &lt;li&gt;What I would like you to do next, if you hadn&#39;t done so in class, is, &lt;em&gt;first&lt;/em&gt; to create the external &lt;em&gt;flash files&lt;/em&gt; 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.&lt;/li&gt;
          &lt;li&gt;Next, make certain that you &lt;em&gt;export the .swf file (ctrl-enter)&lt;/em&gt; for each of those new pages.&lt;/li&gt;
          &lt;li&gt;Also, make sure that all the files, both the .fla files AND the .swf files are all in the same folder.&lt;/li&gt;
          &lt;li&gt;Now, you&#39;ll have to go back to the &lt;em&gt;index&lt;/em&gt; and give the other 3 buttons &lt;em&gt;Instance Names&lt;/em&gt;.
          &lt;li&gt;Then, go to the actions panel, and type the new code to load those pages when you click on the proper buttons.&lt;/li&gt;

&lt;br/&gt;
&lt;br/&gt;
            &lt;ol type=&quot;a&quot;&gt;
              &lt;lh&gt;&lt;BIG&gt;&lt;em&gt;NEW CODE&lt;/em&gt;&lt;/BIG&gt;&lt;/lh&gt;
              &lt;li&gt;You will need &lt;em&gt;3 more functions&lt;/em&gt;, and inside those 3 new functions, you will need the &lt;em&gt;same actions&lt;/em&gt; that the other two functions have.&lt;/li&gt;
              &lt;li&gt;You will also need &lt;em&gt;3 more URLRequest objects&lt;/em&gt;, &lt;em&gt;3 more loader objects&lt;/em&gt;, and &lt;em&gt;3 more listeners&lt;/em&gt;.&lt;/li&gt;
              &lt;li&gt;For each of these new lines of code, make certain that you do &lt;em&gt;NOT&lt;/em&gt; name the functions with the same names, and that you &lt;em&gt;NOT&lt;/em&gt; name the request and loader objects with the same name.&lt;/li&gt;
              &lt;li&gt;&lt;em&gt;HINTS&lt;/em&gt;:&lt;/li&gt;
                &lt;ol type=&quot;i&quot;&gt;
                  &lt;li&gt;name the functions with names such as loadOne, loadTwo, loadThree, loadFour, and loadFive&lt;/li&gt;
                  &lt;li&gt;name the requests with names such as myReq_01, myReq_02, myReq_03, myReq_04, and myReq_05.&lt;/li&gt;
                  &lt;li&gt;name the loaders with names such as myLoad_01, myLoad_02, myLoad_03, myLoad_04, and myLoad_05.&lt;/li&gt;
                &lt;/ol&gt;
            &lt;/ol&gt;
        &lt;/ol&gt;
&lt;br/&gt;
&lt;br/&gt;
      &lt;li&gt;&lt;strong&gt;exercise B:&lt;/strong&gt;
        &lt;ol type=&quot;1&quot;&gt;
          &lt;li&gt;
            &lt;p&gt;What you see now that you have completed the previous exercise is a bunch of code. You have &lt;em&gt;5 of everything&lt;/em&gt;, and that is &lt;em&gt;VERY&lt;/em&gt; inefficient. It could be done in a much better way with less code.&lt;/p&gt;
            &lt;p&gt;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 &lt;em&gt;DON&#39;T&lt;/em&gt; have to know how to do this, just what you &lt;em&gt;think&lt;/em&gt; should be done. This could be one thing, or it could be several things. I just want to see how you&#39;re thinking about the code.&lt;/p&gt;
          &lt;/li&gt;
        &lt;/ol&gt;
&lt;br/&gt;
&lt;br/&gt;
      &lt;li&gt;&lt;strong&gt;extra credit:&lt;/strong&gt;
        &lt;ol type=&quot;1&quot;&gt;
          &lt;li&gt;Make the code you typed for &lt;em&gt;exercise 1&lt;/em&gt; more simple by reducing the amount of code that is typed and still have it function properly.&lt;/li&gt;
        &lt;/ol&gt;
&lt;br/&gt;
&lt;br/&gt;
    &lt;/ul&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/266389225600475638/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/05/hi-everyone-for-everyone-who-was-new_25.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/266389225600475638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/266389225600475638'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/05/hi-everyone-for-everyone-who-was-new_25.html' title='&lt;small&gt;Summer 2010 &lt;/small&gt;week 3:&lt;br&gt;—&lt;small&gt;5/24/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-5156012696454987520</id><published>2010-05-18T07:53:00.001-07:00</published><updated>2010-05-23T13:48:05.263-07:00</updated><title type='text'>Summer 2010 week 2:—5/17/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everyone,&lt;br/&gt;
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.&lt;/p&gt;
&lt;br/&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;p&gt;This week, I am assigning the same homework as last week for the new students. Last week, it was for extra credit. This week, however, it is not for extra credit. It is required for EVERYONE! There is also additional work you must do.&lt;/p&gt;


&lt;ol&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 2&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Syllabus&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/dma205_syllabus.pdf&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; class syllabus&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Classwork&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/week1/dma205_wk1.zip&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; This weeks classfiles (same as last week&#39;s)&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Homework&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;exercise 1:&lt;/strong&gt;
        &lt;p&gt;Today, in this week&#39;s class, you completed a very basic animation with a few small bits of interactivity, &lt;em&gt;making the animation stop when you clicked on your button&lt;/em&gt;, &lt;em&gt;making it resume when you click on the 2nd button&lt;/em&gt;, and &lt;em&gt;making it skip to frame 100 when you click on the 3rd button&lt;/em&gt;.&lt;/p&gt;
        &lt;ol&gt;
          &lt;li&gt;What I would like you to do next, if you hadn&#39;t done so in class, is to modify the &lt;em&gt;actions&lt;/em&gt; for the 3rd button to the following: &lt;big&gt;gotoAndStop(currentFrame + 10);&lt;/big&gt;&lt;/li&gt;
          &lt;li&gt;Next, from your library, take 4 more instances of your button symbol and arrange them next to your others on the stage.&lt;/li&gt;
          &lt;li&gt;Give them the instance names of &lt;em&gt;pt1_btn&lt;/em&gt;, &lt;em&gt;pt2_btn&lt;/em&gt;, &lt;em&gt;pt3_btn&lt;/em&gt;, and &lt;em&gt;pt4_btn&lt;/em&gt;.&lt;/li&gt;
          &lt;li&gt;Using what you understand about the actionscript we have already typed, try to make the 1st new button go to frame 1 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.&lt;/li&gt;
          &lt;li&gt;HINTS: you will need 4 more functions, 4 more listeners, and inside those 4 new functions, you will need gotoAndPlay(); actions.&lt;/li&gt;
          &lt;li&gt;Oh, and remember, &lt;em&gt;COPY &amp; PASTE&lt;/em&gt; is your friend. Just make certain you don&#39;t copy and paste mistakes, because then you multiply your mistakes.&lt;/li&gt;
        &lt;/ol&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/5156012696454987520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/05/hi-everyone-for-everyone-who-was-new.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/5156012696454987520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/5156012696454987520'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/05/hi-everyone-for-everyone-who-was-new.html' title='&lt;small&gt;Summer 2010 &lt;/small&gt;week 2:&lt;br&gt;—&lt;small&gt;5/17/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-1592499265131580506</id><published>2010-05-10T12:54:00.001-07:00</published><updated>2010-05-18T07:51:00.620-07:00</updated><title type='text'>Summer 2010 week 1:—5/10/10:  Mon. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everyone,&lt;br/&gt;
This is the home of the blog for this class. I&#39;ve sent an email out to the person that has already reserved DMA205.blogspot.com to see if he&#39;ll allow me to take over that name, but until then, I will be using DMA-205.blogspot.com.&lt;/p&gt;
&lt;br/&gt;
&lt;p&gt;Regarding this week&#39;s work, please make certain you understand most of what we did in class today (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.&lt;/p&gt;
&lt;br/&gt;
&lt;p&gt;Since I was late to class today and some students left before I arrived, I will count as extra credit (one assignment&#39;s worth) anyone who completes this week&#39;s homework by our next class.&lt;/p&gt;
&lt;br/&gt;
&lt;p&gt;Next week, I will assign the same homework, but it will not be for extra credit, but required; and I will also assign additional work next week. Therefore, it&#39;s in your best interest to go ahead and give it a try. One person has already completed it!&lt;/p&gt;

&lt;br/&gt;
&lt;br/&gt;


&lt;p&gt;Since I am just now starting this blog, it will take me some time to get it into shape. So, if you have any difficulties with it, please let me know.&lt;br/&gt;
Carter-&lt;/p&gt;


&lt;ol&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 1&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Syllabus&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/dma205_syllabus.pdf&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; class syllabus&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Classwork&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/week1/dma205_wk1.zip&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt; &amp;nbsp;&amp;nbsp; This weeks classfiles&lt;/li&gt;
    &lt;/ul&gt;
  &lt;li&gt;&lt;em&gt;Homework&lt;/em&gt;&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;exercise 1:&lt;/strong&gt;
        &lt;p&gt;Today, in this week&#39;s class, you completed a very basic animation with one small bit of interactivity, &lt;em&gt;making the animation stop when you clicked on your button&lt;/em&gt;.&lt;/p&gt;
          &lt;ol&gt;
            &lt;li&gt;What I would like you to do next, is to add a 2nd button (you may use the same button from the library that you already created, just drag another instance onto the stage next to the first one.&lt;/li&gt;
            &lt;li&gt;Select this 2nd button by clicking on it one time, and in the properties, give it an &lt;em&gt;instance name&lt;/em&gt; of &lt;em&gt;play_btn&lt;/em&gt;.&lt;/li&gt;
            &lt;li&gt;Lock the buttons layer, and then click in frame one of the actions layer (make certain it is not locked). Then, here in the actions layer, open up the actions panel and look at the actionscript you already have. You have a &lt;em&gt;function&lt;/em&gt; named &lt;em&gt;stop_it&lt;/em&gt; with one action, the &lt;em&gt;stop();&lt;/em&gt; action, and you have a listener, the last line of the code.&lt;br/&gt;&lt;br/&gt;Those things make the button work, make it stop the animation from playing. What we need to add is a set of code that may make the animation play again. We want to do this with the 2nd button you just added to the stage.&lt;/li&gt;
            &lt;li&gt;Highlight the lines of code that are already there and copy them. Then, click at the end of the code, hit enter a couple of times to add some space, and paste the code you copied. This will give you 2 bits of code that are exactly the same.&lt;/li&gt;
            &lt;li&gt;To make the animation play again with the 2nd button, you will have to change a few things: the name of the &lt;em&gt;function&lt;/em&gt;, the &lt;em&gt;stop()&lt;/em&gt; action, and the name of the &lt;em&gt;button&lt;/em&gt;.&lt;br/&gt;&lt;br/&gt; In the first line of code that you pasted, change the name of the function from stop_it to &lt;em&gt;play_it&lt;/em&gt; first.&lt;/li&gt;
            &lt;li&gt;Change the name of the function in the last line of code that you pasted too, from stop_it() to &lt;em&gt;play_it()&lt;/em&gt;.&lt;/li&gt;
            &lt;li&gt;Next, change the stop() action to a &lt;em&gt;play()&lt;/em&gt; action.&lt;/li&gt;
            &lt;li&gt;And then, finally, change the instance name of the button in the code from stop_btn on the last line, to &lt;em&gt;play_btn&lt;/em&gt;.
            &lt;li&gt;If you have errors that appear, preventing it from working properly, try to read and see if you understand what the errors say. If you double-click on the text of the error, it will automatically take you too the line of code where you have the problem. Look at the code I have given you and see if you can identify any mistakes.&lt;/li&gt;
          &lt;/ol&gt;
        &lt;/p&gt;
      &lt;/li&gt;

&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;

      &lt;li&gt;&lt;strong&gt;exercise 2:&lt;/strong&gt; 
        &lt;p&gt;Similar to this week&#39;s in-class exercise, I would like you to create a brief little animation. Please do not spend too much time on this animation, but at the same time it shouldn&#39;t be a big ugly mess. This animation should have &lt;em&gt;200 frames&lt;/em&gt;. Also like our in-class exercise, you should have two fully-functioning buttons, &lt;em&gt;play&lt;/em&gt; &amp; &lt;em&gt;stop&lt;/em&gt;, which should similarly stop, and play the animation.&lt;br/&gt;&lt;br/&gt;

In addition, however, you should have a &lt;em&gt;3rd button&lt;/em&gt;. This button should use what we call a &lt;em&gt;gotoAndPlay();&lt;/em&gt; action instead of stop(); or play();. Look in the book exactly how to use this action, and I would like you to make it go to &lt;em&gt;frame 100&lt;/em&gt; and start playing from there when you click on it.&lt;/li&gt;
    &lt;/ul&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/1592499265131580506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2010/05/hi-everyone-this-is-temporary-home-of.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/1592499265131580506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/1592499265131580506'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2010/05/hi-everyone-this-is-temporary-home-of.html' title='&lt;small&gt;Summer 2010 &lt;/small&gt;week 1:&lt;br&gt;—&lt;small&gt;5/10/10:  Mon. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-1603043339734675631</id><published>2009-12-11T09:31:00.001-08:00</published><updated>2009-12-11T09:47:37.708-08:00</updated><title type='text'>Fall 09 week 13:—12/07/09:  Wed. 9:00 - 12:00</title><content type='html'>&lt;p&gt;Hi Everybody,&lt;br/&gt;
It has been a nice term and I&#39;ve enjoyed teaching you this semester. I hope you feel that you&#39;ve learned a little about how to begin creating interactive content with Flash. I&#39;m pleased at how well you all have seemed to pick it up, and am confident that you&#39;ll do well the remaining terms you have here at TCI.&lt;/p&gt;
&lt;p&gt;I&#39;ll be gone for the Spring term on sabbatical and won&#39;t return until May, so there may be a few of you that I won&#39;t see again. It&#39;s been a real pleasure teaching you, and good luck in the Future!&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Please email me before our next class if you need any final assistance before you turn you project in. I will be available to come in to TCI on Saturday as well if any of you require it. Just let me know.&lt;/em&gt;&lt;br/&gt;
Carter-&lt;/p&gt;

&lt;ol type=&quot;I&quot;&gt;
  &lt;lh&gt;&lt;em&gt;WEEK 13&lt;/em&gt;&lt;/lh&gt;&lt;br/&gt;
  &lt;li&gt;&lt;em&gt;Final Requirements&lt;/em&gt;&lt;/li&gt;
    &lt;ul type=&quot;circle&quot;&gt;
      &lt;li&gt;&lt;em&gt;NOTE&amp;#8212;&lt;/em&gt; Please look at your midterm project and make some modifications to your menu. You should include the &lt;em&gt;TWO drop-down&lt;/em&gt; menus that I ask for below. The function for these menus should follow my guidelines in last week&#39;s posting. Please note below one modification that you will have to make to that code. The requirements below were put in the &lt;em&gt;week 9 posting&lt;/em&gt; of this blog. I am repeating them here this week so that you have all the requirements. The one modification that I am making to the requirements I stated that week is that the &lt;em&gt;Video&lt;/em&gt; page is entirely for &lt;em&gt;extra credit&lt;/em&gt;. If you get it to stop as stated previously when you click on other pages, then that will be additional &lt;em&gt;extra credit&lt;/em&gt;:&lt;/li&gt;
      &lt;br/&gt;
      &lt;br/&gt;
        &lt;ol type=&quot;1&quot;&gt;
          &lt;li&gt;&lt;em&gt;&lt;strong&gt;PAGES&lt;/strong&gt;&lt;/em&gt;: Make certain that your &lt;em&gt;INDEX FILE&lt;/em&gt; has a total of at least &lt;em&gt;six links&lt;/em&gt; in your menu. These links must include the following:&lt;/li&gt;
            &lt;ol type=&quot;a&quot;&gt;
              &lt;li&gt;&lt;em&gt;Home&lt;/em&gt;;&lt;/li&gt;
              &lt;li&gt;&lt;em&gt;Bio/Biography&lt;/em&gt;;&lt;/li&gt;
              &lt;li&gt;an Image &lt;em&gt;Gallery&lt;/em&gt; (of Art Works)&amp;#8212;This should be a drop-down menu with at least 3 links and each page should have 8-10 images;&lt;/li&gt;
              &lt;li&gt;&lt;em&gt;Video&lt;/em&gt;&amp;#8212This page is entirely for &lt;em&gt;extra credit&lt;/em&gt;. If you get it to stop as stated previously when you click on other pages, then that will be additional &lt;em&gt;extra credit&lt;/em&gt;&lt;/li&gt;
              &lt;li&gt;&lt;em&gt;Your own link&lt;/em&gt;&amp;#8212;depending on who your artist is and what he/she does, you should come up with an idea for an additional page all your own. This should &lt;em&gt;NOT&lt;/em&gt; include a contact page;&lt;/li&gt;
              &lt;li&gt;&lt;em&gt;Information&lt;/em&gt;: This should be a DROP-DOWN MENU which contains two buttons&amp;#8212;
                &lt;ol type=&quot;i&quot;&gt;
                  &lt;li&gt;Information about gallery or museum &lt;em&gt;Exhibitions&lt;/em&gt; or &lt;em&gt;Collections&lt;/em&gt;;&lt;/li&gt;
                  &lt;li&gt;Information about your research and what can be discovered about the artist: this is known as a &lt;strong&gt;Bibliography&lt;/strong&gt;&amp;#8212This part of nearly everyone&#39;s project was &lt;em&gt;VERY&lt;/em&gt; weak. Please make sure that you use good sources both online and, I advise, offline; and then, make certain that you document where you got your information. This page should be thorough: all of you have chosen famous artists, so make sure you do some research and put a list of sources for more information here. Also, categorize them according to whether they are &lt;em&gt;books&lt;/em&gt;, &lt;em&gt;articles&lt;/em&gt; &lt;em&gt;websites&lt;/em&gt;, or something else.&lt;br/&gt;
                  &lt;br/&gt;
                  
                  Other good sources of information are your Art History teachers, or me;&lt;/li&gt;
                &lt;/ol&gt;
            &lt;/ol&gt;
            &lt;br/&gt;
          &lt;li&gt;&lt;em&gt;&lt;strong&gt;SIZE&lt;/strong&gt;&lt;/em&gt;: If it is not already, make sure that the size of your pages is at least 800px X 600px landscape. Larger is fine if you like, but careful not to make it too much beyond 1000px X 700px as most computer users will not see some of your page if you make it larger than that.&lt;/li&gt;
            &lt;br/&gt;
          &lt;li&gt;&lt;em&gt;&lt;strong&gt;AUDIO&lt;/strong&gt;&lt;/em&gt;: As mentioned in class and in previous postings, please create a toggle button and add background music that may be turned on and off with that button. Check last week&#39;s posting for additional information, or look in the text for this class.&lt;/li&gt;
            &lt;br/&gt;
          &lt;li&gt;&lt;em&gt;&lt;strong&gt;CODE TIP&lt;/strong&gt;&lt;/em&gt;:
            &lt;p&gt;In the code that I offered you in last week&#39;s posting, near the bottom I typed an action known as &lt;em&gt;navigateToURL&lt;/em&gt;. This action is to be used &lt;em&gt;ONLY&lt;/em&gt; for &lt;em&gt;EXTERNAL LINKS&lt;/em&gt;. External links are only for pages &lt;em&gt;OUTSIDE&lt;/em&gt; of your website, not pages within your website.&lt;/p&gt;
            &lt;p&gt;You already know how to &quot;link&quot; to pages within your own website. To do this, for the last 10 weeks, we have been using &lt;em&gt; URLRequests&lt;/em&gt; and &lt;em&gt;Loaders&lt;/em&gt;. You must also do that for your drop-down menus.&lt;/p&gt;
            &lt;p&gt;I only used &lt;em&gt;navigateToURL&lt;/em&gt; as an example, and also to show you a new action, how to make your links in your &lt;em&gt;bibliography&lt;/em&gt; actually link to external sites. Please make sure you adjust the code for your drop-down menus accordingly.&lt;/p&gt;
          &lt;/li&gt;
        &lt;/ol&gt;
    &lt;/ul&gt;
&lt;/ol&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/1603043339734675631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2009/12/hi-everybody-it-has-been-nice-term-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/1603043339734675631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/1603043339734675631'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2009/12/hi-everybody-it-has-been-nice-term-and.html' title='&lt;small&gt;Fall 09 &lt;/small&gt;week 13:&lt;br&gt;—&lt;small&gt;12/07/09:  Wed. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7391363757662049368.post-7235614580675552248</id><published>2009-12-06T09:39:00.000-08:00</published><updated>2009-12-06T14:53:34.523-08:00</updated><title type='text'>Fall 09 week 12:—11/30/09:  Wed. 9:00 - 12:00</title><content type='html'>&lt;p&gt;In the tutorials below, there are two things covered: the first, much longer tutorial completes your &lt;em&gt;drop-down menus&lt;/em&gt; and makes them fully functional; the second shorter tutorial at the bottom, shows you the code for &lt;em&gt;creating sound objects&lt;/em&gt;, and then &lt;em&gt;playing&lt;/em&gt; and &lt;em&gt;stopping&lt;/em&gt; the audio.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;#DropDown&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt;&amp;#8212;Completing the Drop-Down Menu&lt;br/&gt;
   &lt;strong&gt;&lt;a href=&quot;#Sound&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt;&amp;#8212;Adding Sound Functionality&lt;/p&gt;
   &lt;br/&gt;
   &lt;br/&gt;
   &lt;br/&gt;
   &lt;br/&gt;
   &lt;br/&gt;
   &lt;br/&gt;
&lt;ol class=&quot;num&quot;&gt;
&lt;a name=&quot;DropDown&quot;&gt;&lt;/a&gt;
  &lt;li&gt;&lt;em&gt;DROP-DOWN&lt;/em&gt;
    &lt;p class=&quot;bold&quot;&gt;First, if you wish to experiment on my file first before implementing on your own, download the following flash file. It is set up exactly the way that we have been working with in class: &lt;strong&gt;&lt;a href=&quot;http://www.ii-i.net/documents/dma205/week12/dma205_wk12_dropDownMenu_01.fla&quot;&gt;LINK&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
    &lt;p class=&quot;bold&quot;&gt;Second, we&#39;ll go about writing the code for the drop-down menu from scratch, beginning with the text that will fit inside of the buttons. The first line creates the &lt;em&gt;array&lt;/em&gt; for that text; and the second line places the first text element (txtArray[0]) inside the text box of the main button. The next three lines places the next three text elements of the array (txtArray[1], txtArray[2], txtArray[3]), inside the text boxes of the option buttons. And finally, the last line, although unrelated to the text array, sets the default for the visibility of the options of the drop-down menu to &lt;em&gt;false&lt;/em&gt;, making it invisible:&lt;/p&gt;
    &lt;ol class=&quot;num&quot;&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;var txtArray:Array = new Array(&quot;main, &quot;one&quot;, &quot;two&quot;, &quot;three&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.text=txtArray[0];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_01.btn_txt.text=txtArray[1];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_02.btn_txt.text=txtArray[2];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_03.btn_txt.text=txtArray[3];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.visible = false;&lt;/span&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;li&gt;
    &lt;p class=&quot;bold&quot;&gt;But already, despite the fact that the above code is pretty straightforward, there&#39;s a better, somewhat more efficient way of writing it, and that is using a new Actionscript element: a &lt;em&gt;with&lt;/em&gt; statement. What this statement allows you to do is eliminate some repeated paths. In the above code where we placed text inside the option buttons, we repeated parts of the path 3 times. Such examples of repeatedly typing identical code increases the possibility of making errors, so therefore we must reduce and make it efficient here and wherever else we can. One way of doing this is using the &lt;em&gt;with&lt;/em&gt; statement as suggest, allowing us to type that repeated part of the path only one time. See the following example:&lt;/p&gt;

    &lt;ol class=&quot;num&quot;&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var txtArray:Array = new Array(&quot;main, &quot;one&quot;, &quot;two&quot;, &quot;three&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.text=txtArray[0];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000; text-decoration:line-through;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_01.btn_txt.text=txtArray[1];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000; text-decoration:line-through;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_02.btn_txt.text=txtArray[2];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000; text-decoration:line-through;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_03.btn_txt.text=txtArray[3];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;with(menu.options) {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[1];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[2];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[3];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.visible = false;&lt;/span&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
  &lt;li&gt;
    &lt;p class=&quot;bold&quot;&gt;Next, we have to add a new array. This array will contail &lt;em&gt;multiple URLs&lt;/em&gt;. Here, in this example, I will just put a few random web addresses, but what you should use for your own projects is the file path to your various pages, the external .swf files.&lt;/p&gt;
     &lt;ol class=&quot;num&quot;&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var txtArray:Array = new Array(&quot;main, &quot;one&quot;, &quot;two&quot;, &quot;three&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.text=txtArray[0];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;with(menu.options) {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[1];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[2];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[3];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.visible = false;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;var address:Array = new Array();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[0] = new URLRequest(&quot;http://lipsum.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[1] = new URLRequest(&quot;html-color-codes.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[2] = new URLRequest(&quot;http://dma-205.blogspot.com&quot;);&lt;/span&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;li&gt;
    &lt;p class=&quot;bold&quot;&gt;Following this, we will create &lt;em&gt;two color objects&lt;/em&gt;, one for the &lt;em&gt;original color&lt;/em&gt; of the text and outline, and the other for the &lt;em&gt;new color&lt;/em&gt; that they will change into when the user mouses over the buttons.&lt;/p&gt;
    &lt;ol class=&quot;num&quot;&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var txtArray:Array = new Array(&quot;main, &quot;one&quot;, &quot;two&quot;, &quot;three&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.text=txtArray[0];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;with(menu.options) {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[1];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[2];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[3];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.visible = false;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var address:Array = new Array();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[0] = new URLRequest(&quot;http://lipsum.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[1] = new URLRequest(&quot;html-color-codes.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[2] = new URLRequest(&quot;http://dma-205.blogspot.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;var btnC_01:ColorTransform = new ColorTransform();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;btnC_01.color=0x330066;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;var btnC_02:ColorTransform = new ColorTransform();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;btnC_02.color=0x3399cc;&lt;/span&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;li&gt;
    &lt;p class=&quot;bold&quot;&gt;Now, in order for us to make use of those two colors, we have to create our first functions. These functions will do a few things. Most importantly, they will &lt;em&gt;open and close&lt;/em&gt; the menu. We have done this before, and it simply entails setting the &lt;em&gt;visible&lt;/em&gt; property to &lt;em&gt;true&lt;/em&gt; for it to open, and then to &lt;em&gt;false&lt;/em&gt; for it to go back to being closed.&lt;/p&gt;
    &lt;p class=&quot;bold&quot;&gt;In addition to this, we want to &lt;em&gt;change the colors&lt;/em&gt; of the main button (the button on top), the one that is always open and which triggers the opening and closing of the menu. When we mouse over it, we want the stroke color and the color of the text to change to a new color, and then, when we mouse off of it, we want those two elements to go back to their original color.&lt;/p&gt;
    &lt;p class=&quot;bold&quot;&gt;You&#39;ll notice, however, that once the menu opens, that the other buttons do not change colors. We&#39;ll have to create another set of functions for that.&lt;/p&gt;
    &lt;ol class=&quot;num&quot;&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var txtArray:Array = new Array(&quot;main, &quot;one&quot;, &quot;two&quot;, &quot;three&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.text=txtArray[0];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;with(menu.options) {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[1];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[2];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[3];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.visible = false;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var address:Array = new Array();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[0] = new URLRequest(&quot;http://lipsum.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[1] = new URLRequest(&quot;html-color-codes.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[2] = new URLRequest(&quot;http://dma-205.blogspot.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var btnC_01:ColorTransform = new ColorTransform();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;btnC_01.color=0x330066;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var btnC_02:ColorTransform = new ColorTransform();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;btnC_02.color=0x3399cc;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;function menu_open(evt:MouseEvent):void {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.options.visible=true;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.stroke.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;function menu_close(evt:MouseEvent):void {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.options.visible=false;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.stroke.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;li&gt;
    &lt;p class=&quot;bold&quot;&gt;The only thing missing from the script above and which is keeping it from fully functioning are the &lt;em&gt;Event Listeners&lt;/em&gt;. We&#39;ll create two, one for the &lt;em&gt;MOUSE_OVER&lt;/em&gt; mouse event, and the other for the &lt;em&gt;MOUSE_OUT&lt;/em&gt; mouse event.&lt;/p&gt;
    &lt;p class=&quot;bold&quot;&gt;What is important here is &lt;em&gt;WHICH&lt;/em&gt; object you choose. The &lt;em&gt;mouse over listener&lt;/em&gt; is rather simple: currently, we really only have one object on the stage, and that is the &lt;em&gt;main button&lt;/em&gt;; but the main button is inside of the menu. Since there is nothing else inside the menu currently visible for the user to interact with (not the options, nor the various buttons within the options), then which object we should choose is simple, &lt;em&gt;the menu&lt;/em&gt;. That is what I put in front of the listener as done so below.&lt;/p&gt;
    &lt;p class=&quot;bold&quot;&gt;Which object to choose for the second listener is a little more difficult since the whole menu is visible for this event. We could choose from any of the buttons available, the main, or any of the options. The difficulty is deciding which one would work the best. We can rule out the indvidual option buttons because we cannot put three objects in a listener and there&#39;d be no logical to choose opt_01 over opt_02 or opt_03. That leaves us with the main button, the options movieclip or the whole menu movieclip. It doesn&#39;t make sense to choose the main button since the moment we&#39;d mouse off of it to choose one of the options, the whole menu would close. With the options movieclip, recall that we created an transparent area that encompassed the entire menu and also &lt;em&gt;hung off the edges&lt;/em&gt; of the menu. It&#39;s alpha is 0%, but that doesn&#39;t mean it isn&#39;t there, so its area is taken into consideration. This means that the area of the options movieclip is roughly the same as the menu as a whole. In fact, you could choose either object and the drop-down menu would work the same. For my own purposes, I&#39;ll choose the options object because the reason for opening the menu is to choose an option; and if I read that in the listener, it makes it more clear to me that it closes when I mouse off the options.&lt;/p&gt;
    &lt;ol class=&quot;num&quot;&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var txtArray:Array = new Array(&quot;main, &quot;one&quot;, &quot;two&quot;, &quot;three&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.text=txtArray[0];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;with(menu.options) {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[1];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[2];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[3];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.visible = false;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var address:Array = new Array();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[0] = new URLRequest(&quot;http://lipsum.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[1] = new URLRequest(&quot;html-color-codes.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[2] = new URLRequest(&quot;http://dma-205.blogspot.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var btnC_01:ColorTransform = new ColorTransform();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;btnC_01.color=0x330066;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var btnC_02:ColorTransform = new ColorTransform();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;btnC_02.color=0x3399cc;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;function menu_open(evt:MouseEvent):void {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.options.visible=true;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.stroke.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;function menu_close(evt:MouseEvent):void {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.options.visible=false;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.stroke.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.addEventListener(MouseEvent.MOUSE_OVER, menu_open);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.addEventListener(MouseEvent.MOUSE_OUT, menu_close);&lt;/span&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;li&gt;
    &lt;p class=&quot;bold&quot;&gt;Now that we&#39;ve successfully opened and closed the menu, we need to make the option buttons inside function properly: we first need to create functions that make the colors of the buttons change when we mouse on and off of them. The first function changes the colors of the stroke and the text to the new color, and the second function changes them back.&lt;/p&gt;
    &lt;p class=&quot;bold&quot;&gt;A new term you will find here is the use of &lt;em&gt;evt.currentTarget&lt;/em&gt;. The term &lt;em&gt;evt&lt;/em&gt; is a kind of variable. Its first usage is inside the parentheses after the name of the function and before the term &lt;em&gt;MouseEvent&lt;/em&gt;. What this variable contains &lt;em&gt;IS&lt;/em&gt; the mouse event itself, and the mouse event happens to a particular object. By typing &lt;em&gt;evt.currentTarget&lt;/em&gt;, we are selecting whatever the mouse happens to be targeting at that moment.&lt;/p&gt;
    &lt;p class=&quot;bold&quot;&gt;Since the &lt;em&gt;OPTIONS&lt;/em&gt; movieclip is what the user mouses on top of originally, something inside that movieclip is going to be the &lt;em&gt;currentTarget&lt;/em&gt;, and that leaves us with 3 possibilities, one of the three buttons within it, &lt;em&gt;opt_01&lt;/em&gt;, &lt;em&gt;opt_02&lt;/em&gt;, or &lt;em&gt;opt_03&lt;/em&gt;. So, depending on which one the user is on top of, &lt;em&gt;THAT&lt;/em&gt; will be the &lt;em&gt;currentTarget&lt;/em&gt;. Using this piece of code prevents us from having to write two functions for each button. Instead of writing six functions, all we have to write is two.&lt;/p&gt;
    &lt;ol class=&quot;num&quot;&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var txtArray:Array = new Array(&quot;main, &quot;one&quot;, &quot;two&quot;, &quot;three&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.text=txtArray[0];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;with(menu.options) {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[1];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[2];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[3];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.visible = false;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var address:Array = new Array();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[0] = new URLRequest(&quot;http://lipsum.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[1] = new URLRequest(&quot;html-color-codes.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[2] = new URLRequest(&quot;http://dma-205.blogspot.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var btnC_01:ColorTransform = new ColorTransform();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;btnC_01.color=0x330066;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var btnC_02:ColorTransform = new ColorTransform();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;btnC_02.color=0x3399cc;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;function menu_open(evt:MouseEvent):void {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.options.visible=true;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.stroke.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;function menu_close(evt:MouseEvent):void {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.options.visible=false;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.stroke.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;function option_over(evt:MouseEvent):void{&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;evt.currentTarget.stroke.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;evt.currentTarget.btn_txt.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;function option_out(evt:MouseEvent):void{&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;evt.currentTarget.stroke.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;evt.currentTarget.btn_txt.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.addEventListener(MouseEvent.MOUSE_OVER, menu_open);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.addEventListener(MouseEvent.MOUSE_OUT, menu_close);&lt;/span&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;li&gt;
    &lt;p class=&quot;bold&quot;&gt;What we do have to type a lot of are listeners. Since we have 3 option buttons, and since we have two events for each (&lt;em&gt;MOUSE_OVER &amp; MOUSE_OUT&lt;/em&gt;), we have to type six listeners for these two functions.&lt;/p&gt;
    &lt;ol class=&quot;num&quot;&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var txtArray:Array = new Array(&quot;main, &quot;one&quot;, &quot;two&quot;, &quot;three&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.text=txtArray[0];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;with(menu.options) {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[1];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[2];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[3];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.visible = false;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var address:Array = new Array();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[0] = new URLRequest(&quot;http://lipsum.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[1] = new URLRequest(&quot;html-color-codes.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[2] = new URLRequest(&quot;http://dma-205.blogspot.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var btnC_01:ColorTransform = new ColorTransform();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;btnC_01.color=0x330066;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var btnC_02:ColorTransform = new ColorTransform();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;btnC_02.color=0x3399cc;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;function menu_open(evt:MouseEvent):void {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.options.visible=true;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.stroke.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;function menu_close(evt:MouseEvent):void {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.options.visible=false;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.stroke.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;function option_over(evt:MouseEvent):void{&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;evt.currentTarget.stroke.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;evt.currentTarget.btn_txt.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;function option_out(evt:MouseEvent):void{&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;evt.currentTarget.stroke.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;evt.currentTarget.btn_txt.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.addEventListener(MouseEvent.MOUSE_OVER, menu_open);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.addEventListener(MouseEvent.MOUSE_OUT, menu_close);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_01.addEventListener(MouseEvent.MOUSE_OVER, option_over);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_01.addEventListener(MouseEvent.MOUSE_OUT, option_out);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_02.addEventListener(MouseEvent.MOUSE_OVER, option_over);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_02.addEventListener(MouseEvent.MOUSE_OUT, option_out);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_03.addEventListener(MouseEvent.MOUSE_OVER, option_over);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_03.addEventListener(MouseEvent.MOUSE_OUT, option_out);&lt;/span&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;li&gt;
    &lt;p class=&quot;bold&quot;&gt;At this point, we&#39;ve gotten the menu to open and close, we&#39;ve gotten the buttons to change colors when you mouse on and off of them, but we haven&#39;t gotten it to &lt;em&gt;DO&lt;/em&gt; anything. The whole point of a drop-down menu is for the user to have a series of link options that bring up new &#39;pages&#39; or take the user to different content. Therefore, the very last thing we must do is utilize those &lt;em&gt;URLs&lt;/em&gt; that we put inside of that array near the beginning of this script.&lt;/p&gt;
    &lt;p class=&quot;bold&quot;&gt;We will do this with a new statement type known as the &lt;em&gt;switch statment&lt;/em&gt;. The &lt;em&gt;switch statement&lt;/em&gt; functions similarly to an &lt;em&gt;if/else conditional statement&lt;/em&gt;; but whereas the if/else statement has two conditions (&lt;em&gt;if&lt;/em&gt; or &lt;em&gt;else&lt;/em&gt;), the switch statment may have many different conditions. This is perfect for the use of a drop-down menu. Our menu only has three options, but some drop-down menus contain many more options.&lt;/p&gt;
    &lt;p class=&quot;bold&quot;&gt;The conditions in a switch statement are known as &lt;em&gt;cases&lt;/em&gt;, and they operate sort of like common speech as such:&lt;/p&gt;
    &lt;p class=&quot;bold&quot;&gt;&lt;em&gt;In the first case, do THIS&lt;br/&gt;
    In the second case, do THAT&lt;br/&gt;
    In the third case, do this OTHER THING&lt;/em&gt;.&lt;/p&gt;
    &lt;p class=&quot;bold&quot;&gt;It really is this simple. We start by creating a variable which will contain the &lt;em&gt;instance name&lt;/em&gt; of whichever button the user clicks on:&lt;/p&gt;
    &lt;p class=&quot;bold&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;em&gt;var optionBtn:String = evt.currentTarget.name;&lt;/em&gt;&lt;/p&gt;
    &lt;p class=&quot;bold&quot;&gt;Next comes the switch statment with &lt;em&gt;3 cases&lt;/em&gt;, one for each button which have the instance names of &lt;em&gt;opt_01&lt;/em&gt;, &lt;em&gt;opt_02&lt;/em&gt;, and &lt;em&gt;opt_03&lt;/em&gt;. Depending on which one of those buttons the user mouses over, its instance name will be stored in the variable. Which &lt;em&gt;switch case&lt;/em&gt; is selected depends on which name is contained in the variable. If it finds &quot;opt_01&quot; inside that variable, then the switch statement goes with &lt;em&gt;case 1&lt;/em&gt;; if it finds one of the other instance names inside, then it goes with the corresponding case, either the 2nd or the 3rd.&lt;/p&gt;
    &lt;p class=&quot;bold&quot; style=&quot;color:#cc0000;&quot;&gt;switch (optionBtn) {&lt;br/&gt;
 &amp;nbsp;&amp;nbsp;case &quot;opt_01&quot; :&lt;br/&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trace(optionBtn);&lt;br/&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;&lt;br/&gt;
 &amp;nbsp;&amp;nbsp;case &quot;opt_02&quot; :&lt;br/&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trace(optionBtn);&lt;br/&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;&lt;br/&gt;
 &amp;nbsp;&amp;nbsp;case &quot;opt_03&quot; :&lt;br/&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trace(optionBtn);&lt;br/&gt;
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;&lt;br/&gt;
 }&lt;/p&gt;
 &lt;p class=&quot;bold&quot;&gt;Whichever &lt;em&gt;switch case&lt;/em&gt; is selected, the function is going to set off a &lt;em&gt;trace action&lt;/em&gt;, and this action will tell us what is inside of the &lt;em&gt;variable optionBtn&lt;/em&gt;. What we hope will come out is the name of the button that you click on. The &lt;em&gt;break&lt;/em&gt; action is necessary to stop the switch once a case is selected. This is just a temporary set of actions. We will modify them once we are certain the switch functions properly. If we can get a &lt;em&gt;different button instance name&lt;/em&gt; each time we click on a different button, then we know the switch is working properly and we will be able to remove the &lt;em&gt;trace&lt;/em&gt; actions and put in the right ones.&lt;/p&gt;
    &lt;ol class=&quot;num&quot;&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var txtArray:Array = new Array(&quot;main, &quot;one&quot;, &quot;two&quot;, &quot;three&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.text=txtArray[0];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;with(menu.options) {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[1];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[2];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[3];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.visible = false;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var address:Array = new Array();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[0] = new URLRequest(&quot;http://lipsum.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[1] = new URLRequest(&quot;html-color-codes.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[2] = new URLRequest(&quot;http://dma-205.blogspot.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var btnC_01:ColorTransform = new ColorTransform();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;btnC_01.color=0x330066;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var btnC_02:ColorTransform = new ColorTransform();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;btnC_02.color=0x3399cc;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;function menu_open(evt:MouseEvent):void {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.options.visible=true;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.stroke.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;function menu_close(evt:MouseEvent):void {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.options.visible=false;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.stroke.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;function option_over(evt:MouseEvent):void{&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;evt.currentTarget.stroke.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;evt.currentTarget.btn_txt.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;function option_out(evt:MouseEvent):void{&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;evt.currentTarget.stroke.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;evt.currentTarget.btn_txt.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;function option_click(evt:MouseEvent):void{&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var optionBtn:String = evt.currentTarget.name;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;switch(optionBtn) {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case &quot;opt_01&quot; :&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trace(optionBtn);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case &quot;opt_02&quot; :&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trace(optionBtn);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case &quot;opt_03&quot; :&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trace(optionBtn);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      
      
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.addEventListener(MouseEvent.MOUSE_OVER, menu_open);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.addEventListener(MouseEvent.MOUSE_OUT, menu_close);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_01.addEventListener(MouseEvent.MOUSE_OVER, option_over);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_01.addEventListener(MouseEvent.MOUSE_OUT, option_out);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_02.addEventListener(MouseEvent.MOUSE_OVER, option_over);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_02.addEventListener(MouseEvent.MOUSE_OUT, option_out);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_03.addEventListener(MouseEvent.MOUSE_OVER, option_over);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_03.addEventListener(MouseEvent.MOUSE_OUT, option_out);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_01.addEventListener(MouseEvent.CLICK, option_click);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_02.addEventListener(MouseEvent.CLICK, option_click);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_03.addEventListener(MouseEvent.CLICK, option_click);&lt;/span&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;li&gt;
    &lt;p class=&quot;bold&quot;&gt;Now that you know the switch statement is functioning properly in that when the user clicks on a button, whichever one of the three buttons that is, a different case is chosen, we can replace the trace() actions with real actions telling the script to do something. What we want to tell the script to do is something with those URLs in the array.&lt;/p&gt;
    &lt;p class=&quot;bold&quot;&gt;Ultimately, what you should want it to do is load one of your pages, perhaps gallery one or gallery two, depending on what you have in your drop-down menus; however, what we will do here is simply make it load &lt;em&gt;external websites&lt;/em&gt;. The code to load external websites is simple, we just have to tell flash to navigate to a web address, known in web parlance as &lt;em&gt;URLs&lt;/em&gt;.&lt;/p&gt;
    &lt;ol class=&quot;num&quot;&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var txtArray:Array = new Array(&quot;main, &quot;one&quot;, &quot;two&quot;, &quot;three&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.text=txtArray[0];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;with(menu.options) {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[1];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[2];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;opt_01.btn_txt.text=txtArray[3];&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.visible = false;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var address:Array = new Array();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[0] = new URLRequest(&quot;http://lipsum.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[1] = new URLRequest(&quot;html-color-codes.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;address[2] = new URLRequest(&quot;http://dma-205.blogspot.com&quot;);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var btnC_01:ColorTransform = new ColorTransform();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;btnC_01.color=0x330066;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;var btnC_02:ColorTransform = new ColorTransform();&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;btnC_02.color=0x3399cc;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;function menu_open(evt:MouseEvent):void {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.options.visible=true;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.stroke.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;function menu_close(evt:MouseEvent):void {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.options.visible=false;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.stroke.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;menu.main.btn_txt.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;function option_over(evt:MouseEvent):void{&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;evt.currentTarget.stroke.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;evt.currentTarget.btn_txt.transform.colorTransform=btnC_02;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;function option_out(evt:MouseEvent):void{&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;evt.currentTarget.stroke.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;evt.currentTarget.btn_txt.transform.colorTransform=btnC_01;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;function option_click(evt:MouseEvent):void{&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var optionBtn:String = evt.currentTarget.name;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;switch(optionBtn) {&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case &quot;opt_01&quot; :&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;text-decoration:line-through;&quot;&gt;trace(optionBtn);&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000; text-decoration:strike-through;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;navigateToURL(address[0]);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case &quot;opt_02&quot; :&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;text-decoration:line-through;&quot;&gt;trace(optionBtn);&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;navigateToURL(address[1]);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case &quot;opt_03&quot; :&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;text-decoration:line-through;&quot;&gt;trace(optionBtn);&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;navigateToURL(address[2]);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/li&gt;
      
      
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.addEventListener(MouseEvent.MOUSE_OVER, menu_open);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.addEventListener(MouseEvent.MOUSE_OUT, menu_close);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_01.addEventListener(MouseEvent.MOUSE_OVER, option_over);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_01.addEventListener(MouseEvent.MOUSE_OUT, option_out);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_02.addEventListener(MouseEvent.MOUSE_OVER, option_over);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_02.addEventListener(MouseEvent.MOUSE_OUT, option_out);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_03.addEventListener(MouseEvent.MOUSE_OVER, option_over);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_03.addEventListener(MouseEvent.MOUSE_OUT, option_out);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_01.addEventListener(MouseEvent.CLICK, option_click);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#aaaaaa;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_02.addEventListener(MouseEvent.CLICK, option_click);&lt;/span&gt;&lt;/li&gt;
      &lt;li class=&quot;num&quot; style=&quot;padding:2px 5px 0px 1px; line-height:10pt; background-color:#cccccc;&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot; color:#333333;&quot;&gt;&amp;nbsp;&amp;nbsp;menu.options.opt_03.addEventListener(MouseEvent.CLICK, option_click);&lt;/span&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
&lt;/ol&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;br/&gt;
&lt;a name=&quot;Sound&quot;&gt;&lt;/a&gt;
&lt;ol class=&quot;num&quot;&gt;
  &lt;li&gt;&lt;em&gt;ADDING SOUND&lt;/em&gt;
    &lt;p class=&quot;bold&quot;&gt;Creating a Sound object is much the same as creating a URLRequest, an Array, or a Color object. You follow the same syntax in which you create a variable and then occupy it with a new sound object:&lt;/p&gt;
    &lt;p class=&quot;bold&quot; style=&quot;color:#cc0000;&quot;&gt;var myMusic:Sound = new Sound();&lt;/p&gt;
    &lt;p class=&quot;bold&quot;&gt;Next, you must create a URLRequest object in order to request an external audio file. Finally, you load the audio file into your sound object, and then you&#39;re able to play and stop it at will:&lt;/p&gt;
    &lt;p class=&quot;bold&quot; style=&quot;color:#cc0000;&quot;&gt;var musicReq:URLRequest = new URLRequest(&quot;audio/mySong.mp3&quot;); &lt;-- type YOUR song title (must be .mp3 file) and its location, properly segregated into its own folder.&lt;br/&gt;
    myMusic.load(musicReq); &lt;-- this loads a particular song file into the sound object;&lt;br/&gt;
    myMusic.play(); &lt;-- this plays the song; and &lt;br/&gt;
    myMusic.stop(); &lt;-- this stops the song.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;You must use these actions together with a toggle button (one that has only two positions, &lt;em&gt;on/off&lt;/em&gt;, and in which we know from looking at it whether it is on or whether it is off, to make music play and to enable the user to turn it on and off at will.&lt;/li&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://dma-205.blogspot.com/feeds/7235614580675552248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dma-205.blogspot.com/2009/12/fall-09-week-12-113009-wed-900-1200.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/7235614580675552248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7391363757662049368/posts/default/7235614580675552248'/><link rel='alternate' type='text/html' href='http://dma-205.blogspot.com/2009/12/fall-09-week-12-113009-wed-900-1200.html' title='&lt;small&gt;Fall 09 &lt;/small&gt;week 12:&lt;br&gt;—&lt;small&gt;11/30/09:  Wed. 9:00 - 12:00'/><author><name>carter</name><uri>http://www.blogger.com/profile/14166382855798675286</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/2650/3938/1600/carter1.jpg'/></author><thr:total>0</thr:total></entry></feed>