<?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>CLOCKWORKBIRD: design, animation, illustration &#187; flash</title>
	<atom:link href="http://www.clockworkbird.com/site/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.clockworkbird.com/site</link>
	<description>Clockworkbird (aka Heather Smith) : Chicago based web designer, developer, animator, illustrator, artist and musician.</description>
	<lastBuildDate>Sat, 21 Jan 2012 23:17:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Box2D + Glen Beck = Awesomeness</title>
		<link>http://www.clockworkbird.com/site/2010/07/22/box2d-glen-beck-awesomeness/</link>
		<comments>http://www.clockworkbird.com/site/2010/07/22/box2d-glen-beck-awesomeness/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 16:04:23 +0000</pubDate>
		<dc:creator>hey hey</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[funny]]></category>

		<guid isPermaLink="false">http://www.clockworkbird.com/site/?p=576</guid>
		<description><![CDATA[This is a silly little test swf that I created while working on a project for the Intelligent Information Laboratory. It&#8217;s not perfect&#8230; but it sure is fun. Go on&#8230; Get out some aggression. It might be the healthiest thing you&#8217;ve done all day. swfobject.embedSWF("http://www.clockworkbird.com/site/wp-content/themes/cwb/style/flash/puppet_skinned2.swf", "puppet", "400", "400", "8.0.0", "#FFFFFF", {wmode:"opaque"});]]></description>
			<content:encoded><![CDATA[<p>This is a silly little test swf that I created while working on a project for the Intelligent Information Laboratory. It&#8217;s not perfect&#8230; but it sure is fun.</p>
<p>Go on&#8230; Get out some aggression. It might be the healthiest thing you&#8217;ve done all day. </p>
<div id="puppet"></div>
<p><script type="text/javascript">
swfobject.embedSWF("http://www.clockworkbird.com/site/wp-content/themes/cwb/style/flash/puppet_skinned2.swf", "puppet", "400", "400", "8.0.0", "#FFFFFF", {wmode:"opaque"}); </script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.clockworkbird.com/site/2010/07/22/box2d-glen-beck-awesomeness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3: gotoAndPlay when an FLV file is finished playing</title>
		<link>http://www.clockworkbird.com/site/2009/12/08/as3-gotoandplay-when-an-flv-file-is-finished-playing/</link>
		<comments>http://www.clockworkbird.com/site/2009/12/08/as3-gotoandplay-when-an-flv-file-is-finished-playing/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 20:10:18 +0000</pubDate>
		<dc:creator>hey hey</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.clockworkbird.com/site/?p=402</guid>
		<description><![CDATA[THE PROBLEM: So, I recently created a showcase reel that involves several flvs with transitions between. For various reasons, I had to make this a timeline based animation. I was running into a problem with latency because of download times and the flvplayback component. The flvs would play and the transitions between the flvs would [...]]]></description>
			<content:encoded><![CDATA[<p><br/><br />
<em><strong>THE PROBLEM:</strong></em><br />
So, I recently created a showcase reel that involves several flvs with transitions between. For various reasons, I had to make this a timeline based animation. I was running into a problem with latency because of download times and the flvplayback component. The flvs would play and the transitions between the flvs would occur really late.</p>
<p><em><strong>THE SOLUTION:</strong></em><br />
Add an event listener to the flv instance and listen for COMPLETE.</p>
<div style="font-size:12px; padding: 15px; border: 1px solid #ccc;">
<strong>Step 1: </strong>Import your FLV files and place on stage with the correct # of frames between them. (Take the length of your FLV file, multiply by the FPS of your FLA file: that is how many keyframes that particular FLV should have on the timeline.)<br />
<br/><br />
Select File &gt; Import to Stage &gt; Your FLV file name<br />
(There are lots of options when importing FLV files. Select what is appropriate for your project.)<br />
<br/><br />
<strong>Step 2:</strong> Give your flvs instance names ( for the first FLV, I chose the very creative instance name flv1)</p>
<p><strong>Step 3:</strong> Create a new layer, name it labels</p>
<p><strong>Step 4:</strong> Set a keyframe on for the first frame of each flv file and give a label name on the properties tab</p>
<p><strong>Step 5:</strong> Create an actions layer, create a keyframe for the first frame of each flv file (just like you did for the label names)</p>
<p><strong>Step 6:</strong> Import the VideoEvent.<br />
On the first frame of the Actions layer place this code:</p>
<div style="font-size:10px; padding: 15px; ">
import fl.video.VideoEvent;
</div>
<p><strong>Step 7: </strong>Add this code to each key frame, changing the instance name, function name and gotoAndPlay() label name.</p>
<div style="font-size:10px; padding: 15px; ">
flv1.addEventListener(VideoEvent.COMPLETE,videoOver1);</p>
<p>function videoOver1(e:VideoEvent)<br />
{<br />
gotoAndPlay(&#8220;part2&#8243;);<br />
}
</p></div>
</div>
<p><br/><br />
<a href="http://www.clockworkbird.com/site/wp-content/uploads/2009/12/flv_complete_tutorial_smal.mov" rel="shadowbox[];width=800;height=448;"><img src="http://www.pages.drexel.edu/~rwm43/images/512%20Quicktime.png" alt="quicktime" title="View Tutorial" width="50" style="float: left; padding-right: 20px;"/><br />
<h3>VIEW THE TUTORIAL : On FLV Complete gotoAndPlay()</h3>
<p></a><br />
<br/><br/><br />
<a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/video/FLVPlayback.html" target="_blank"><img src="http://www.cringely.com/wp-content/uploads/adobe_flash.jpg" alt="" title="Read more about the component" style="float: left; padding-right: 20px;"" width="50"/></p>
<h3>READ MORE ABOUT the FLVPlayBack component</h3>
<p></a></p>
<div class="floatClear"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.clockworkbird.com/site/2009/12/08/as3-gotoandplay-when-an-flv-file-is-finished-playing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.clockworkbird.com/site/wp-content/uploads/2009/12/flv_complete_tutorial_smal.mov" length="3620773" type="video/quicktime" />
		</item>
		<item>
		<title>5005: Unknown Error optimizing byte code</title>
		<link>http://www.clockworkbird.com/site/2009/11/30/5005-unknown-error-optimizing-byte-code/</link>
		<comments>http://www.clockworkbird.com/site/2009/11/30/5005-unknown-error-optimizing-byte-code/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 18:05:33 +0000</pubDate>
		<dc:creator>hey hey</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.clockworkbird.com/site/?p=399</guid>
		<description><![CDATA[THE PROBLEM: I encountered a super annoying error message in flash today: 5005: Unknown Error optimizing byte code I received it when trying to publish a flash file that incorporates several FLV files. Apparently, Adobe says this error can occur when publishing really large files (http://kb.adobe.com/selfservice/viewContent.do?externalId=kb405257), but my FLA is only 1.6 mb and the [...]]]></description>
			<content:encoded><![CDATA[<p><strong><em>THE PROBLEM:</em></strong></p>
<p>I encountered a super annoying error message in flash today:<br />
<strong>5005: Unknown Error optimizing byte code<br />
</strong><br />
I received it when trying to publish a flash file that incorporates several FLV files.</p>
<p>Apparently, Adobe says this error can occur when publishing really large files <a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=kb405257" target="_blank">(<span><span style="color: #999999;">http://kb.adobe.com/</span></span><span><span style="color: #999999;">selfservice/viewContent.do?</span></span><span><span style="color: #999999;">externalId=kb405257</span></span>)</a>, but my FLA is only 1.6 mb and the published SWF is only 345 k. I&#8217;m guessing it has to do with the FLVs that are being loaded in.</p>
<p><strong><em>THE SOLUTION:</em></strong></p>
<p>Thankfully, I found a concise and easy to use solution here (THANK YOU, Stefig Design! You&#8217;re the bestest.):</p>
<p><a href="http://stefig.blogspot.com/2009/04/5005-unknown-error-optimizing-byte-code.html" target="_blank">http://stefig.blogspot.com/2009/04/5005-unknown-error-optimizing-byte-code.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.clockworkbird.com/site/2009/11/30/5005-unknown-error-optimizing-byte-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash and Andriod</title>
		<link>http://www.clockworkbird.com/site/2009/06/24/flash-and-andriod/</link>
		<comments>http://www.clockworkbird.com/site/2009/06/24/flash-and-andriod/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 13:16:39 +0000</pubDate>
		<dc:creator>hey hey</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[smart phone]]></category>

		<guid isPermaLink="false">http://www.clockworkbird.com/site/?p=385</guid>
		<description><![CDATA[Hurray~! A smart phone that supports flash! Thank you, Android. Again, you are leading the pack. Personally, I&#8217;m thrilled by this. It&#8217;s one step closer to being able to extend interactivity to new input devices. Can you imagine playing a game on a touch screen? Or experiencing an interactive art piece with your hands? The [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.blog.mpcreation.pl/wp-content/themes/magazeen/timthumb.php?src=http://www.blog.mpcreation.pl/wp-content/uploads/2009/06/android.png&#038;w=450&#038;h=350&#038;zc=1" alt="Android" /><br/><br/><br />
Hurray~!  A smart phone that supports flash! Thank you, Android. Again, you are leading the pack. <br/><br/><br />
Personally, I&#8217;m thrilled by this. It&#8217;s one step closer to being able to extend interactivity to new input devices. Can you imagine playing a game on a touch screen? Or experiencing an interactive art piece with your hands? The possibilities are endless and exciting. One small step, one giant leap.<br/><br/></p>
<p>You can see a demo of flash on Android here:<br/><br />
<a href="http://www.adobe.com/devnet/devices/articles/htchero.html">http://www.adobe.com/devnet/devices/articles/htchero.html</a><br/><br/></p>
<p>If you are a web developer, you can learn more about making flash work on Android here:<br />
</a><a href="http://www.adobe.com/mobile">http://www.adobe.com/mobile</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.clockworkbird.com/site/2009/06/24/flash-and-andriod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shadowbox.js: Flash and Javascript doing a jig</title>
		<link>http://www.clockworkbird.com/site/2009/05/29/shadowboxjs-flash-and-javascript-doing-a-jig/</link>
		<comments>http://www.clockworkbird.com/site/2009/05/29/shadowboxjs-flash-and-javascript-doing-a-jig/#comments</comments>
		<pubDate>Fri, 29 May 2009 20:17:14 +0000</pubDate>
		<dc:creator>hey hey</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[custom function]]></category>
		<category><![CDATA[getURL]]></category>
		<category><![CDATA[lightbox]]></category>
		<category><![CDATA[shadowbox]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.clockworkbird.com/blog/?p=261</guid>
		<description><![CDATA[Websites these days are simply layers of technologies stacked on top of one another. Every member of the digital sandwich doing what they do best. HTML structuring, CSS styling, Flash flashing, etc, etc&#8230; Sometimes they all play well together and sometimes it&#8217;s an alley way knife fight. I recently completed a project that involved creating [...]]]></description>
			<content:encoded><![CDATA[<p>Websites these days are simply layers of technologies stacked on top of one another. Every member of the digital sandwich doing what they do best. HTML structuring, CSS styling, Flash flashing, etc, etc&#8230;<br />
Sometimes they all play well together and sometimes it&#8217;s an alley way knife fight.</p>
<p>I recently completed a project that involved creating little flash widgets that would call a pop up using some sort of js lightbox library. Turns out this is not as simple as I thought it would be. After auditioning 10 (that&#8217;s right 10) lightboxes I finally emerged with a winner: <a href="http://www.shadowbox-js.com/">Shadowbox</a>.</p>
<p><strong>The issue:</strong><br />
Most lightboxes use the rel attribute to call the popup function. As far as I can tell, there is no way to insert a rel attribute inside of a getURL() in Actionscript. <em>To be honest, i had lots of other issues with the lightboxes I tried: browser capability, conflict with other js libraries I was using (jquery), inconsistent behavior, inability to load html pages (vs just images), etc.. etc..</em></p>
<p><strong>The solution:</strong><br />
<a href="http://www.shadowbox-js.com/">Shadowbox</a> allows you to set up a custom function for opening an instance of the popup. You simply feed that function name, proceeded by javascript: into the getURL() and voila!</p>
<div style=" padding: 10px; border: 1px solid #aaa;">
<strong>Step 1:</strong><br />
<a href="http://http://www.shadowbox-js.com/">Download Shadowbox</a> and buy a license! if you intend to use it for commercial purposes. Come on, y&#8217;all. It&#8217;s 20 bucks. Let&#8217;s support our awesome open source developers.</p>
<p><strong>Step 2:</strong><br />
Embed the scripts properly in your header:</p>
<div style="font-size:10px; padding: 5px;">&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;scripts/shadowbox/shadowbox.css&#8221;&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;scripts/shadowbox/shadowbox.js&#8221;&gt;&lt;/script&gt;</div>
<p><strong>Step 3:</strong><br />
Initialize Shadowbox (with the required players &#8211; <a href="http://www.shadowbox-js.com/usage.html">read more here</a>) and then create a custom function in javascript in your html document. :</p>
<div style="font-size:9px; padding: 5px;">&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
Shadowbox.init({<br />
players:    ["html","iframe"]<br />
});<br />
function abrirSB(url)<br />
{<br />
Shadowbox.open({player: &#8220;iframe&#8221;, content: url, height: 570 , width: 850});<br />
};<br />
&lt;/script&gt;</div>
<p><strong>Step 4:</strong><br />
Create a flash piece with a getURL function applied to a button.</p>
<p><strong>Step 5:</strong><br />
Feed the properly formatted URL with the custom function name into the getURL:</p>
<div style="font-size:9px; padding: 5px;">button_btn.onRelease = function ()<br />
{<br />
getURL(&#8220;javascript:popUpFunction( &#8216;hello_world.html&#8217;);&#8221;)<br />
}</div>
<p><strong>Step 6:</strong><br />
Embed your flash object. I generally use SWFObject.</p>
<p><strong>Step 7:</strong><br />
Jump up and down and do a little dance when it works.
</div>
<p>I&#8217;ve even created a working sample for you, just to make it that much easier.</p>
<p><a href="http://www.clockworkbird.com/extras/flash_js_popup.zip"><strong>DOWNLOAD A COMPLETE TUTORIAL</strong></a></p>
<p>FYI: If you run it locally, Flash will try to verify that you have security clearance for that file. It&#8217;s not an error. It&#8217;s a security measure.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clockworkbird.com/site/2009/05/29/shadowboxjs-flash-and-javascript-doing-a-jig/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I LOVE ILLUSTRATION</title>
		<link>http://www.clockworkbird.com/site/2009/02/20/i-love-illustration/</link>
		<comments>http://www.clockworkbird.com/site/2009/02/20/i-love-illustration/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 20:33:30 +0000</pubDate>
		<dc:creator>hey hey</dc:creator>
				<category><![CDATA[art]]></category>
		<category><![CDATA[business]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[freelancing]]></category>
		<category><![CDATA[graphic art]]></category>
		<category><![CDATA[illustration]]></category>
		<category><![CDATA[cowboy]]></category>
		<category><![CDATA[flashden]]></category>
		<category><![CDATA[istockphotos]]></category>
		<category><![CDATA[passive  income]]></category>

		<guid isPermaLink="false">http://www.clockworkbird.com/blog/?p=165</guid>
		<description><![CDATA[So being a full time freelancer, I&#8217;m looking at ways of diversifying my income &#8211; especially supplementing my large project based paychecks with smaller more frequent paychecks &#8211; the trickling stream method, if you will. So, one of my strategies to create passive income is through the sale of stock illustrations and flash files. There [...]]]></description>
			<content:encoded><![CDATA[<p>So being a full time freelancer, I&#8217;m looking at ways of diversifying my income &#8211; especially supplementing my large project based paychecks with smaller more frequent paychecks &#8211; the trickling stream method, if you will.</p>
<p>So, one of my strategies to create passive income is through the sale of stock illustrations and flash files. There are number of sites that specialize in this sort of submission / payment method. They get paid. You get paid. Clients get high quality work for affordable prices. Everybody wins. Two excellent examples that I plan to participate on are:<br />
<a href="http://www.flashden.net">www.flashden.net</a><br />
<a href="www.istockphotos.com">www.istockphotos.com</a></p>
<p>Here is my first submission. It only took me a few hours and was so much fun to work on.</p>
<p><img title="cowboy" src="http://www.clockworkbird.com/blog/wp-content/uploads/2009/02/cowboy.png" alt="" /></p>
<p><strong><br />
I LOVE ILLUSTRATION. </strong></p>
<p>I love it so much, I&#8217;m going to actively seek out more illustration jobs. It&#8217;s such a lovable combination of arty, imaginative and potentially lucrative.<br />
Watch out illustration world, here I come.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clockworkbird.com/site/2009/02/20/i-love-illustration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash and the iPhone- lovers at last???</title>
		<link>http://www.clockworkbird.com/site/2009/02/09/flash-and-the-iphone-lovers-at-last/</link>
		<comments>http://www.clockworkbird.com/site/2009/02/09/flash-and-the-iphone-lovers-at-last/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 20:19:13 +0000</pubDate>
		<dc:creator>hey hey</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://www.clockworkbird.com/blog/?p=134</guid>
		<description><![CDATA[Okay, so that&#8217;s a bit of an exaggeration. They are nowhere near lovers&#8230; but, at least, it seems they are beginning to flirt a bit. As a flash designer and animator, I have been pulling for adobe and apple to put aside their differences and learn how to play well together for A LONG, LONG [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flashmagazine.com/news/detail/flash_on_the_iphone_is_in_progress/"><img class="aligncenter" src="http://www.flashmagazine.com/images/uploads/cache/noFlashOnIphone-780x331.jpg" alt="" width="545" height="230" /></a></p>
<p>Okay, so that&#8217;s a bit of an exaggeration. They are nowhere near lovers&#8230; but, at least, it seems they are beginning to flirt a bit.</p>
<p>As a flash designer and animator,  I have been pulling for adobe and apple to put aside their differences and learn how to play well together for A LONG, LONG TIME. It seems as though the peace process has finally begun&#8230;</p>
<p>Read more about it here:<br />
<a href="http://www.flashmagazine.com/news/detail/flash_on_the_iphone_is_in_progress/">http://www.flashmagazine.com/news/detail/flash_on_the_iphone_is_in_progress/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.clockworkbird.com/site/2009/02/09/flash-and-the-iphone-lovers-at-last/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

