<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CityTech - Fall 2011: Interactive Animation</title>
	<atom:link href="http://classes.catherinegarnier.com/f11interactiveanimation/feed/" rel="self" type="application/rss+xml" />
	<link>http://classes.catherinegarnier.com/f11interactiveanimation</link>
	<description></description>
	<lastBuildDate>Thu, 15 Dec 2011 13:34:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Week 15: Final Project Presentations</title>
		<link>http://classes.catherinegarnier.com/f11interactiveanimation/2011/12/15/week-15-final-project-presentations/</link>
		<comments>http://classes.catherinegarnier.com/f11interactiveanimation/2011/12/15/week-15-final-project-presentations/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 13:34:52 +0000</pubDate>
		<dc:creator>katy</dc:creator>
				<category><![CDATA[Lesson]]></category>

		<guid isPermaLink="false">http://classes.catherinegarnier.com/f11interactiveanimation/?p=200</guid>
		<description><![CDATA[We&#8217;ll be doing final project presentations today. Also, please remember to upload your html and swf files, and a zip file of your .fla and any supporting files (fonts, remotely loaded images, video or music) to your Web server, and &#8230; <a href="http://classes.catherinegarnier.com/f11interactiveanimation/2011/12/15/week-15-final-project-presentations/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ll be doing final project presentations today.</p>
<p>Also, please remember to upload your html and swf files, and a zip file of your .fla and any supporting files (fonts, remotely loaded images, video or music) to your Web server, and post a link to those files on the blog here by midnight tonight. You will not get credit for your project if you fail to do this, and if you miss the deadline I will deduct from your grade.</p>
]]></content:encoded>
			<wfw:commentRss>http://classes.catherinegarnier.com/f11interactiveanimation/2011/12/15/week-15-final-project-presentations/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Week 14: Work Session</title>
		<link>http://classes.catherinegarnier.com/f11interactiveanimation/2011/12/08/week-14-work-session/</link>
		<comments>http://classes.catherinegarnier.com/f11interactiveanimation/2011/12/08/week-14-work-session/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 15:49:50 +0000</pubDate>
		<dc:creator>katy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://classes.catherinegarnier.com/f11interactiveanimation/?p=198</guid>
		<description><![CDATA[This week we will be working on final projects in class. Please sign up on the board if you need extra help with your project. After this class, you have one more chance to get help. I will be in &#8230; <a href="http://classes.catherinegarnier.com/f11interactiveanimation/2011/12/08/week-14-work-session/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This week we will be working on final projects in class. Please sign up on the board if you need extra help with your project.</p>
<p>After this class, you have one more chance to get help. I will be in this classroom, 1102, next <strong>Tuesday December 13 from 6 &#8211; 8:30 PM</strong> working with another class. You can drop in at that time if you have last minute issues or questions about your project.</p>
<p>Next class you will all present your projects.</p>
<p><strong>You must follow these guidelines to get full credit for the project:</strong></p>
<ol>
<li>You must be present in class and present your project in front of the class</li>
<li>Your project must be able to run without errors</li>
<li>You must post your final swf, any loaded audio, video or still images, and a zip archive of your .fla and fonts to your web site, and post the link to these files by<strong> midnight on the last day of class, December 15. </strong></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://classes.catherinegarnier.com/f11interactiveanimation/2011/12/08/week-14-work-session/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Week 13: Storyboard Review</title>
		<link>http://classes.catherinegarnier.com/f11interactiveanimation/2011/12/01/week-13-storyboard-review/</link>
		<comments>http://classes.catherinegarnier.com/f11interactiveanimation/2011/12/01/week-13-storyboard-review/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 13:28:21 +0000</pubDate>
		<dc:creator>katy</dc:creator>
				<category><![CDATA[Lesson]]></category>

		<guid isPermaLink="false">http://classes.catherinegarnier.com/f11interactiveanimation/?p=164</guid>
		<description><![CDATA[This week we are going to review your project storyboards. Next week is a work session, your goal for that class is to have your interface built, and a substantial amount of your code written. Come into class with a &#8230; <a href="http://classes.catherinegarnier.com/f11interactiveanimation/2011/12/01/week-13-storyboard-review/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>This week</strong> we are going to review your project storyboards.</p>
<p><strong>Next week</strong> is a work session, your goal for that class is to have your interface built, and a substantial amount of your code written. Come into class with a problem you aren’t sure how to solve!</p>
]]></content:encoded>
			<wfw:commentRss>http://classes.catherinegarnier.com/f11interactiveanimation/2011/12/01/week-13-storyboard-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Week 12: Video</title>
		<link>http://classes.catherinegarnier.com/f11interactiveanimation/2011/11/21/week-12-video/</link>
		<comments>http://classes.catherinegarnier.com/f11interactiveanimation/2011/11/21/week-12-video/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 02:20:47 +0000</pubDate>
		<dc:creator>katy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://classes.catherinegarnier.com/f11interactiveanimation/?p=158</guid>
		<description><![CDATA[Topics: Adding Video to Your Project Supported formats Using Adobe Media Encoder Importing Video to the Timeline or Library Using Video Components to Load Video Remotely Other Options Adding Video to Your Project Flash has several options for adding video &#8230; <a href="http://classes.catherinegarnier.com/f11interactiveanimation/2011/11/21/week-12-video/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>Topics:</h3>
<ul>
<li>Adding Video to Your Project</li>
<ul>
<li>Supported formats</li>
<li>Using Adobe Media Encoder</li>
<li>Importing Video to the Timeline or Library</li>
<li>Using Video Components to Load Video Remotely</li>
<li>Other Options</li>
</ul>
</ul>
<h3>Adding Video to Your Project</h3>
<p>Flash has several options for adding video to your project.</p>
<h3>Supported Formats</h3>
<p>Flash supports it’s own FLV Video formats as well as Quicktime movies that are H264 encoded. There is a list of supported codes <a href="http://kb2.adobe.com/cps/402/kb402866.html" target="_blank">here</a>.</p>
<p>There is also a good article about using H264 video <a href="http://www.adobe.com/devnet/flashplayer/articles/hd_video_flash_player.html" target="_blank">here</a></p>
<h3>Using Adobe Media Encoder</h3>
<p>You can also convert just about any video format to FLV using Adobe Media Encoder, which is included with Flash Professional. Generally speaking, using FLV in your Flash applications is going to be a smaller file, and better looking and functioning experiences for the user.</p>
<p>However, in order to play an FLV video, you need to create a .swf to act as a player. There are two ways you can play video through a .swf, either by importing it to the Timeline / Library, or using a video component or ActionScript to load in an external file.</p>
<h3>Importing Video to the Timeline or Library</h3>
<p>I can’t stress enough that you should only use very short video that has no audio track with this method. Video will significantly increase the size of your .swf and load times and this method has serious audio sync issues.</p>
<p>Under the <strong>File &gt; Import</strong> menu is an <strong>Import Video</strong> option. When you choose this, you will see the following dialog:</p>
<p><a href="http://classes.catherinegarnier.com/f11interactiveanimation/?attachment_id=415" rel="attachment wp-att-415"><img title="Screen shot 2011-11-14 at 9.18.38 AM" src="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-11-14-at-9.18.38-AM.png" alt="" width="885" height="680" /></a>To use video directly in the timeline, choose the “Embed FLV in SWF and play in timeline” option. Note the warning! Also note that you can launch Adobe Media Encoder right from here.</p>
<p>Next choose the embedding method. You can choose to place the embedded video directly on a layer of the timeline, or as a movieclip or graphic symbol.</p>
<p><a href="http://classes.catherinegarnier.com/f11interactiveanimation/?attachment_id=417" rel="attachment wp-att-417"><img title="Screen shot 2011-11-14 at 9.23.30 AM" src="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-11-14-at-9.23.30-AM.png" alt="" width="450" height="278" /></a></p>
<h3>Using Video Components to Load Video Remotely</h3>
<p>Loading video from an external file is a much preferred method, and Flash makes it easy. Choose the “Load external video file with playback component” option from the Import Video panel instead, or you can also drag a FLVPlayback component from the Components (<strong>Window &gt; Components</strong>) panel directly to the stage:</p>
<p><a href="http://classes.catherinegarnier.com/f11interactiveanimation/?attachment_id=419" rel="attachment wp-att-419"><img title="Screen shot 2011-11-14 at 9.33.25 AM" src="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-11-14-at-9.33.25-AM.png" alt="" width="339" height="389" /></a>Under the Video Folder you’ll see several playback component options, as well as the individual elements of the playback component. Drag the component to the stage to add it to the Timeline and your Library.</p>
<p>You can set the appearance and source video of the playback component in the Properties Panel:</p>
<p><a title="Screen shot 2011-11-14 at 9.35.22 AM" href="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-11-14-at-9.35.22-AM.png" rel="lightbox[414]"><img title="Screen shot 2011-11-14 at 9.35.22 AM" src="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-11-14-at-9.35.22-AM.png" alt="" width="290" height="492" /></a></p>
<h3>Other Options</h3>
<p>Because the FLV video must be embedded in a swf player, it has the same platform limitations as any application that uses the Flash Player (ie – no iOS devices). So, if all you need is video playback within a Web site, consider these options:</p>
<ul>
<li>Host the videos on a site like YouTube, Vimeo, or blip.tv and copy and paste their embed code into your html</li>
<li>Use a third-party player like <a href="http://www.longtailvideo.com/players/" target="_blank">JWplayer</a> that detects the users operating system and browser and delivers the appropriate player for that configuration (note, this requires having video in multiple formats)</li>
</ul>
<h3>Homework</h3>
<h3>Final Project: Step 2 – Storyboards / Design Frames / Design Comps</h3>
<p>Take your process flow and turn everything that is represented there into a fully designed interface for each step represented there. Design these in whatever tool you are most comfortable with (Photoshop, Illustrator, Flash itself, a combination) but turn the storyboards into a <strong>single PDF</strong> that you will present to the class after Thanksgiving. You should be able to fully walk us through the functionality of your Flash application with these storyboards. They should represent the near final design of your application. The more time you put into this step, the more time you will have for animation and coding. You are going to need it!</p>
]]></content:encoded>
			<wfw:commentRss>http://classes.catherinegarnier.com/f11interactiveanimation/2011/11/21/week-12-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Week 11: Audio, Drag and Drop</title>
		<link>http://classes.catherinegarnier.com/f11interactiveanimation/2011/11/16/week-11-audio-drag-and-drop/</link>
		<comments>http://classes.catherinegarnier.com/f11interactiveanimation/2011/11/16/week-11-audio-drag-and-drop/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 02:56:53 +0000</pubDate>
		<dc:creator>katy</dc:creator>
				<category><![CDATA[Lesson]]></category>

		<guid isPermaLink="false">http://classes.catherinegarnier.com/f11interactiveanimation/?p=153</guid>
		<description><![CDATA[&#62;&#62;Week 11 examples Topics: Final Project concept presentations Using Audio Drag and Drop Events Final Project Requirements Creating a Project Brief and Sitemap Using Audio There are a number of different ways you can play audio through Flash, each has &#8230; <a href="http://classes.catherinegarnier.com/f11interactiveanimation/2011/11/16/week-11-audio-drag-and-drop/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3><a href="http://classes.catherinegarnier.com/f11webmedia1/wp-content/uploads/week11.zip" target="_blank">&gt;&gt;Week 11 examples</a></h3>
<h3>Topics:</h3>
<ul>
<li>Final Project concept presentations</li>
<li>Using Audio</li>
<li>Drag and Drop Events</li>
<li>Final Project Requirements</li>
<li>Creating a Project Brief and Sitemap</li>
</ul>
<h3>Using Audio</h3>
<p>There are a number of different ways you can play audio through Flash, each has it’s advantages and disadvantages.</p>
<h4>Supported Audio types</h4>
<p>Many audio types are supported in Flash, but you’ll have best luck with .aiff or .mp3 files. All audio is published out of Flash in the mp3 format, so this is a good format to start with.</p>
<h3>Import to Library</h3>
<p>You add audio to your Flash movie the same way you import other media assets. You can use either “Import to Library” or “Import to Stage” but either way the audio file will end up in your library, but not on the stage.</p>
<p>Select an imported audio file in the library, and you will see a visual representation of the sound file, in addition to tiny little play and stop buttons to the top and right that allow you to preview the audio file.</p>
<p><a href="http://classes.catherinegarnier.com/f11interactiveanimation/?attachment_id=382" rel="attachment wp-att-382"><img title="Screen shot 2011-11-07 at 10.49.08 AM" src="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-11-07-at-10.49.08-AM.png" alt="" width="288" height="345" /></a></p>
<p>To see additional properties of the sound file, double-click the speaker icon next to the filename.</p>
<p><a href="http://classes.catherinegarnier.com/f11interactiveanimation/?attachment_id=383" rel="attachment wp-att-383"><img title="Screen shot 2011-11-07 at 11.30.28 AM" src="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-11-07-at-11.30.28-AM.png" alt="" width="630" height="419" /></a></p>
<p>Check your file size! This is going to impact the total size of your swf. You can adjust the compression settings here for this file only or in the Publish Settings panel for the whole movie.</p>
<h3>Adding Audio to the Timeline</h3>
<p>You add audio to a keyframe on the timeline, in the properties panel when you have a frame selected. The audio will start playing when the swf hits that frame.</p>
<p>Choose the sound you want to add with the “Name” pulldown in the sound section of the properties panel.</p>
<p><a href="http://classes.catherinegarnier.com/f11interactiveanimation/?attachment_id=384" rel="attachment wp-att-384"><img title="Screen shot 2011-11-07 at 11.36.13 AM" src="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-11-07-at-11.36.13-AM.png" alt="" width="277" height="337" /></a>Once you do this, you will see the waveform of the sound in the timeline.</p>
<p><a href="http://classes.catherinegarnier.com/f11interactiveanimation/?attachment_id=385" rel="attachment wp-att-385"><img title="Screen shot 2011-11-07 at 11.39.00 AM" src="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-11-07-at-11.39.00-AM.png" alt="" width="386" height="65" /></a>Increase the height of the layer by control or right clicking the layer name and changing the layer height:</p>
<p><a href="http://classes.catherinegarnier.com/f11interactiveanimation/?attachment_id=387" rel="attachment wp-att-387"><img title="Screen shot 2011-11-07 at 11.38.40 AM" src="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-11-07-at-11.38.40-AM.png" alt="" width="341" height="331" /></a>How the file will playback depends on how the Sync property is set. There are two primary settings you should concern yourself with here:</p>
<p><strong>Event</strong> – Plays whole audio file. If you don’t want this, you can do some minor editing in the sound properties. This should be reserved for very short sounds, or you will get awkward echoing as the movie loops and continues to play the sound again and again.</p>
<p><strong>Stream</strong> – Plays the sound only as long as the timeline. You can set the repeat and loop settings for replay, but this will always stop a previously playing sound before starting the next one.</p>
<p>The problem with both of these methods is that you aren’t giving the user any control over the playback of the sound. I generally avoid timeline sound in favor of one of the methods below.</p>
<h3> Playing Audio from the Library</h3>
<p>In order to play an audio file from the library, you have to give it a class name. Control or right click on the file name in the library and open the file properties. On the sound properties panel, click the “Advanced” Button in the bottom right of the panel. In the section that opens up, click the “Export for Actionscript” and “Export in Frame 1″ boxes, and give the file a class name. The name of the audio file will automatically get filled in, but you should change this, having the extension in the name will cause problems.</p>
<p><a href="http://classes.catherinegarnier.com/f11interactiveanimation/?attachment_id=390" rel="attachment wp-att-390"><img title="Screen shot 2011-11-07 at 11.51.58 AM" src="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-11-07-at-11.51.58-AM.png" alt="" width="627" height="755" /></a></p>
<p>Now you must create a new instance of this sound in your code, using the class name that you set above:</p>
<pre>var track:myTrack = new myTrack();</pre>
<p>This won’t automatically start the sound playing, however, you have to tell it to play:</p>
<pre>track.play();</pre>
<p>If you want to stop the sound, things become a little more complicated, as the stop method is actually part of a different object – the SoundChannel class. So you’ll need an instance of this, and you will need to assign that channel to the playback of your file:</p>
<pre>var channel:SoundChannel = new SoundChannel( );
channel = track.play();
channel.stop();</pre>
<p>This still isn’t the most ideal way to play audio, however, because the audio file becomes part of the .swf and adds to the file size and download time. Any audio file that is more than a few seconds, you should load into the .swf much in the same way that we did with images.</p>
<h3>Loading External Audio Files</h3>
<p>This works similarly to the library example, except that we load the sound into a blank generic sound object, using the URLRequest object to hold the value of the audio file name:</p>
<pre>var track:Sound = new Sound();
var request:URLRequest = new URLRequest(filename.mp3);
track.load(req);</pre>
<h3>Drag and Drop Events</h3>
<p>Any named movieclip instance on the stage can be made “draggable” with the startDrag( ) method.</p>
<pre>myObject.startDrag();</pre>
<p>Usually this is triggered with an event listener on the MOUSE_DOWN event on the instance. Once startDrag is called, the object will follow the mouse movement. To stop this behavior, you use the stopDrag( ) method, usually implemented on MOUSE_UP.</p>
<pre>myObject.stopDrag();</pre>
<p>This behavior also has a property associated called dropTarget. The dropTarget is the object that is under the draggable object when the stopDrag method is called. To get the name of the drop target, you must access its name property.</p>
<pre>myObject.dropTarget.name;</pre>
<h3>Final Project Requirements</h3>
<p>Your final project should include the following:</p>
<ul>
<li>Timeline animation</li>
<li>Code control of timeline playback</li>
<li>At least one dynamic text field whose value is changed by code</li>
<li>At least one input text field</li>
<li>At least one button that responds to a mouse event</li>
</ul>
<h3>Planning your project</h3>
<p>For next week you are going to produce two documents that will help you define your project.</p>
<p><strong>1. Project Brief</strong> – This is a text description of your project. It should include the following:</p>
<ul>
<li>Overview: A few sentence summary of the project.</li>
<li>Audience: Who is application for? Include age range, gender, anticipated technical skills, language capability.</li>
<li>Platform: How do you envision this application being used? Is it part of a larger Web site? A mobile application? Part of an installation?</li>
<li>Functionality requirements: Describe how the application will operate. How many distinct states or screens or pages will it have? How will a user interact with it?</li>
<li>Technical requirements: Describe as best you can what code elements will be required for the application.</li>
</ul>
<p><strong> 2. Process Flow – </strong>This is a bit like a site map for a Web site. A process flow visualizes the way a user would move through the application from a high level.</p>
<p><a href="http://classes.catherinegarnier.com/f11interactiveanimation/?attachment_id=408" rel="attachment wp-att-408"><img title="flowchart" src="../../f11webmedia1/wp-content/uploads/flowchart.png" alt="" width="164" height="261" /></a></p>
<p>Every distinct state or page of the application should be represented by a rectangle, connected by diamond shaped decision points.</p>
]]></content:encoded>
			<wfw:commentRss>http://classes.catherinegarnier.com/f11interactiveanimation/2011/11/16/week-11-audio-drag-and-drop/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Week 10: Working with Dynamic Text</title>
		<link>http://classes.catherinegarnier.com/f11interactiveanimation/2011/11/09/week-10-working-with-dynamic-text/</link>
		<comments>http://classes.catherinegarnier.com/f11interactiveanimation/2011/11/09/week-10-working-with-dynamic-text/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 01:41:59 +0000</pubDate>
		<dc:creator>katy</dc:creator>
				<category><![CDATA[Lesson]]></category>

		<guid isPermaLink="false">http://classes.catherinegarnier.com/f11interactiveanimation/?p=144</guid>
		<description><![CDATA[&#62;&#62; Week 10 Examples Topics Conditional Statements Understanding Text Fields Classic Text TLF Text Embedding Fonts Reading and Writing to Text Field Contents with ActionScript Using Keyboard and Focus Events Conditional Statements When you are dealing with user actions, it’s &#8230; <a href="http://classes.catherinegarnier.com/f11interactiveanimation/2011/11/09/week-10-working-with-dynamic-text/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3><a href="http://classes.catherinegarnier.com/f11webmedia1/wp-content/uploads/week10.zip">&gt;&gt; Week 10 Examples</a></h3>
<h3>Topics</h3>
<ul>
<li>Conditional Statements</li>
<li>Understanding Text Fields</li>
<ul>
<li>Classic Text</li>
<li>TLF Text</li>
<li>Embedding Fonts</li>
</ul>
<li>Reading and Writing to Text Field Contents with ActionScript</li>
<li>Using Keyboard and Focus Events</li>
</ul>
<h3>Conditional Statements</h3>
<p>When you are dealing with user actions, it’s useful to react <em>condtionally </em>to user input, in other words, have Flash do something different based on different actions by the user. This is a job for <strong>conditional statements!</strong> If you ever had to take logic in high school, you’ll recognize these.</p>
<p>The most common conditional statement is the if … else statement, which says, if something (a condition) happens do something, if it doesn’t happen, do something else. A simple if statement looks something like this:</p>
<pre>if (something is true) {
   //doSomething();
}</pre>
<p>You could just stop it there, but if you want to add behavior to handle if that condition doesn’t happen, you add the else clause:</p>
<pre>if (something is true) {
   //do something
}else{
  //do something else
}</pre>
<h3>Understanding Text Fields</h3>
<p>There are methods for dynamically manipulating the properties of text fields with code, but this requires understanding the different types of text in Flash.</p>
<h3>Classic Text vs TLF Text</h3>
<p>Pre-CS5, there was only one kind of text framework in Flash, what is now referred to as “Classic Text”. If you are using a CS4, this is the kind of text you will be using. If you are making an AS2 application, you will also use Classic Text. Other than that, you will probably want to stick to TLF text, although remember that you will be limited to OpenType and TrueType fonts.</p>
<p><a href="http://help.adobe.com/en_US/flash/cs/using/WSd60f23110762d6b883b18f10cb1fe1af6-7d50a.html" target="_blank">Classic Text Types</a></p>
<ul>
<li>Static: Non-editable or selectable by user, not readable or writable by actionscript</li>
<li>Dynamic: Selectable by user, readable and writable by actionscript</li>
<li>Input: Selectable and editable by user, readable and writable by actionscript</li>
</ul>
<p><a href="http://help.adobe.com/en_US/flash/cs/using/WSb03e830bd6f770ee39dfeb5a12f0e142ade-8000.html" target="_blank">TLF Text Types</a></p>
<ul>
<li>Read only: Same as Static</li>
<li>Selectable: Same as Dynamic</li>
<li>Editable: Same as Input</li>
</ul>
<h3><a href="http://help.adobe.com/en_US/flash/cs/using/WSb03e830bd6f770ee21a3597d124daee0526-8000.html" target="_blank">Font Embedding</a></h3>
<p>When you are working with dynamic text of any kind, and using anything besides standard Web fonts, you need to “embed” the font in your Flash file. Otherwise, if the viewer doesn’t have that font installed, they will see a system default font. To embed a font, select the text field and click the embed button in the Character section of the properties panel.</p>
<p><a href="http://classes.catherinegarnier.com/f11interactiveanimation/?attachment_id=346" rel="attachment wp-att-346"><img title="Screen shot 2011-10-30 at 9.57.47 PM" src="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-10-30-at-9.57.47-PM.png" alt="" width="269" height="166" /></a></p>
<p>In the Font Embedding panel that pops up, you name give the font a name and choose which characters to embed with your file. When you embed a font, it increases the file size of your swf, so you should only embed the characters you need. I usually choose Basic Latin to cover the bases but not load more characters than I need.</p>
<h3><a href="http://classes.catherinegarnier.com/f11interactiveanimation/?attachment_id=348" rel="attachment wp-att-348"><img title="Screen shot 2011-10-30 at 10.07.59 PM" src="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-10-30-at-10.07.59-PM.png" alt="" width="932" height="548" /></a>Reading and Writing to Text Field Contents with Code</h3>
<p>All dynamic text fields have a property called “text” that holds the, well, text.</p>
<p>To access the current text in a text field:</p>
<pre>myTextField.text;</pre>
<p>To set the text of the text field:</p>
<pre>myTextField.text = "some other text";</pre>
<p>Make sure you put the text in double quotes!</p>
<h3> Keyboards Events</h3>
<p><a href="http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7d01.html" target="_blank">&gt;&gt; Capturing Keyboard Input</a></p>
<p>You can respond to a user pressing and releasing key on the keyboard just as you can with mouse events. These are called keyboard events. There are two events you can listen for KEY_DOWN and KEY_UP:</p>
<pre>//Keyboard Event Listens
addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
addEventListener(KeyboardEvent.KEY_UP, onKeyUp);</pre>
<p>These events include the information about what key was pressed. This comes in two forms, the keyCode and the charCode. Each of these are numbers that are mapped to characters, but they are a little bit different from each other – a key code value represents a particular key on the keyboard (the 1 on a keypad is different than the 1 in the top row, but the key that generates “1” and the key that generates “!” are the same key) and the character value represents a particular character (the R and r characters are different). Which one you will use will depend on what you are using it for.</p>
<pre>function onKeyDown(evt:KeyboardEvent):void {
  trace("onKeyDown: " + evt.keyCode);
  trace("ctrlKey: " + evt.ctrlKey);
  trace("keyLocation: " + evt.keyLocation);
  trace("shiftKey: " + evt.shiftKey);
  trace("altKey: " + evt.altKey);
}</pre>
<pre>function onKeyUp(evt:KeyboardEvent):void {
            trace("keyUpHandler: " + evt.keyCode);
}</pre>
<p>Now, this doesn’t do you much good if you don’t know what numbers correspond to what keys, there’s a list on this <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/ui/Keyboard.html" target="_blank">page</a>.</p>
<h3><a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/FocusEvent.html" target="_blank">Focus Events</a></h3>
<p>A focus event happens when an a user switches between one object and another … like clicking in a text field. You set these up just like any other event, with a listener and a handler.</p>
<h3>Homework</h3>
<p>Using what you learned about text fields today, make a “MadLib” where a user types in words on one screen, and then reads the Madlib on the next. It should function something like <a href="http://www.madlibs.com/page2.html" target="_blank">this</a>, although you don’t need as many words to input (10 should do it) and you don’t need the “send” functionality.</p>
<h3>Final Project</h3>
<p>For next week, I’d like you to come up with a concept for your final project that we will discuss in the class. Here’s the parameters for the project:</p>
<ol>
<li>Choose a subject or cause you are passionate about and have a good level of knowledge or expertise in.</li>
<li>Create a simple Flash application that is a tool to educate others about your subject. This could take many forms …. An animated story book, an interactive quiz, a simple game, a puzzle … be creative! Think about who the target audience is for this application. What will be most engaging to them? Consider age, technical skill, language comprehension, attention span.</li>
</ol>
<p>Next week we will discuss more specific requirements for the project, and the stages that you will go through to develop it, but for now I just want you to come up with a general idea.</p>
]]></content:encoded>
			<wfw:commentRss>http://classes.catherinegarnier.com/f11interactiveanimation/2011/11/09/week-10-working-with-dynamic-text/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Week 9: Loading External Assets</title>
		<link>http://classes.catherinegarnier.com/f11interactiveanimation/2011/11/02/week-9-loading-external-assets/</link>
		<comments>http://classes.catherinegarnier.com/f11interactiveanimation/2011/11/02/week-9-loading-external-assets/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 00:45:42 +0000</pubDate>
		<dc:creator>katy</dc:creator>
				<category><![CDATA[Lesson]]></category>

		<guid isPermaLink="false">http://classes.catherinegarnier.com/f11interactiveanimation/?p=126</guid>
		<description><![CDATA[Topics: Variables Explained Loading External Assets Variables A variable in a programming language is a way to store a value that may or may not be known at the time the program runs, and may change over the life of &#8230; <a href="http://classes.catherinegarnier.com/f11interactiveanimation/2011/11/02/week-9-loading-external-assets/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>Topics:</h3>
<ul>
<li>Variables Explained</li>
<li>Loading External Assets</li>
</ul>
<h3>Variables</h3>
<p>A variable in a programming language is a way to store a value that may or may not be known at the time the program runs, and may change over the life of the application. You can store all kinds of values in a variable – numbers, text, true/false values, the names of objects on your stage or objects you create with code. You can also pass variables as function parameters.</p>
<p>A simple variable declaration looks like this:</p>
<pre>var variablename:Type;</pre>
<h3>Loading External Assets</h3>
<p>As you could see from the banner ad exercise, file size adds up quickly when you are bringing graphics into your library. Even if you don’t have the kind of size restrictions that the banners do, an overly large file is going to take forever to download and start playing in the viewer’s browser. One way to minimize this is to load the assets as you need them when the Flash movie is playing. This is similar to the way you include images in a Web page. It also means that you have to upload those images to your Web server along with your swf and html files in order for them to load and display.</p>
<h3>Step 1: Create the Loader</h3>
<p>You can load images (jpeg, png, or gif only) or other swf files. First you need to create a container to hold the image you are going to load. This container is a special object called a <strong>Loader</strong>. This is how you create a loader:</p>
<pre>var myLoader:Loader = new Loader();</pre>
<p>In this example, “myLoader” is a variable Name that you decide, everything else is set.</p>
<h3>Step 2: Add the Loader to the Stage</h3>
<p>When we create an object like this with ActionScript 3, it doesn’t automatically add that object to the stage. Adding the loader is simple:</p>
<pre>addChild(myLoader);</pre>
<p>Even though the loader is now part of the stage, you won’t see it. Loaders have no appearance of their own, they are just an empty container to put things into.</p>
<h3>Step 3: Identify the asset to load</h3>
<p>Next we need to create an object to hold the path to the image or swf that we want to load into the loader. This object is called a <strong>URLRequest</strong>.</p>
<p>URL stands for “Uniform Resource Location”, which is just a fancy way of saying Web address. In other words, URLs are what you see in the address field of a Web browser. The URLRequest is going to show the path to the asset on our local machine or the server.</p>
<p>There are two ways to represent this path, <strong>relative</strong> or <strong>absolute.</strong></p>
<p>In an absolute path, you give the full address on the local machine or Web server: <em>http://www.domainname.com/subdirectory/filename.ext</em></p>
<p>In a relative path, you only give need to give the path relative to the swf file the image will be loaded into: <em>subdirectory/filename.ext</em></p>
<p>It’s best to use the “relative” path to the asset, because this will be the same when you are working on your local machine as when you publish to the Web server. To simplify things and stay organized, keep your assets in a subdirectory (folder) in the same directory (folder) as your Flash files.</p>
<p>So, if you had an image called “my_image.jpg” in a subdirectory called “images” the relative path to it would be “images/my_image.jpg”</p>
<p>You create the URLRequest like this:</p>
<pre>var myImage:URLRequest = new URLRequest(imagePath);</pre>
<p>In this example “myImage” and “imagePath” are variables. You can either put the image path directly in to the parentheses after URLRequest or create another variable to hold it.</p>
<h3>Step 4: Loading the Asset into the Loader</h3>
<p>Now that you’ve created the empty container, and identified the asset to go into it, it only remains to load one into the other:</p>
<p>myLoader.load(image);</p>
<p>If you test your movie, you will now see it on the stage. Here’s a couple things to note about the loader object:</p>
<h4>Positioning Loaded Content</h4>
<p>The loader is placed at the 0,0 coordinates on the stage, so you may want to reposition it. You can do this by accessing it’s x and y properties:</p>
<pre>myLoader.x = xposition;
myLoader.y=yposition;</pre>
<h4>Scaling Loaded Content</h4>
<p>The image is loaded into the the loader at 100%. You can scale with code with the scaleX and scaleY properties, but like importing into the library, it’s better to resize it outside of Flash. The larger the asset is, the longer it will take to load, and you don’t want to make the viewer wait around unecessarily. The scale property is a percentage expressed as a decimal between 0-1, so .5 represents 50%. You can scale above 100%, but you’d be blowing a bitmap up larger than its pixel dimensions, which is never recommended!</p>
<pre>myLoader.scaleX = myLoader.scaleY =yposition;</pre>
<p>Now let’s look at an example that puts the loading code into a function so that you can reuse it for multiple loaders. This will help you get started on the homework:</p>
<p><a href="http://classes.catherinegarnier.com/f11webmedia1/wp-content/uploads/week9.zip" target="_blank">&gt;&gt; Loader Example</a></p>
<h3>Homework</h3>
<p><strong>Create a Simple Image Gallery</strong></p>
<p>Using what you have learned today plus the timeline navigation we learned last week, create a simple image gallery using your own images that loads one image at a time onto the stage, and allows you to navigate back and forth through a series of images, as well as jump to the beginning and end, just as you did with last week’s exercise. For this assignment, choose a sequence of images that tell a story. Also think about the design of the buttons. How can you communicate their function to the widest variety of users &#8212; very young or older users, non-English speakers, etc.</p>
<p>Publish your files to your website, and post the link to the html file in this page. Remember that you must upload your image files as well as your .html and .swf files. Also bring your .fla files to class next week so I can look at them if I need to.</p>
]]></content:encoded>
			<wfw:commentRss>http://classes.catherinegarnier.com/f11interactiveanimation/2011/11/02/week-9-loading-external-assets/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Week 8: Intro to AS3, Controlling the Timeline with Code</title>
		<link>http://classes.catherinegarnier.com/f11interactiveanimation/2011/10/26/week-8-intro-to-as3-controlling-the-timeline-with-code/</link>
		<comments>http://classes.catherinegarnier.com/f11interactiveanimation/2011/10/26/week-8-intro-to-as3-controlling-the-timeline-with-code/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 01:57:27 +0000</pubDate>
		<dc:creator>katy</dc:creator>
				<category><![CDATA[Lesson]]></category>

		<guid isPermaLink="false">http://classes.catherinegarnier.com/f11interactiveanimation/?p=97</guid>
		<description><![CDATA[Topics How to Set up your Files for AS3 applications Targeting an object in AS3 Creating Custom Functions Creating an Interactive Button in AS3 Using ActionScript to Control Playback How to Set up your Files for AS3 applications As I’ve &#8230; <a href="http://classes.catherinegarnier.com/f11interactiveanimation/2011/10/26/week-8-intro-to-as3-controlling-the-timeline-with-code/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>Topics</h3>
<ul>
<li>How to Set up your Files for AS3 applications</li>
<li>Targeting an object in AS3</li>
<li>Creating Custom Functions</li>
<li>Creating an Interactive Button in AS3</li>
<li>Using ActionScript to Control Playback</li>
</ul>
<h3>How to Set up your Files for AS3 applications</h3>
<p>As I’ve mentioned, you cannot add ActionScript directly to <strong>objects</strong> in AS3. Instead, you can add code to any <strong>frame</strong> or sequence of frames on the Timeline. This includes the timelines of symbols.</p>
<p>While you can add code to any layer on the timeline, including layers that have symbols or other objects on them, it is much cleaner to designate a single, <strong>empty</strong> layer for your code. This will prevent you accidentally erasing code or objects when working with one or the other, and it will also make it easier for you or another developer working on the code to find it later.</p>
<p>With this goal in mind, I want you to place all your ActionScript on a single layer at the very top of your timeline called “actions”. So, the first thing you do now when creating a new file is to make this layer, then open the Actions panel and pin this layer so that it is always easy to get to it.</p>
<p><a title="Screen shot 2011-10-17 at 12.06.46 PM" href="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-10-17-at-12.06.46-PM.png" rel="lightbox[302]"><img title="Screen shot 2011-10-17 at 12.06.46 PM" src="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-10-17-at-12.06.46-PM.png" alt="" width="504" height="132" /></a></p>
<h3>Targeting objects on the stage with aS3</h3>
<p>Because you are no longer able to add behavior directly to objects, you need to be able to tell actionscript which object on the stage you are adding behavior to. In order to do this, you must target the object using its instance name. That means that every object on the stage that you want to be interactive must have an instance name!</p>
<p><a title="Screen shot 2011-10-17 at 2.46.17 PM" href="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-10-17-at-2.46.17-PM.png" rel="lightbox[302]"><img title="Screen shot 2011-10-17 at 2.46.17 PM" src="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-10-17-at-2.46.17-PM.png" alt="" width="285" height="129" /></a>Then, when you want to refer to that object in your ActionScript, you can call it by name, using <strong>object notation</strong>:</p>
<pre>buttonone.dosomething();</pre>
<p>You can also find named objects on the stage using the target button in the Actions panel:</p>
<h3><a title="Screen shot 2011-10-17 at 2.56.55 PM" href="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-10-17-at-2.56.55-PM.png" rel="lightbox[302]"><img title="Screen shot 2011-10-17 at 2.56.55 PM" src="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-10-17-at-2.56.55-PM.png" alt="" width="582" height="438" /></a></h3>
<h3>Creating Custom Functions</h3>
<p>ActionScript 3 has many built in functions, like the trace function which we’ve already used. You can also create your own functions, to hold code that you want to be able to reuse anywhere in your project. First you define the function:</p>
<pre>function functionname(parameter1,parameter2):return {
    //do something
}</pre>
<p>Then, when you want to use the code in the function, you <strong>call </strong>it using the function name like this:</p>
<pre>functionname (value1,value2);</pre>
<p>The values in the parentheses are <strong>parameters</strong>, extra information you can pass into the function when you call it. For example, when you call the trace function, the parameters are whatever you put between the parentheses that you want to send to the output window.</p>
<h3>Creating an Interactive Button in ActionScript 3</h3>
<p>When creating a button or other interactive object in ActionScript 3, there are two steps you must create: an event listener, and an event handler. You can add event listeners and handlers to Button and MoveClip Instances but not Graphic symbols.</p>
<h4>The Event Listener</h4>
<p>The event listener describes what object to target, and what event to respond to. You do this using the addEventListener method.</p>
<p><a title="Screen shot 2011-10-17 at 3.08.40 PM" href="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-10-17-at-3.08.40-PM.png" rel="lightbox[302]"><img title="Screen shot 2011-10-17 at 3.08.40 PM" src="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-10-17-at-3.08.40-PM.png" alt="" width="798" height="148" /></a></p>
<p>This function takes two parameters, the event to respond to (like a mouse click) and the function to run when the event is detected.</p>
<p><a title="Screen shot 2011-10-17 at 3.18.22 PM" href="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-10-17-at-3.18.22-PM.png" rel="lightbox[302]"><img title="Screen shot 2011-10-17 at 3.18.22 PM" src="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-10-17-at-3.18.22-PM.png" alt="" width="733" height="219" /></a>The first parameter above describes an event of type MouseEvent, and the CLICK event is the particular event that is being listened for. Here are all the MouseEvents you can listen for:</p>
<ul>
<li>CLICK</li>
<li>DOUBLE_CLICK</li>
<li>MOUSE_DOWN</li>
<li>MOUSE_MOVE</li>
<li>MOUSE_OUT</li>
<li>MOUSE_OVER</li>
<li>MOUSE_UP</li>
<li>MOUSE_WHEEL</li>
<li>ROLL_OUT</li>
<li>ROLL_OVER</li>
</ul>
<h4>The Event Handler</h4>
<p>The event handler is a function that you must define, to describe what you want to happen when the event happens.</p>
<h3><a title="Screen shot 2011-10-17 at 3.41.33 PM" href="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-10-17-at-3.41.33-PM.png" rel="lightbox[302]"><img title="Screen shot 2011-10-17 at 3.41.33 PM" src="../../f11webmedia1/wp-content/uploads/Screen-shot-2011-10-17-at-3.41.33-PM.png" alt="" width="729" height="368" /></a>Using Actionscript to Control Playback</h3>
<p>So far animation that you have created on the timeline plays automatically and continuously. You can use ActionScript to control when your movie starts and stops, and to jump around the timeline.</p>
<p>There are a number methods that you can use to control playback of your main or MovieClip nested timelines:</p>
<ul>
<li>stop( ) – This will stop the movie wherever it appears on the timeline</li>
<li>play( ) – Starts playback of the movie</li>
<li>nextFrame( ) – Advances the movie one frame</li>
<li>prevFrame( ) – Rewinds the movie one frame</li>
<li>gotoAndPlay(frame) – Goes to the specified frame (either by name or number) and start playing from that point.</li>
<li>gotoAndStop(frame) – Goes to the specified frame (either by name or number) and stop there.</li>
</ul>
<h3>Homework</h3>
<p>Take the original walkcycle exercise or the bone tool exercise you did earlier in the class, and add buttons that make the walker <strong>Go</strong>, <strong>Stop</strong>, <strong>Move Forward 1 Frame</strong>, <strong>Move Back 1 Frame</strong>, <strong>Jump to the End</strong>, <strong>Go Back to the Beginning</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://classes.catherinegarnier.com/f11interactiveanimation/2011/10/26/week-8-intro-to-as3-controlling-the-timeline-with-code/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Week 7: Midterm Draft Review, Publishing to the Web</title>
		<link>http://classes.catherinegarnier.com/f11interactiveanimation/2011/10/19/week-7-midterm-draft-review-publishing-to-the-web/</link>
		<comments>http://classes.catherinegarnier.com/f11interactiveanimation/2011/10/19/week-7-midterm-draft-review-publishing-to-the-web/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 01:04:38 +0000</pubDate>
		<dc:creator>katy</dc:creator>
				<category><![CDATA[Lesson]]></category>

		<guid isPermaLink="false">http://classes.catherinegarnier.com/f11interactiveanimation/?p=94</guid>
		<description><![CDATA[Today we’re going to review your banner ad designs, and learn how to publish them to the Web. Publishing Your Flash Movies to the Web Publish Settings The publish settings panel has three tabs: Format, Flash, and HTML. Before publishing &#8230; <a href="http://classes.catherinegarnier.com/f11interactiveanimation/2011/10/19/week-7-midterm-draft-review-publishing-to-the-web/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today we’re going to review your banner ad designs, and learn how to publish them to the Web.</p>
<h3>Publishing Your Flash Movies to the Web</h3>
<h4>Publish Settings</h4>
<p>The publish settings panel has three tabs: Format, Flash, and HTML. Before publishing your final movie, you’ll need each of these appropriately.</p>
<h4>Modifying the HTML file</h4>
<p>You can edit the HTML file that your Flash is embedded into if you are familiar with HTML and CSS.</p>
<h4>Embedding Flash in any Web Page</h4>
<p>To embed your Flash movie in another Web page, copy and paste everything in between the &lt;div id=”flashContent”&gt; tags:</p>
<pre>&lt;div id="flashContent"&gt;
            &lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="728" height="90" id="FoodFight_728x90_1_v6_as2" align="middle"&gt;
                &lt;param name="movie" value="FoodFight_728x90_1_v6_as2.swf" /&gt;
                &lt;param name="quality" value="high" /&gt;
                &lt;param name="bgcolor" value="#cc3300" /&gt;
                &lt;param name="play" value="true" /&gt;
                &lt;param name="loop" value="true" /&gt;
                &lt;param name="wmode" value="window" /&gt;
                &lt;param name="scale" value="showall" /&gt;
                &lt;param name="menu" value="true" /&gt;
                &lt;param name="devicefont" value="false" /&gt;
                &lt;param name="salign" value="" /&gt;
                &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
                &lt;!--[if !IE]&gt;--&gt;
                &lt;object type="application/x-shockwave-flash" data="FoodFight_728x90_1_v6_as2.swf" width="728" height="90"&gt;
                    &lt;param name="movie" value="FoodFight_728x90_1_v6_as2.swf" /&gt;
                    &lt;param name="quality" value="high" /&gt;
                    &lt;param name="bgcolor" value="#cc3300" /&gt;
                    &lt;param name="play" value="true" /&gt;
                    &lt;param name="loop" value="true" /&gt;
                    &lt;param name="wmode" value="window" /&gt;
                    &lt;param name="scale" value="showall" /&gt;
                    &lt;param name="menu" value="true" /&gt;
                    &lt;param name="devicefont" value="false" /&gt;
                    &lt;param name="salign" value="" /&gt;
                    &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
                &lt;!--&lt;![endif]--&gt;
                    &lt;a href="http://www.adobe.com/go/getflash"&gt;
                        &lt;img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /&gt;
                    &lt;/a&gt;
                &lt;!--[if !IE]&gt;--&gt;
                &lt;/object&gt;
                &lt;!--&lt;![endif]--&gt;
            &lt;/object&gt;</pre>
<p>Creating a Static Image for iOS</p>
<p>Flash doesn’t play on iPhones and iPads, so when creating banner ads you should also provide a static frame. If you choose the jpeg option under the format tab in publish settings, when you publish your movie, a jpeg of the frame you last had selected will be created.</p>
<h4>Posting Your Files to the Web</h4>
<p>To publish your ad to the Web, use FTP to move all your files to the Web server. Make sure to upload both your .swf and .html files!</p>
<h3>Homework</h3>
<ol>
<li>Create the final versions of your banner ads, both sizes. Make sure they both have invisible buttons that link to cryptozoic.com</li>
<li>Publish your ads to the Web, embedded in an html file. If you do not have a place to do this, you will need to establish one. As a CityTech student, you can get discounted Web space from <a href="http://kionic.com/cuny" target="_blank">Kionic</a>.</li>
<li>Post links to your ads as comments in this post.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://classes.catherinegarnier.com/f11interactiveanimation/2011/10/19/week-7-midterm-draft-review-publishing-to-the-web/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Week 6: Intro to Actionscript 2, Storyboard Review</title>
		<link>http://classes.catherinegarnier.com/f11interactiveanimation/2011/10/12/week-6-intro-to-actionscript-2-storyboard-review/</link>
		<comments>http://classes.catherinegarnier.com/f11interactiveanimation/2011/10/12/week-6-intro-to-actionscript-2-storyboard-review/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 01:25:21 +0000</pubDate>
		<dc:creator>katy</dc:creator>
				<category><![CDATA[Lesson]]></category>

		<guid isPermaLink="false">http://classes.catherinegarnier.com/f11interactiveanimation/?p=84</guid>
		<description><![CDATA[Topics: ActionScript Basics Using the Actions Panel Creating a transparent &#8220;button&#8221; Adding Behavior to an object on the stage Midterm Project Part 2: Animating Your Banner  Strategies for keeping file size low ActionScript Basics ActionScript is the language used to &#8230; <a href="http://classes.catherinegarnier.com/f11interactiveanimation/2011/10/12/week-6-intro-to-actionscript-2-storyboard-review/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>Topics:</h3>
<ul>
<li>ActionScript Basics</li>
<ul>
<li>Using the Actions Panel</li>
<li>Creating a transparent &#8220;button&#8221;</li>
<li>Adding Behavior to an object on the stage</li>
</ul>
<li>Midterm Project Part 2: Animating Your Banner</li>
<ul>
<li> Strategies for keeping file size low</li>
</ul>
</ul>
<h3>ActionScript Basics</h3>
<p>ActionScript is the language used to program interactivity in Flash. To complete our banner assignment, we&#8217;re going to do some simple scripting with ActionScript 2. ActionScript 2 is the previous version of ActionScript. For most projects you will use ActionScript 3, but for the banner ads we need to use AS2 because of the way they are tracked. There are a few things you can&#8217;t use if you are working in AS2, because they were introduced with AS3:</p>
<ul>
<li>3D objects and transforms</li>
<li>TLF Text (use Classic)</li>
<li>Bone tool armatures</li>
</ul>
<h3>The Actions Panel</h3>
<p>Actionscript is adding to your Flash movie through the Actions panel, which you can open either through the Windows menu or Shift+F9 .</p>
<p><a href="http://classes.catherinegarnier.com/f11interactiveanimation/?attachment_id=275" rel="attachment wp-att-275"><img title="The Actions Panel" src="http://classes.catherinegarnier.com/f11webmedia1/wp-content/uploads/Screen-shot-2011-10-03-at-9.13.59-AM.png" alt="" width="612" height="343" /></a></p>
<p>The Actions panel will always show you the code for the object on the stage you currently have selected.</p>
<p>We&#8217;ll get into the nitty gritty of ActionScript after the midterm project is done, but for now we&#8217;re just going to learn how to make a simple, invisible button that links to a URL for your banner ads.</p>
<h3>Step 1: Creating the Invisible Button Symbol</h3>
<ol>
<li>Create a new layer at the top of your timeline layers</li>
<li>On that layer, draw a rectangle on the stage that is the same size as the stage.</li>
<li>Convert the rectangle to a <strong>Button </strong>symbol (not a MovieClip or Graphic!)</li>
<li>Give the button symbol on the stage an instance name</li>
<li>Open the button symbol to edit it. Copy the rectangle keyframe to the &#8220;Hit&#8221; frame. Clear all the other frames, so it looks like this:</li>
</ol>
<p><a href="http://classes.catherinegarnier.com/f11webmedia1/wp-content/uploads/Screen-shot-2011-10-03-at-4.01.54-PM1.png"><img title="The invisible button" src="http://classes.catherinegarnier.com/f11webmedia1/wp-content/uploads/Screen-shot-2011-10-03-at-4.01.54-PM1.png" alt="" width="508" height="92" /></a></p>
<p>This will make the button invisible, but clickable. Yay!</p>
<h3>Step 2: Adding Behavior to an Object on the Stage</h3>
<p>In AS2 (but not AS3) you can add Actionscript directly to a MovieClip or Button instance on the stage via the Properties panel, by clicking the little arrow at the top right of the panel:</p>
<p><a href="http://classes.catherinegarnier.com/f11interactiveanimation/?attachment_id=276" rel="attachment wp-att-276"><img title="Properties Panel" src="http://classes.catherinegarnier.com/f11webmedia1/wp-content/uploads/Screen-shot-2011-10-03-at-9.18.58-AM.png" alt="" width="285" height="165" /></a></p>
<p>This will open the Actions panel for that object.</p>
<p>The code for creating an &#8220;on click&#8221; behavior in AS2 for your button is as follows:</p>
<pre>on (release) {
 // put what you want to happen when the button is clicked here
}</pre>
<p>To test whether you&#8217;ve added the button and the behavior correctly, you can use the trace function. The trace function will send data to the output window when you are in Flash, but is invisible to the user once the Flash movie is published as a .swf online.</p>
<pre>on (release) {
 trace("click");
}</pre>
<p>To add a link to the click behavior, use the getURL function:</p>
<pre>on (release) {
 getURL("http://www.cryptozoic.com", "_blank");
 }</pre>
<p>The first parameter is the full path to the web page you want to open. The &#8220;_blank&#8221; parameter will force the linked URL to open in a new browser window.</p>
<h3>Midterm Project Part 2: Animating Your Banner</h3>
<h4>The next step in the banner project is to take your storyboard art into Flash to animate it. Remember that you only have 100K to play with for the final swf. Here&#8217;s some things you can do to keep the size down.</h4>
<h4></h4>
<h4>Strategies for keeping file size low:</h4>
<ul>
<li>Lower the frame rate. The lower it is, the smaller the file. Warning, if you do this after you start animating, it&#8217;s going to speed everything up, and you will have to adjust your animation to compensate.</li>
<li>Flatten effects in Photoshop. Flash will import layer effects like strokes, drop shadows and glows as separate layers, which really adds up to increase file size.</li>
<li>Recreate layer effects in Flash, especially if you are planning to scale the objects they are applied to</li>
<li>Recreate text in Flash, especially if you are planning to scale it</li>
<li>Adjust publish settings for image compression</li>
<li>Adjust individual bitmap settings for image compression</li>
<li>Don&#8217;t import bitmap art at a larger size than you need it</li>
</ul>
<h3>Homework</h3>
<p>Animate one size of your banner ads (which one is your choice!), and add an invisible button to it. Link the button to the Cryptozoic Web site at: http://www.cryptozoic.com. Next week we&#8217;ll review the banners in class, then you&#8217;ll have another week to revise them and animate the other size.</p>
<p>Here&#8217;s some examples of finished ads:</p>
<p>[swfobj src="http://classes.catherinegarnier.com/f11webmedia1/wp-content/uploads/penny_arcade_300x250_v4_ct.swf" width="300" height="250" align="center" allowfullscreen="false"]</p>
<p>[swfobj src="http://classes.catherinegarnier.com/f11webmedia1/wp-content/uploads/TOG_Set15_banner_728x90_2B_4.swf" width="728" height="90" allowfullscreen="false"]</p>
<p>[swfobj src="http://classes.catherinegarnier.com/f11webmedia1/wp-content/uploads/FoodFight_300x250_1_v6_comp_as2_gen.swf" width="300" height="250" align="center" allowfullscreen="false"]</p>
]]></content:encoded>
			<wfw:commentRss>http://classes.catherinegarnier.com/f11interactiveanimation/2011/10/12/week-6-intro-to-actionscript-2-storyboard-review/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

