<?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</title>
	<atom:link href="http://www.clockworkbird.com/site/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>Thu, 22 Jul 2010 16:08:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</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>1,000 uploads to YouTube, the aftermath</title>
		<link>http://www.clockworkbird.com/site/2010/06/03/1000-uploads-to-youtube-the-aftermath-3/</link>
		<comments>http://www.clockworkbird.com/site/2010/06/03/1000-uploads-to-youtube-the-aftermath-3/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 20:46:33 +0000</pubDate>
		<dc:creator>hey hey</dc:creator>
				<category><![CDATA[art]]></category>
		<category><![CDATA[inspiration]]></category>

		<guid isPermaLink="false">http://www.clockworkbird.com/site/?p=481</guid>
		<description><![CDATA[So, a friend of mine, Patrick, has been performing a art/video project on Youtube for the last year. The project can be viewed here. The project: 1. Upload a video to YouTube. 2. Download said video from YouTube. 3. Reupload the video you just downloaded. 4. Repeat 999 times. Turns out the natural deterioration of [...]]]></description>
			<content:encoded><![CDATA[<p>So, a friend of mine, <a href="http://www.youtube.com/user/canzona">Patrick</a>, has been performing a art/video project on Youtube for the last year. <a href="http://www.youtube.com/user/canzona">The project can be viewed here.</a></p>
<p><strong>The project:</strong><br />
1. Upload a video to YouTube.<br />
2. Download said video from YouTube.<br />
3. Reupload the video you just downloaded.<br />
4. Repeat 999 times.</p>
<p>Turns out the natural deterioration of the re-compression is a lovely thing to watch.<br />
By the 1000th time there is very little left of the original image and sound track. What remains, is a pixelated wash that vaguely suggests movement. Art + Technology once again comes unique and super cool.<br />
<img src="http://cdn.mashable.com/wp-content/uploads/2010/06/youtube-1000-ba-640.jpg" alt="" width="384" height="144" /><br />
This was covered  over at Mashable. <a href="http://mashable.com/2010/06/03/youtube-i-am-sitting/">READ THE FULL ARTICLE.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.clockworkbird.com/site/2010/06/03/1000-uploads-to-youtube-the-aftermath-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PRF Songwriting Challenge &#8211; Week 71 &#8211; I Win!</title>
		<link>http://www.clockworkbird.com/site/2010/02/02/prf-songwriting-challenge-week-71-im-sort-of-a-winner/</link>
		<comments>http://www.clockworkbird.com/site/2010/02/02/prf-songwriting-challenge-week-71-im-sort-of-a-winner/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 15:30:00 +0000</pubDate>
		<dc:creator>hey hey</dc:creator>
				<category><![CDATA[music]]></category>
		<category><![CDATA[songwriting]]></category>

		<guid isPermaLink="false">http://www.clockworkbird.com/site/?p=429</guid>
		<description><![CDATA[So, it&#8217;s 11pm last Sunday. I&#8217;m watching a Dr. Who episode I&#8217;ve seen before and it suddenly strikes me that the PRF songwriting challenge is due in one hour. So, I whipped out the &#8216;ol baritone uke and wrote a simple, little ditty in about 20 minutes, recorded in 2 takes , with 1 mic [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.purevolume.com/PRFWeek71/albums/Call+Any+Vegetable" target="blank"><img alt="" src="http://g.purevolumecdn.com/cdnImages/crop_345x235/Artist-4697036-frank_zappa.jpg" title="PRF Songwriting Challenge - Week 71 - Vegetables" class="alignnone" width="345" height="235" /></a><br />
<br/><br/></p>
<p>So, it&#8217;s 11pm last Sunday. I&#8217;m watching a Dr. Who episode I&#8217;ve seen before and it suddenly strikes me that the PRF songwriting challenge is due in one hour.</p>
<p>So, I whipped out the &#8216;ol baritone uke and wrote a simple, little ditty in about 20 minutes, recorded in 2 takes , with 1 mic and ended up tying for first place. <strong>Woo hoo! I&#8217;m kind of a winner!</strong></p>
<p>The challenge was the write a song that somehow has to do with vegetables. Here is a link to the whole week&#8217;s entries:<br />
<a href="http://www.purevolume.com/PRFWeek71/albums/Call+Any+Vegetable">http://www.purevolume.com/PRFWeek71/albums/Call+Any+Vegetable</a></p>
<p><strong>Mine is titled: Iamnotavegetable </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.clockworkbird.com/site/2010/02/02/prf-songwriting-challenge-week-71-im-sort-of-a-winner/feed/</wfw:commentRss>
		<slash:comments>1</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>The Fader Magazine: New Favorite Podcast</title>
		<link>http://www.clockworkbird.com/site/2009/06/25/httpwww-clockworkbird-comsitewp-adminpost-new-phpthe-fader-magazine-new-favorite-podcast/</link>
		<comments>http://www.clockworkbird.com/site/2009/06/25/httpwww-clockworkbird-comsitewp-adminpost-new-phpthe-fader-magazine-new-favorite-podcast/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 17:26:41 +0000</pubDate>
		<dc:creator>hey hey</dc:creator>
				<category><![CDATA[music]]></category>

		<guid isPermaLink="false">http://www.clockworkbird.com/site/?p=393</guid>
		<description><![CDATA[I&#8217;m a podcast lover, fiend, addict, whatever title you want to slap on. I just can&#8217;t get enough. They are an intregal part of my workflow and one of the primary ways I keep up with news, entertainment and business stuff. Long live the podcast. The Fader magazine podcast is my new favorite addition to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a podcast lover, fiend, addict, whatever title you want to slap on. I just can&#8217;t get enough. They are an intregal part of my workflow and one of the primary ways I keep up with news, entertainment and business stuff. Long live the podcast.</p>
<p><a href="http://www.thefader.com/" target="blank"><img src="http://www.thefader.com/ys_assets/0009/3844/girlssneakpeak_main.jpg?1245942636" border="0" alt="Fader" width="300" /></a></p>
<p>The Fader magazine podcast is my new favorite addition to the podcast collection.<br />
It features great new artists from a variety of genres. I can already see many more CD purchases in my future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clockworkbird.com/site/2009/06/25/httpwww-clockworkbird-comsitewp-adminpost-new-phpthe-fader-magazine-new-favorite-podcast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Golden Ratio and Web Design</title>
		<link>http://www.clockworkbird.com/site/2009/06/24/the-golden-ratio-and-web-design/</link>
		<comments>http://www.clockworkbird.com/site/2009/06/24/the-golden-ratio-and-web-design/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 13:22:25 +0000</pubDate>
		<dc:creator>hey hey</dc:creator>
				<category><![CDATA[art]]></category>
		<category><![CDATA[inspiration]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[golden ratio]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.clockworkbird.com/site/?p=388</guid>
		<description><![CDATA[I love Nettuts. They&#8217;ve brought us another lovely article here: http://nettuts.com/tutorials/other/the-golden-ratio-in-web-design/ I remember being fascinated by the concept of the golden ratio as a kid. Good design explained by math?!? What?!?! It suggests a greater organization to this wacky beautiful world we live in. To me, that&#8217;s comforting.]]></description>
			<content:encoded><![CDATA[<p>I love Nettuts. They&#8217;ve brought us another lovely article here:<br />
<a href="http://nettuts.com/tutorials/other/the-golden-ratio-in-web-design/" target="blank">http://nettuts.com/tutorials/other/the-golden-ratio-in-web-design/</a><br/><br/><br />
I remember being fascinated by the concept of the golden ratio as a kid. Good design explained by math?!? What?!?! It suggests a greater organization to this wacky beautiful world we live in.<br />
To me, that&#8217;s comforting.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clockworkbird.com/site/2009/06/24/the-golden-ratio-and-web-design/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>New portfolio site!</title>
		<link>http://www.clockworkbird.com/site/2009/06/17/new-portfolio-site/</link>
		<comments>http://www.clockworkbird.com/site/2009/06/17/new-portfolio-site/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 18:26:20 +0000</pubDate>
		<dc:creator>hey hey</dc:creator>
				<category><![CDATA[freelancing]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[new site]]></category>
		<category><![CDATA[portfolio site]]></category>

		<guid isPermaLink="false">http://www.clockworkbird.com/site/?p=383</guid>
		<description><![CDATA[Woohoo! That only took 2 years&#8230; (really 2 weeks once I sat down to do it.) If you find any bugs, please just email me.]]></description>
			<content:encoded><![CDATA[<p>Woohoo! That only took 2 years&#8230; (really 2 weeks once I sat down to do it.)<br />
<br/><br />
If you find any bugs, please just <a href="ticktock@clockworkbird.com">email me</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clockworkbird.com/site/2009/06/17/new-portfolio-site/feed/</wfw:commentRss>
		<slash:comments>1</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>
	</channel>
</rss>
