<html><!-- #BeginTemplate "/Templates/2002.dwt" --><!-- DW6 -->
<head>
<!-- #BeginEditable "doctitle" --> 
<title>WIT 2002 Flash lesson 2</title>
<!-- #EndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#003300" onLoad="MM_preloadImages('../../../img/2002logo-alt-over.gif')" leftmargin="0" topmargin="20" link="#0033CC" vlink="#009933" alink="#66CC66" background="../../../img/background2002.jpg">
<font face="Arial, Helvetica, sans-serif"> </font> <font face="Arial, Helvetica, sans-serif"> 
<table width="100%" border="0" cellspacing="0" cellpadding="10">
  <tr>
    <td rowspan="3" width="163" valign="top" align="left"> 
      <p><a href="../../index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Logo','','../../../img/2002logo-alt-over.gif',1)"><img name="Logo" border="0" src="../../../img/2002logo-alt.gif" width="150" height="150"></a></p>
      <table width="100%" border="0" cellspacing="10" cellpadding="0">
        <tr> 
          <td width="5">&nbsp;</td>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
              <param name=movie value="/Templates/2002home.swf">
              <param name="wmode" value="transparent">
			  <param name=quality value=high>
              <param name="BASE" value="."><param name="BGCOLOR" value="#006600">
              
              <embed src="/Templates/2002home.swf" base="."  quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#006600">
              </embed> 
            </object></td>
        </tr>
        <tr> 
          <td width="5">&nbsp;</td>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
              <param name=movie value="/Templates/2002about.swf">
              <param name="wmode" value="transparent">
			  <param name=quality value=high>
              <param name="BASE" value=".">
              <param name="BGCOLOR" value="#006600">
              <embed src="/Templates/2002about.swf" base="."  quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#006600">
              </embed> 
            </object></td>
        </tr>
        <tr> 
          <td width="5">&nbsp;</td>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
              <param name=movie value="/Templates/2002homerooms.swf">
              <param name="wmode" value="transparent">
			  <param name=quality value=high>
              <param name="BASE" value=".">
              <param name="BGCOLOR" value="#006600">
              <embed src="/Templates/2002homerooms.swf" base="."  quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#006600">
              </embed> 
            </object></td>
        </tr>
        <tr> 
          <td width="5">&nbsp;</td>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
              <param name=movie value="/Templates/2002curriculum.swf">
              <param name="wmode" value="transparent">
			  <param name=quality value=high>
              <param name="BASE" value=".">
              <param name="BGCOLOR" value="#006600">
              <embed src="/Templates/2002curriculum.swf" base="."  quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#006600">
              </embed> 
            </object></td>
        </tr>
        <tr> 
          <td width="5">&nbsp;</td>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
              <param name=movie value="/Templates/2002software.swf">
              <param name="wmode" value="transparent">
			  <param name=quality value=high>
              <param name="BASE" value=".">
              <param name="BGCOLOR" value="#006600">
              <embed src="/Templates/2002software.swf" base="."  quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#006600">
              </embed> 
            </object></td>
        </tr>
        <tr> 
          <td width="5">&nbsp;</td>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
              <param name=movie value="/Templates/2002mentor.swf">
              <param name="wmode" value="transparent">
			  <param name=quality value=high>
              <param name="BASE" value=".">
              <param name="BGCOLOR" value="#006600">
              <embed src="/Templates/2002mentor.swf" base="."  quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#006600">
              </embed> 
            </object></td>
        </tr>
        <tr> 
          <td width="5">&nbsp;</td>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
              <param name=movie value="/Templates/2002projects.swf">
              <param name="wmode" value="transparent">
			  <param name=quality value=high>
              <param name="BASE" value=".">
              <param name="BGCOLOR" value="#006600">
              <embed src="/Templates/2002projects.swf" base="."  quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#006600">
              </embed> 
            </object></td>
        </tr>
        <tr> 
          <td width="5">&nbsp;</td>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
              <param name=movie value="/Templates/2002feedback.swf">
              <param name="wmode" value="transparent">
			  <param name=quality value=high>
              <param name="BASE" value=".">
              <param name="BGCOLOR" value="#006600">
              <embed src="/Templates/2002feedback.swf" base="."  quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#006600">
              </embed> 
            </object></td>
        </tr>
        <tr> 
          <td width="5">&nbsp;</td>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="100" height="22">
              <param name=movie value="/Templates/2002search.swf">
              <param name="wmode" value="transparent">
			  <param name=quality value=high>
              <param name="BGCOLOR" value="#006600">
              <embed src="/Templates/2002search.swf" base=""  quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#006600">
              </embed> 
            </object></td>
        </tr>
      </table>
      <div align="center"></div>
          </td>
    <td valign="top" align="left" colspan="2" height="47"> 
      <h1><!-- #BeginEditable "title" -->Introduction to Flash, lesson 2<!-- #EndEditable --></h1>
    </td>
  </tr>
  <tr> 
    <td colspan="2" valign="top" align="left"> <!-- #BeginEditable "body" --> 
      <h1 align="center">WIT 2002</h1>
      <h1 align="left">Flash 2</h1>
      <h3>Agenda</h3>
      <ul>
        <li></li>
        <li>Check out some funny Flash movies at <a href="http://www.joecartoon.com">http://www.joecartoon.com</a></li>
        <li>Today's topics: 
          <ul>
            <li><a href="#1">Setting up a new movie</a></li>
            <li><a href="#2">Creating a common set of elements</a></li>
            <li><a href="#3">Adding buttons</a></li>
            <li><a href="#4">Adding actions to buttons</a></li>
            <li><a href="#5">Adding sound to buttons</a></li>
            <li><a href="#11">Onion skin</a></li>
            <li><a href="#7">Importing images</a></li>
            <li><a href="#10">Creating a mask layer</a></li>
            <li><a href="#12">Frame actions</a></li>
            <li><a href="#6">Creating new buttons</a></li>
            <li><a href="#8">Publishing your movie</a></li>
            <li><a href="#9">Putting your movie on the Web</a></li>
          </ul>
          <p>&nbsp;</p>
        </li>
      </ul>
      <p>Today we're going to create a gallery of images of members of the class, 
        <a href="classpix.html">like this</a>. (Here's a <a href="classpixsmall.html">smaller 
        version</a> that I will actually use for the notes that follow.)</p>
      <p><a href="classpix.fla">Here is the *.fla for this movie.</a> You might 
        want to download it to check out the finished product if you get stuck 
        along the way.</p>
      <p> However, I want you to use your creativity to alter the movie as we 
        create it to fit your personal style</p>
      <p>Here's the final timeline for the class picture gallery:</p>
      <p align="center"><img src="images/flash11.jpg" width="395" height="201"></p>
      <p align="left">Some things to notice:</p>
      <ul>
        <li>There are 8 frames in the movie. The frame per second rate is .5. 
          (This means each frame plays for 2 seconds.)</li>
        <li>The &quot;front&quot; layer only plays for one frame. It's just an 
          entrance into the rest of the movie.</li>
        <li>The background keyframe covers all the frames from 2 to 8.</li>
        <li>The &quot;mask&quot; layers control what appears on the Zooms and 
          Content layers. (Note that the mask layers could change from frame to 
          frame if I wanted them to.)</li>
        <li>There are &quot;actions&quot; associated with the first &quot;Front&quot; 
          frame, and all the &quot;content&quot; keyframes. We'll explore these 
          actions later.</li>
      </ul>
      <p>This is the library that we'll end up with (three views of the same library):</p>
      <p align="center"><img src="images/flash12.jpg" width="327" height="195"> 
        <img src="images/flash13.jpg" width="341" height="419"> </p>
      <p align="center"><img src="images/flash14.jpg" width="300" height="548"></p>
      <h3><a name="1"></a>Setting up a new movie</h3>
      <p>Create a new folder on your desktop, called March28. Use this for everything 
        in this session. </p>
      <p>Open Flash. A new movie should open. Save this movie into the March28 
        folder. Call it &quot;classpix.fla.&quot;</p>
      <p>Click Modify|Movie. Change the background color to something you like.</p>
      <p><a name="2"></a>Creating a common set of elements</p>
      <p>We need to create the &quot;front page&quot; and the background for the 
        gallery itself.</p>
      <p>Rename the default layer &quot;front&quot; and add another layer, just 
        above it, called &quot;background.&quot;</p>
      <p>Make a keyframe in &quot;front&quot; frame 1, and another keyframe in 
        &quot;background&quot; frame 2.</p>
      <p>To create the radial gradient look like on my movie, draw a rectangle 
        with a &quot;stroke&quot; of dotted lines and a &quot;fill&quot; that 
        is a gradient. The &quot;Fill&quot; panel can be used to tweak the gradient 
        to make it look like what you want.</p>
      <p>Use the text tool to add some text.</p>
      <p>Use the Character panel to change font sizes, styles, and colors.</p>
      <p>Use the &quot;Align&quot; panel to line up your text the way you want 
        it.</p>
      <p>Now we'll need to add a button to enter the gallery. Click Window|Common 
        Library|Buttons to find a button that you like. Drag it onto the &quot;front&quot; 
        later. Right-click (control-click) the button, and choose Actions. Add 
        the &quot;goto frame number 2&quot; action to the button.</p>
      <p>Also, since we want the movie to STOP on the first frame (until the button 
        is pressed), let's add a Stop action to the frame. Right-click or control-click 
        the frame and choose action. Add the &quot;Stop&quot; action.</p>
      <p>Now create the background. Create a place for information, and a place 
        for the images, and a place for the controls.</p>
      <p>For information, you'll use the text tool to make labels, &quot;Name:&quot; 
        and &quot;Web Address.&quot; These are &quot;static&quot; text (they don't 
        ever change).</p>
      <p>Then, you'll use the text tool to create &quot;input&quot; text boxes 
        for the actual information. Use the Text Options panel to change the text 
        type to &quot;Input.&quot; Also, in the &quot;variable&quot; field, type 
        &quot;url&quot; (no quotes). This field will be used to set the variable 
        &quot;url&quot; to the actual url of each person's web address. Then, 
        when the Get Web Address button (see below) is pressed, a new browser 
        window will open with that URL. </p>
      <p>I know this is confusing. For now, just do it. This will become clearer 
        later.</p>
      <p>Use the rectangle tool to make placeholders for the images and the controls.</p>
      <p>You can play with the paint bucket fill tool and gradients by clicking 
        on the paint bucket color picker.</p>
      <h3><a name="3"></a>Adding buttons</h3>
      <p>Create a new layer. Call it &quot;Controls.&quot; Make it active. Create 
        a new keyframe in frame 2. (Leave keyframe 1 blank in this layer.) </p>
      <p>Choose a set of buttons from the Common Library and drag them onto the 
        bottom rectangle of your background. Align them.</p>
      <p>We're going to create three versions of the controls. Frame 2 will have 
        a version in which the &quot;rewind&quot; and &quot;previous&quot; buttons 
        don't work and result in a sound. Frame 8 will have a version in which 
        &quot;next&quot; and &quot;play&quot; don't work. Frames 2 and 8 will 
        also contain a &quot;stop&quot; frame action. All the other frames will 
        have working versions of all of the buttons.</p>
      <p>For now, we'll just make one version (in Frame 2), and then copy that 
        version into frames 3 and 8 after we add some actions to the buttons. 
      </p>
      <h3><a name="4"></a>Adding actions to buttons</h3>
      <p>Button actions are applied to every instance of a button in a movie. 
        To assign different actions to different buttons, create copies of the 
        buttons in the library. We'll cover that later.</p>
      <p>For now, let's just add actions to the buttons in frame 2. The following 
        images show what goes for each button. (the button is highlighted at the 
        bottom right of each image.)</p>
      <p align="center"><img src="images/flash20.jpg" width="567" height="257"></p>
      <p align="center"><img src="images/flash21.jpg" width="499" height="269"></p>
      <p align="center"><img src="images/flash22.jpg" width="513" height="273"></p>
      <p align="center"><img src="images/flash23.jpg" width="550" height="275"></p>
      <p align="center"><img src="images/flash24.jpg" width="583" height="247"></p>
      <p>Now, we're going to copy the buttons to frames 3 and 8. Right-click (control-click) 
        the keyframe in the Controls layer, frame 2 and choose Copy Frames. Click 
        in the same layer in frame 3 and choose Paste. This is the keyframe that 
        will control most of the frames in the movie.</p>
      <p> Then, click on the same layer in frame 8 and choose Paste. This is the 
        keyframe that won't allow playing or moving to the next image.</p>
      <h3></h3>
      <h3><a name="5"></a>Adding sound to buttons</h3>
      <p>We're going to add a sound to buttons in frames 2 and 8 that tells the 
        user that a given button doesn't work in a certain situation.</p>
      <p>Flash contains some default sounds, but for this procedure, let's download 
        <a href="MusicaCriticalStop.wav">this sound</a> to the folder on your 
        desktop. The sound indicates &quot;this doesn't work.&quot; (Right-click 
        or control click and choose Save Link As...)</p>
      <p>To import a sound into Flash, choose File|Import and change file type 
        to All Sound Formats. Choose the sound you want a double-click. The sound 
        will now appear in the library for your movie.</p>
      <p> Now, as for adding the sound to the right buttons. </p>
      <p>In frame 2, the rewind and previous buttons will not work; in Frame 8, 
        the next and play buttons won't work. Use the same sound for each. </p>
      <p>You can add sounds to and of the frames of a button (up, over, down, 
        hit).</p>
      <p>But first, we need to create nonfunctioning duplicates of the &quot;rewind,&quot; 
        &quot;previous,&quot; &quot;next&quot; and &quot;play&quot; buttons and 
        put the &quot;THIS DOESN'T WORK&quot; sound in the duplicates, and use 
        them in the places where the buttons don't work. </p>
      <p>To duplicate the buttons, find them in your movie's library. (NOT in 
        the common library, but in yours.) Right-click (control-click) the button 
        in the library and choose Duplicate. Name the buttons &quot;nonfunctioning 
        left,&quot; etc.</p>
      <p>NOTE: I have created some folders in my library to make it easier to 
        find what I need.</p>
      <p align="center"><img src="images/flash14.jpg" width="300" height="548"></p>
      <p>Now, go to frame 2, and replace the &quot;rewind&quot; button with the 
        nonfunctioning gel Rewind button.. Choose Actions. Delete the action associated 
        with the button.</p>
      <p>Also, replace the &quot;previous&quot; button in Frame 2, and for the 
        &quot;next&quot; and &quot;play&quot; buttons in Frame 8. Make sure you 
        delete the actions associated with the nonfunctiong buttons as well.</p>
      <p>Now, we're going to add sound to the &quot;nonfunctioning&quot; buttons. 
        To do this, right-click (control-click) one of the non-functioning buttons 
        in frame 2 or 8. This will open a separate editing window. Add a layer 
        to the button. Call it sounds or sound. Add a keyframe in the &quot;down&quot; 
        frame. Click and drag the &quot;this doesn't work&quot; sound onto the 
        stage and drop it.. It doesn't matter where you put it. You'll see a mini-version 
        of the sound waveform appear in the appropriate keyframe. </p>
      <p align="center"><img src="images/flash25.jpg" width="310" height="154"></p>
      <p align="left">Repeat this procedure for the two nonfunctioning buttons 
        in frame 2 and for the two nonfunctioning buttons in frame 8.</p>
      <h3><a name="11"></a>Onion Skinning</h3>
      <p>When you want to work on multiple frames at a time (for example, to align 
        elements across frames, or to add content to several keyframes at once), 
        use onion skinning, which is a way of seeing the content of multiple frames 
        at once.</p>
      <p>BE CAREFUL! You can do some things with onion skinning that you don't 
        intend to do. Be especially careful when using onion skinning with &quot;edit 
        multiple frames.&quot; </p>
      <p>For example, you might want to onion skin in order to make sure your 
        controls line up across the various frames. In this image, the buttons 
        are not quite lined up:</p>
      <p align="center"><img src="images/flash29.jpg" width="397" height="314"> 
      </p>
      <p>To turn on onion skinning, click the small button on the timeline that 
        looks like this:<img src="images/flash38.jpg" width="27" height="21" align="middle"></p>
      <p>To turn on &quot;edit multiple frames,&quot; click the small button on 
        the timeline that looks like this:<img src="images/flash39.jpg" width="28" height="26" align="middle"></p>
      <p>You can use the select tool to draw a selection marquis to select instances 
        on multiple frames, and then use the Align panel to align them.</p>
      <p>Now, they're all lined up:</p>
      <p align="center"><img src="images/flash30.jpg" width="326" height="56"></p>
      <p align="left">BE SURE to turn off onion skinning when you're done. I&quot;ve 
        messed up many an application by forgetting this!</p>
      <h3><a name="7"></a>Importing images</h3>
      <p>A group of images is <a href="../../../2001/img/firstclass/firstclass">here</a>. 
        Save several into your work folder. </p>
      <p>To import the images into your movie's library, choose File|Import... 
        and then hold down the SHIFT key while you click the first and the last 
        one from the work folder, and then click OK. All of the images will be 
        imported into the library. </p>
      <p>I put this into a folder in my library called &quot;raw images.&quot; 
        This is different from the &quot;zoom images&quot; folder, which contains 
        the images on the zoom layer. For the zoom function to work, the zoom 
        images must be converted to &quot;symbols.&quot; I'll discuss this later.</p>
      <h3><a name="10"></a>Creating a mask layer</h3>
      <p>A &quot;mask layer&quot; is a layer that is linked to another layer and 
        that &quot;masks&quot; the content of the second layer. Only areas that 
        contain content on the mask layer will show through.</p>
      <p>We're going to use two &quot;mask layers&quot; to keep us from having 
        to crop every image we use in the gallery.</p>
      <p>Insert a new layer just above the &quot;content&quot; layer. Name it 
        &quot;content mask.&quot; Make this new layer active. Draw three rectangles: 
        one just inside the &quot;Name&quot; text box, one just inside the &quot;Web 
        Address&quot; text box, and one just inside the &quot;Photo&quot; textbox. 
      </p>
      <p align="center"><img src="images/flash34.jpg" width="358" height="254"></p>
      <p>Then, right-click (control-click) the new layer, and choose &quot;Mask&quot;. 
        Then, lock the content mask layer and the content layer. They should now 
        look llike this:</p>
      <p align="center"><img src="images/flash35.jpg" width="363" height="415"></p>
      <p>Now we're going to add two more layers, &quot;Zoom&quot; and &quot;Zoom 
        mask.&quot; The &quot;Zoom&quot; layer will contain blow-up images of 
        the members of the class and the &quot;Zoom mask&quot; layer will mask 
        that layer to show the zoomed image only in the area we want it to.</p>
      <p>Create a keyfrmae in frame 2 of the Zooms and the Zoom mask layer. </p>
      <p>In Zooms, frame 2, drag one of your large pictures and place it and scale 
        it so the main part of the image is on the stage, thus:</p>
      <p align="center"><img src="images/flash33.jpg" width="300" height="357"></p>
      <p>Draw a rectangle in frame 2 of the Zoom mask layer that takes up the 
        space above the controls, with a margin on all sides. </p>
      <p align="center"><img src="images/flash31.jpg" width="300" height="193"></p>
      <p>You won't see the mask applied until BOTH the masked layer and the mask 
        layer are locked and visible, like this:</p>
      <p align="center"><img src="images/flash32.jpg" width="300" height="250"></p>
      <h3><a name="12"></a>Frame Actions</h3>
      <p>You can associate actions with frames. Then, whenever a frame loads, 
        an action is performed. </p>
      <p>In the classpix movie, there is a STOP action in the &quot;front&quot; 
        layer's one frame:</p>
      <p align="center"><img src="images/flash15.jpg" width="327" height="293"></p>
      <p>Also, when each subsequent frame loads, the &quot;zoom&quot; version 
        of the picture is hidden, by an action associated with the content layer.. 
      </p>
      <p>In order to do this, I had to make a &quot;symbol&quot; out of the zoom 
        images. This is the only way to be able to control that image's properties 
        using actions.</p>
      <p>Once I added my images to the zoom layer, and adjusted their size and 
        position, I converted them to symbols. To do this, click Insert|Convert 
        to symbol. Choose the movie clip option. Give it a name that makes sense, 
        like &quot;cac.&quot; </p>
      <p>Once an image is converted to a movie clip, each instance of the movie 
        clip can have separate properties. You need to name the instance. We're 
        going to name each instance of the different images the same thing, so 
        we only need to write one version of our zoom script. </p>
      <p>Choose the &quot;instance&quot; panel and add a name, for example &quot;pix_zoom..&quot;</p>
      <p>Now, you can &quot;target&quot; this instance in an action script.</p>
      <p>Right-click (control-click) frame 2 of the &quot;content&quot; layer. 
        Choose Actions. Let's create an action. (This is not a basic action, but 
        you use clicks to build it.)</p>
      <p>Choose Actions. Then setProperty. The property we're going to set is 
        &quot;_visible.&quot; We're going to set the visibility of &quot;pix_zoom&quot; 
        to &quot;false.&quot; (don't type in the quotation marks.) False must 
        be treated as an &quot;expression,&quot; since it is a value rather than 
        a string. Check the &quot;expression&quot; box.</p>
      <p align="center"><img src="images/flash16.jpg" width="547" height="343"></p>
      <p>&nbsp;</p>
      <h3><a name="6"></a>Creating new buttons</h3>
      <p>Choose Insert|New Symbol. Make it a button, and call it zoom.</p>
      <p>A new window will open, called zoom. This is the button editing window.</p>
      <p>There are four frames, each corresponding to one of the &quot;states&quot; 
        of the button: up, over, down, and hit. </p>
      <p>The &quot;up&quot; version is the regular state of the button.</p>
      <p>&nbsp;</p>
      <p>&quot;Hit&quot; is the area in which the cursor is considered to be over 
        the button. You might want this to be bigger than the button itself.</p>
      <p>In the Up frame, draw your tool. You may use this image if you want: 
        <img src="images/flash27.jpg" width="145" height="59"> (Right-click or 
        control-click, choose Save Image As...). Then, in Flash, choose File|Import... 
        and select this image.</p>
      <p>When you're done with the up frame, create a new keyframe in the over 
        frame. This frame will appear when the mouse cursor passes over the button. 
        Add some kind of highlighting. (A differernt fill color or surrounding 
        box). When you're done with the over frame, add a &quot;down&quot;keyframe. 
      </p>
      <p>To create the &quot;down&quot; press effect, select the entire button, 
        and move it a few pixels right and down. (the arrow keys work well to 
        move it after selecting it). Now add some kind of shadow to the left and 
        top of the image. If you want you can use this: <img src="images/flash28.jpg" width="145" height="63"></p>
      <p>In the &quot;hit&quot; keyframe, draw a rectangle slightly bigger than 
        your button. This is the area the cursor has to be in to activate the 
        button.</p>
      <p>If you want to be really cruel or clever, draw a rectangle here that 
        is somewhere else in the image entirely from your button!</p>
      <p>Now we'll add <a href="MusicaCriticalStop.wav">this sound</a> to the 
        zoom button:</p>
      <p><img src="images/flash26.jpg" width="319" height="117"></p>
      <p>We'll need to add three instances of the zoom button on the controls 
        layer: one to frame 2, one to frame 3, and one to frame 4. Click and drag 
        the button from the library to the stage when the appropriate layer and 
        frame is selected. </p>
      <p>To make sure these instances are lined up, change to onion skin mode. 
        Set the markers at frame 2 and frame 8, and choose edit multiple frames. 
        Use the selection tool to draw a selection marque around the zoom tool, 
        and then use the Align panel to line them up.</p>
      <p>Now we'll create one more button, to load the URL listed in the Web Address 
        field.</p>
      <p>Click Insert|New Symbol... and choose the button type. Call it getWebAddress.</p>
      <p>Let's make the UP symbol look like this:<img src="images/getweb.jpg" width="109" height="67"></p>
      <p>and the OVER like this:<img src="images/getwebover.jpg" width="109" height="67"></p>
      <p>and the DOWN like this: <img src="images/getwebdown.jpg" width="112" height="70"></p>
      <p>Make the &quot;HIT&quot; a little bit bigger than the button.</p>
      <p>We're going to put a copy of this button on every frame, in the Content 
        layer. This is because we want the button to &quot;read&quot; the text 
        in the Web Address field and load that URL in a separate browser window. 
        (We need to put a rectangle on the Content mask layer in order to see 
        the button when we place it on the content layer.) Don't do that yet, 
        though, because we'll first set up the action for one button and then 
        copy that button onto the other frames.</p>
      <p>To 'read' the text in the Web Address field, we need to make it &quot;input&quot; 
        instead of 'static' text. Use the Text Options panel to change the type. 
        We need to do this in each frame. The &quot;variable&quot; will call <b>&quot;url&quot; 
        </b>(no quotes) in every frame, and we'll include a maximum input of 35 
        characters. We also need to embed the entire font, so Flash can display 
        whatever characters are in a given URL.</p>
      <p>We could leave the URL field blank and allow the user to type it in, 
        but instead, we're going to have already filled in the &quot;url&quot; 
        field with each person's url. </p>
      <p align="left">Of course, the actual value of the url in each frame will 
        differ to reflect the actual URL. (The user can, if he chooses, type in 
        a different URL for each frame.)</p>
      <p align="left">Now we're going to set the action for the button. Right 
        click on it and choose Action. Fill the form out this way: We make the 
        &quot;url&quot; an expression so Flash will &quot;evaluate&quot; the expression, 
        which refers to a variable, url, defined by the text field.</p>
      <p><img src="images/flash36.jpg" width="625" height="307"></p>
      <p>Now select the button, click Edit|Copy, and then go to each frame in 
        the content layer and choose Edit|Paste in Place. </p>
      <p>Save your movie. Then test it. (The load URL won't work unless you test 
        it in a browser plug-in. So instead of Control|Test Movie, choose File|Publish 
        Preview.) </p>
      <h3><a name="8"></a>Publishing your movie</h3>
      <p>Choose File|Publish Settings. You won't actually change anything here; 
        I just want you to see that you can change the names and fle types under 
        which your movie is published. </p>
      <p>To publish, simply choose File|Publish. A *.swf and *.html file will 
        be created with the same name as your *.fla. These are the two files that 
        need to be published to the Web.</p>
      <h3><a name="9"></a>Putting your movie on the Web</h3>
      <p>Use FTP to put your movie onto your web site. </p>
      <p>. </p>
      <p>&nbsp;</p>
      <!-- #EndEditable --> </td>
  </tr>
  <tr> 
    <td colspan="2" valign="top" align="left"> 
      <table width="100%" border="3" cellspacing="3" cellpadding="5" bordercolor="#003300" align="left">
        <tr> 
          <td><h6 align="left"> <font color="#006600">The contents of the Web 
              Institute for Teachers website are Copyright 1999-2002, University 
              of Chicago. No one may print, copy, or otherwise reproduce these 
              materials without the express written permission of the Director 
              of the Web Institute for Teachers. </font></h6>
            <h6 align="left"><font color="#006600"> The current time is 
              <!--#config timefmt="%I:%M %p on %A %b %d, %Y"-->
              <!--#echo var="DATE_LOCAL"-->
              . This page was last modified on 
              <!--#config timefmt="%b %d, %Y" -->
              <!--#echo var="LAST_MODIFIED"-->
              . It has had 
              <!--#exec cgi="/cgi-bin/nmi/textcounter/witcounter.pl"-->
              . </font></h6>
            <h6><font color="#006600">Please use the <a href="/2002/feedback/index.htm">Feedback</a> 
              button to tell us how you like this page.</font></h6>

			  </td>
        </tr>
      </table>
      <h6>&nbsp;</h6>
    </td>
  </tr>
</table>
</font>
</body>
<!-- #EndTemplate --></html>
