<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2" -->
<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/"
	>

<channel>
	<title>Flux, Flex, and Other</title>
	<link>http://www.pattyandtodd.com/blog</link>
	<description>Our lives, my work, and anything else relevant</description>
	<pubDate>Fri, 30 Nov 2007 18:22:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>
	<language>en</language>
			<item>
		<title>signs of the apocalypse</title>
		<link>http://www.pattyandtodd.com/blog/?p=57</link>
		<comments>http://www.pattyandtodd.com/blog/?p=57#comments</comments>
		<pubDate>Fri, 30 Nov 2007 18:22:26 +0000</pubDate>
		<dc:creator>Todd</dc:creator>
		
		<category><![CDATA[posted remotely]]></category>

		<guid isPermaLink="false">http://www.pattyandtodd.com/blog/?p=57</guid>
		<description><![CDATA[Patty just got home, and called me to come outside.
There are, literally, hundreds of vultures circling over our house and our neighbor&#8217;s house.
It is quite, quite unnerving.
]]></description>
			<content:encoded><![CDATA[<p>Patty just got home, and called me to come outside.</p>
<p>There are, literally, hundreds of vultures circling over our house and our neighbor&#8217;s house.</p>
<p>It is quite, quite unnerving.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pattyandtodd.com/blog/?feed=rss2&amp;p=57</wfw:commentRss>
		</item>
		<item>
		<title>Avast!  5 weeks till escape!</title>
		<link>http://www.pattyandtodd.com/blog/?p=56</link>
		<comments>http://www.pattyandtodd.com/blog/?p=56#comments</comments>
		<pubDate>Fri, 30 Nov 2007 17:01:34 +0000</pubDate>
		<dc:creator>Todd</dc:creator>
		
		<category><![CDATA[extracurricular activities]]></category>

		<guid isPermaLink="false">http://www.pattyandtodd.com/blog/?p=56</guid>
		<description><![CDATA[As many of you might know, last year Patty and I went on a vacation with our friends Kurt &#38; Keri and Jeff &#38; Lorna.  Sailing around on a captained-and-crewed 44&#8242; catamaran, touring the British Virgin Islands&#8230;  Check the general idea here.
Well, we couldn&#8217;t pass up the opportunity to do it again this [...]]]></description>
			<content:encoded><![CDATA[<p>As many of you might know, last year Patty and I went on a vacation with our friends Kurt &amp; Keri and Jeff &amp; Lorna.  Sailing around on a captained-and-crewed 44&#8242; catamaran, touring the British Virgin Islands&#8230;  Check the <a href="http://www.festivasailingvacations.com/destinations/britishvirginislands.shtml" target="_blank">general idea here</a>.</p>
<p>Well, we couldn&#8217;t pass up the opportunity to do it again this year, so over New Year&#8217;s we&#8217;re off to <a href="http://en.wikipedia.org/wiki/Saint_Vincent_and_the_Grenadines" target="_blank">the Grenadines</a>.  This time we have two boats and 6 couples, which will be awesome!</p>
<p>Just like last time, the 5 week mark turns some sort of mental corner that causes all of us to suddenly lose our minds, begin emailing in pirate speak (ye olde matey&#8217;s and stuff like that) and generally start the countdown.  In honor of the last trip, I composed an old sea shanty about one day on the boat last time.  You should have seen the GPS - it looked like a 2 year old attacked an Etch-A-Sketch.</p>
<p>&#8220;Ye Olde Leg&#8217;nd o&#8217; Swab Kurt&#8221;<br />
(or, &#8220;How Dead GPSs Still Tell Tales&#8221;)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Said Cap&#8217;n John to deck-swab Kurt,<br />
&#8220;Aye want a nap, so steer me boat!<br />
See that fair isle miles to stern,<br />
Aye want ye mates the boat to turn,<br />
And find yon&#8217; port before I wake,<br />
Or else ye crew shall walk the plank!&#8221;</p>
<p>Swab Kurt said &#8220;Aye!&#8221; and told his wench, &#8220;Woman fetch me grog, my thirst to quench!&#8221;<br />
And set about selecting crew:<br />
Lorna, Jeff, Todd and Patty too!<br />
&#8220;Aye&#8217;ll take the helm, &#8217;cause ye are dopes!<br />
Fit not for more than pullin&#8217; ropes&#8230;&#8221;</p>
<p>S&#8217; Kurt set out upon his plan,<br />
Care&#8217;d not fer the safety of woman ner man.<br />
&#8220;Prepare ye to tack&#8221; he&#8217;d growl and sneer, Nay lettin&#8217; his crew enjoy their beer.<br />
It passed this way for many an hour,<br />
Bu&#8217; twen John awoke his mood was sour!</p>
<p>&#8220;I left ye here with directions clear!<br />
Go over there from over here!<br />
Ye have created quite a mess!&#8221;</p>
<p>And then we all looked at the GPS&#8230;</p>
<p>Whar straight a line thar might have shown,<br />
The history of how straight the wind had blown&#8230;<br />
Nay thar instead a tangl&#8217;ed web,<br />
Show&#8217;n tha&#8217; boat &#8212; had turned and ebbed,<br />
Buy made nay progress since John departed</p>
<p class="MsoPlainText">&#8230;the boat what in th&#8217; same spot that she started!</p>
<p class="MsoPlainText">So let ye scurvy brains abserb yon tale,<br />
What be sailin&#8217; boats &#8216;er chasin whales.<br />
Rule not ye swabs with iron fist,<br />
Er else ye cap&#8217;n might be pissed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pattyandtodd.com/blog/?feed=rss2&amp;p=56</wfw:commentRss>
		</item>
		<item>
		<title>Kurt&#8217;s an animal!</title>
		<link>http://www.pattyandtodd.com/blog/?p=55</link>
		<comments>http://www.pattyandtodd.com/blog/?p=55#comments</comments>
		<pubDate>Mon, 05 Nov 2007 15:50:02 +0000</pubDate>
		<dc:creator>Todd</dc:creator>
		
		<category><![CDATA[too cool for school]]></category>

		<guid isPermaLink="false">http://www.pattyandtodd.com/blog/?p=55</guid>
		<description><![CDATA[Our friend Kurt just ran the Florida Ironman&#8230;  Way to go Kurt!  Now he can get back to eating garbage and drinking beer with the rest of us&#8230;
]]></description>
			<content:encoded><![CDATA[<p>Our friend Kurt just <a href="http://ironman.com//events/ironman/florida/?show=tracker&amp;y=2007&amp;race=/events/ironman/florida/&amp;bib=548" target="_blank">ran the Florida Ironman</a>&#8230;  Way to go Kurt!  Now he can get back to eating garbage and drinking beer with the rest of us&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pattyandtodd.com/blog/?feed=rss2&amp;p=55</wfw:commentRss>
		</item>
		<item>
		<title>Matrix transformations: Man i should have stayed awake in Trig&#8230;</title>
		<link>http://www.pattyandtodd.com/blog/?p=54</link>
		<comments>http://www.pattyandtodd.com/blog/?p=54#comments</comments>
		<pubDate>Wed, 31 Oct 2007 17:32:50 +0000</pubDate>
		<dc:creator>Todd</dc:creator>
		
		<category><![CDATA[flash]]></category>

		<category><![CDATA[flex]]></category>

		<category><![CDATA[grrrrrr]]></category>

		<guid isPermaLink="false">http://www.pattyandtodd.com/blog/?p=54</guid>
		<description><![CDATA[Dear Mr. Cralle (my trigonometry teacher):  You were right.  The unit circle IS important to my life.
I&#8217;m working on a project where I&#8217;m trying to skew a component (an Image, actually) by an amount set by the user.  But I&#8217;m running into problems with the skew amount calculation&#8230;
The actual project is much [...]]]></description>
			<content:encoded><![CDATA[<p>Dear Mr. Cralle (my trigonometry teacher):  You were right.  The unit circle IS important to my life.</p>
<p>I&#8217;m working on a project where I&#8217;m trying to skew a component (an Image, actually) by an amount set by the user.  But I&#8217;m running into problems with the skew amount calculation&#8230;</p>
<p>The actual project is much more complex, but I could replicate by problem in this simple example.  I&#8217;m assuming something either in [ my understanding of the Matrix(), the way I&#8217;m calculating the offset, or the trig functions I&#8217;m using] are where it&#8217;s messing up, but I can&#8217;t figure it out.</p>
<p>A cookie for anyone who solves the problem&#8230;</p>
<p>Okay.  The <a href="http://www.pattyandtodd.com/files/flexexamples/matrixskew/Test.html" target="_blank">demo is here</a>, and the <a href="http://www.pattyandtodd.com/files/flexexamples/matrixskew/srcview/" target="_blank">source is here</a>.</p>
<p>The blue canvas, on the left, is the source of the image I&#8217;m trying to skew.  I&#8217;m drawing it, on the right, with two Image components.  The slider says how far the right half should be moved up or down (as a percentage of the height of the right half)&#8230; and the left half should stay put but skew so that its right edge matches up with the right half.</p>
<p>It&#8217;s almost working, but the edges do not line up.  The right half IS deflecting the proper amount, and from what I can tell, I&#8217;m doing the math right&#8230;</p>
<p>Anyone care to comment as to what&#8217;s wrong?</p>
<p>Sorry, Mr. Cralle&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pattyandtodd.com/blog/?feed=rss2&amp;p=54</wfw:commentRss>
		</item>
		<item>
		<title>Richer internet experiences popping up&#8230; like rabbits&#8230;</title>
		<link>http://www.pattyandtodd.com/blog/?p=53</link>
		<comments>http://www.pattyandtodd.com/blog/?p=53#comments</comments>
		<pubDate>Fri, 26 Oct 2007 18:28:48 +0000</pubDate>
		<dc:creator>Todd</dc:creator>
		
		<category><![CDATA[flash]]></category>

		<category><![CDATA[flex]]></category>

		<category><![CDATA[work]]></category>

		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.pattyandtodd.com/blog/?p=53</guid>
		<description><![CDATA[I&#8217;ve always been interested in the user&#8217;s experience.  Ask my coworkers at Booz &#8212; sure it was cool they could make a database that tracked and manipulated all the cargo being taken up to, or returned from, the International Space Station &#8212; but if the interface wasn&#8217;t equally or more powerful that the logic behind [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always been interested in the user&#8217;s experience.  Ask my coworkers at Booz &#8212; sure it was cool they could make a database that tracked and manipulated all the cargo being taken up to, or returned from, the International Space Station &#8212; but if the interface wasn&#8217;t equally or more powerful that the logic behind it, I complained&#8230;</p>
<p>So it pleases me immensely to see richer experiences showing up all over the web recently.  (and not because I moved to a comany who is all about making that happen).</p>
<p>(well, not <em>only</em>).</p>
<p>I&#8217;m especially happy to see those experiences NOT target at geeky, internet savvy, uber-users.  When it reaches the general public, that&#8217;s good stuff.</p>
<p><a href="http://www.tricedesigns.com/tricedesigns_home/blog/2007/10/ria-permeates-pop-culture.html" target="_blank">Andy posted</a> about how rich internet applications made a cameo on <a href="http://www.nbc.com/The_Office/" target="_blank">The Office</a>.</p>
<p>And then <a href="http://www.kellenstyler.com/" target="_blank">Kellen</a> forwarded us an email about the <a href="http://bravia.sony.eu/bravia.html" target="_blank">Sony Bravia website</a>.  It&#8217;s very design-y and has a lot of interaction, feedback, and experience built in.  It makes you want to see what else is under the other areas.  Much MUCH more engaging than a flat website&#8230;  The cube and navigation effects are interesting, and the interface is catchy, if not intuitive.  We followed on the email with a discussion about how we get lots of requests for cubes, etc.  For serious, daily use applications, maybe not the best design&#8230; but for an occaisional, marketing, kiosk, emotional punch it works well.</p>
<p>Now, if you go play with the website, find the Rabbit claymation section.  Watch the commercial and then the making of.  Nothing to do with Rich Experiences&#8230; it&#8217;s just really cool.</p>
<p>&#8230; and my dad told me not to be an art major&#8230;</p>
<p>&#8230; you see how well Pre-Med worked out&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pattyandtodd.com/blog/?feed=rss2&amp;p=53</wfw:commentRss>
		</item>
		<item>
		<title>Microsoft: You keep using that word.  I do not think it means what you think it means&#8230;</title>
		<link>http://www.pattyandtodd.com/blog/?p=51</link>
		<comments>http://www.pattyandtodd.com/blog/?p=51#comments</comments>
		<pubDate>Wed, 24 Oct 2007 14:18:54 +0000</pubDate>
		<dc:creator>Todd</dc:creator>
		
		<category><![CDATA[grrrrrr]]></category>

		<category><![CDATA[work]]></category>

		<category><![CDATA[apple]]></category>

		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.pattyandtodd.com/blog/?p=51</guid>
		<description><![CDATA[&#8220;Hallo!  My name is Inigo Montoya.  You send me mislabeled crap.  Prepare to die&#8221; &#8230;
I&#8217;m not a Microsoft fan.  I think the combination of their relatively crappy product(s), assuming their non-commercial customers are criminals and/or mindless drones, and the inaccessibility of their support system (I&#8217;ve found it far easier to Google for Microsoft support [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;Hallo!  My name is Inigo Montoya.  You send me mislabeled crap.  Prepare to die&#8221; <a href="http://en.wikipedia.org/wiki/The_Princess_Bride_%28film%29" target="_blank">&#8230;</a></p>
<p>I&#8217;m not a Microsoft fan.  I think the combination of their relatively crappy product(s), assuming their non-commercial customers are criminals and/or mindless drones, and the inaccessibility of their support system (I&#8217;ve found it far easier to Google for Microsoft support issues rather than using Microsoft&#8217;s support search site&#8230; and can you find a phone number on there anywhere?) make them a good candidate for technical hatred.</p>
<p>But the thing that really gets me is the lack of even remotely honest labeling.  There was the instance where they upgraded everyone to the new (crappy) Internet Explorer 7 via the &#8220;Critical Updates&#8221; section of Windows Update&#8230;  Which then followed on with future (actual) critical updates to fix the holes in IE7&#8230;</p>
<p>And now, this&#8230;  I needed to sign up for  <strike>Windows Messenger</strike> <strike>MSN Messenger</strike> <strike>Hotmail Windows Live</strike> whatever they&#8217;re calling it now since we use the Microsoft messnger at work.  It gives you a hotmail address, so now I have a hotmail address.  Fabulous.  I never use the Hotmail address, but occaisionally my messenger pops up an alert telling me I have email in my inbox.  It&#8217;s always marketing crap from Microsoft, so I found my way into the preferences to turn off all communication from Microsoft, other than the required &#8220;Updates, changes to the service, or information vital to the service.</p>
<p>I&#8217;m okay with that&#8230;  &#8220;We have a security flaw&#8221;, &#8220;Your storage just got upgraded to X gigabytes&#8221;, &#8220;Here&#8217;s your lost password&#8221; &#8212; all relevant and useful information that I am totally willing to accept.</p>
<p>Then this arrived this morning&#8230;</p>
<p><a href="http://www.pattyandtodd.com/blog/wp-content/uploads/2007/10/microsoft.JPG" title="Hotmail email capture"><img src="http://www.pattyandtodd.com/blog/wp-content/uploads/2007/10/microsoft.thumbnail.JPG" alt="Hotmail email capture" /></a></p>
<p>Now, I&#8217;m sorry, but I seriously doubt that getting Spooky haloween packs, Getting Sweet Stuff Now, and getting marketing emails for Windows Live OneCare counts as &#8220;Updates, Changes, or Information vital to the service&#8221;.</p>
<p>I think it&#8217;s especially telling that they REMIND you that this email is being sent under those pretenses, and that if you don&#8217;t like it, don&#8217;t let the e-door hit you on the e-butt on the e-way out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pattyandtodd.com/blog/?feed=rss2&amp;p=51</wfw:commentRss>
		</item>
		<item>
		<title>Giving the Chinese Firewall the Finger</title>
		<link>http://www.pattyandtodd.com/blog/?p=50</link>
		<comments>http://www.pattyandtodd.com/blog/?p=50#comments</comments>
		<pubDate>Mon, 22 Oct 2007 18:55:48 +0000</pubDate>
		<dc:creator>Todd</dc:creator>
		
		<category><![CDATA[flex]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[scary]]></category>

		<category><![CDATA[apple]]></category>

		<category><![CDATA[web]]></category>

		<category><![CDATA[too cool for school]]></category>

		<category><![CDATA[geek]]></category>

		<guid isPermaLink="false">http://www.pattyandtodd.com/blog/?p=50</guid>
		<description><![CDATA[A coworker of mine forwarded this along to me today, and it was really inspirational.  I love it when technology, an idea that probably got laughed at, and a little effort can give a big middle finger to the forces of oppression&#8230;
Most people have heard that China maintains the Golden Shield, a state firewall [...]]]></description>
			<content:encoded><![CDATA[<p>A coworker of mine forwarded this along to me today, and it was really inspirational.  I love it when technology, an idea that probably got laughed at, and a little effort can give a big middle finger to the forces of oppression&#8230;</p>
<p>Most people have heard that China maintains the <a href="http://en.wikipedia.org/wiki/Golden_Shield" target="_blank">Golden Shield</a>, a state firewall run in order to censor unapproved websites from the Chinese people, and to survey who is trying to access them.</p>
<p><a href="http://www.picidae.net/" target="_blank">Picidae</a> is trying to change all that, with a very interesting, and relatively simple idea.</p>
<ul>
<li>A person in China surfs to a website run off of a pici-server &#8212; a computer running Mac OS X, which is outside of the Golden Shield.  The URL to the server could be found by talking to someone outside of China, by word of mouth, etc.
<ul>
<li>There&#8217;s a whole network of these, and the network can be grown by adding an inexpensive new computer anywhere in the world, so it would be nearly impossible and massively labor intensive to Shield them all</li>
<li>The individual servers do not know that any other servers exist, nor does the main organizer keep a list, so literally anyone, anywhere could be running one of these, and there&#8217;s no away to find it.</li>
</ul>
</li>
<li>That website has a simple text box and a button.</li>
<li>The person enters the website they want to see, that may be censored.</li>
<li>The page, locally on their computer, encrypts the URL so snooping eyes can&#8217;t see what they are requesting.</li>
<li>The pici-server decrypts the data, surfs to the requested website, and generates a single image of it &#8212; one huge JPG.  It also looks where links are, and maps those areas of the image to be clickable, linking back to the pici-server.  It&#8217;s called an ImageMap, and has been around forever&#8230;</li>
<li>The image and its maps are sent back to the person &#8212; nothing incriminating other than a JPG image that the firewall can&#8217;t read&#8230;</li>
<li>The person reads the information off of the image, clicks an area of the ImageMap, and the cycle continues</li>
</ul>
<p>Here&#8217;s <a href="http://www.picidae.net/" target="_blank">a link to the main site</a>.</p>
<p>Here&#8217;s <a href="http://www.picidae.net/how_picidae_works/" target="_blank">how it works</a>.</p>
<p>Here&#8217;s <a href="http://pici.picidae.net/" target="_blank">what the user in China will experience</a>. I tried it on this blog and it looked identical - you&#8217;d never know unless you looked at the code behind the page&#8230;</p>
<p>Obviously content shown in Flash (Flex) or any other dynamic content (Javascript, AJAX, video, etc) will not work on this type of network, but hey, a big fat hole in censorship in a great thing.  It also looks really easy to set up your website <a href="http://dev.picidae.net/dev/wiki/PiciProxyInstallation" target="_blank">to proxy to a server</a> or to <a href="http://dev.picidae.net/dev/wiki/InstallationInstructions" target="_blank">use your webspace as a server</a> if you&#8217;re so inclined &#8212; you can even use your Mac to run the server over your cable or DSL connection!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pattyandtodd.com/blog/?feed=rss2&amp;p=50</wfw:commentRss>
		</item>
		<item>
		<title>Cynergy needs developers&#8230; again&#8230;</title>
		<link>http://www.pattyandtodd.com/blog/?p=49</link>
		<comments>http://www.pattyandtodd.com/blog/?p=49#comments</comments>
		<pubDate>Thu, 11 Oct 2007 16:04:07 +0000</pubDate>
		<dc:creator>Todd</dc:creator>
		
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.pattyandtodd.com/blog/?p=49</guid>
		<description><![CDATA[Ahhhh&#8230; it feels like just yesterday that I was watching MXNA and saw a post from the President of Cynergy Systems, saying that they needed Flex developers.  I was impressed that Carson put his email and cell number on the post, and decided to drop him a line.
I hired on have really enjoyed working here [...]]]></description>
			<content:encoded><![CDATA[<p>Ahhhh&#8230; it feels like just yesterday that I was watching MXNA and saw a post from the President of <a href="http://www.cynergysystems.com" target="_blank">Cynergy Systems</a>, saying that they needed Flex developers.  I was impressed that Carson put his email and cell number on the post, and decided to drop him a line.</p>
<p>I hired on have really enjoyed working here (at Cynergy&#8230; as well as out of my home which is where I&#8217;m located).  Fortunately, the demand for our time hasn&#8217;t slowed down, and just the other day <a href="http://www.cynergysystems.com/blogs/page/carsonhager?entry=cynergy_needs_you" target="_blank">Carson posted yet another plea </a>to the community to send us your best and brightest.</p>
<p>Just thought I&#8217;d pass it along&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pattyandtodd.com/blog/?feed=rss2&amp;p=49</wfw:commentRss>
		</item>
		<item>
		<title>The table saw saga (Act 3)</title>
		<link>http://www.pattyandtodd.com/blog/?p=48</link>
		<comments>http://www.pattyandtodd.com/blog/?p=48#comments</comments>
		<pubDate>Thu, 11 Oct 2007 14:15:22 +0000</pubDate>
		<dc:creator>Todd</dc:creator>
		
		<category><![CDATA[woodworking]]></category>

		<category><![CDATA[grrrrrr]]></category>

		<guid isPermaLink="false">http://www.pattyandtodd.com/blog/?p=48</guid>
		<description><![CDATA[For those of you not following the story&#8230;  Here&#8217;s parts 1 and 2.
Delta just called me.  One of the repair shops that is an hour or so away is going to come to my house, haul it out of the basement, pick up the saw, take it to their shop to repair, and then bring [...]]]></description>
			<content:encoded><![CDATA[<p>For those of you not following the story&#8230;  Here&#8217;s <a href="http://www.pattyandtodd.com/blog/?p=45">parts 1 and 2</a>.</p>
<p>Delta just called me.  One of the repair shops that is an hour or so away is going to come to my house, haul it out of the basement, pick up the saw, take it to their shop to repair, and then bring it back to my house.  That&#8217;s a lot of lugging around a 300 pound hunk of cast iron!</p>
<p>It took me a while to get to the right person at Delta to handle this, but I have to say I&#8217;m pleased with the result (assuming it goes through as planned).  The people I&#8217;ve spoken with have been very nice and seemed eager to help me, and (honestly&#8230; not &#8220;you&#8217;re supposed to apologize when the customer complains&#8221;) apologetic that their product had problems.  Their official policy is that it&#8217;s my bag to get the saw to them &#8212; it&#8217;s my fault for living in the boonies so I could drive it to them or ship it to them on my dollar.  But since I called, told them what I have been dealing with, they had the power to change the policy to make me, the customer, happy.</p>
<p>I&#8217;ll keep you posted on Act 4: The Extraction (I think she&#8217;s too big to get out the door, so they may have to disassemble it&#8230;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pattyandtodd.com/blog/?feed=rss2&amp;p=48</wfw:commentRss>
		</item>
		<item>
		<title>Flex gotcha: using transparency in mask images</title>
		<link>http://www.pattyandtodd.com/blog/?p=47</link>
		<comments>http://www.pattyandtodd.com/blog/?p=47#comments</comments>
		<pubDate>Thu, 11 Oct 2007 12:59:51 +0000</pubDate>
		<dc:creator>Todd</dc:creator>
		
		<category><![CDATA[flash]]></category>

		<category><![CDATA[flex]]></category>

		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.pattyandtodd.com/blog/?p=47</guid>
		<description><![CDATA[I hope this post will help other people easily use PNG files, with transparency, as masks in Flex.
I was working on a project where I needed to draw a colored rectangle using the drawing API, then mask it into a non-rectangle using a user-selectable PNG file.  The transparency in the PNG would determine what [...]]]></description>
			<content:encoded><![CDATA[<p>I hope this post will help other people easily use PNG files, with transparency, as masks in Flex.</p>
<p>I was working on a project where I needed to draw a colored rectangle using the drawing API, then mask it into a non-rectangle using a user-selectable PNG file.  The transparency in the PNG would determine what parts of the colored rectangle shows through, and at what alpha.</p>
<p>Easy enough&#8230;</p>
<p>After an hour or two of screwing around with it, I finally figured out that you need to set the CacheAsBitmap setting for BOTH the mask image as well as the masked object for the transparency to be used in the masking.</p>
<p>So do this:</p>
<p>myRectangleComponent.cacheAsBitmap = true;<br />
myMaskImage.cacheAsBitmap = true;<br />
myRectangleComponent.mask = myMaskImage;</p>
<p>Here&#8217;s an <a href="http://www.pattyandtodd.com/files/flexexamples/maskcacheasbitmap/Blog_MaskingCache.html" target="_blank">example flex application (with source)</a> showing all combinations of cacheAsBitmap for the rectangle (Canvas) and the mask image.  Notice on all but the last one, the Canvas is masked by the extents of the PNG image and not the transparency.</p>
<p>So the takehome message is to set both the mask-er and the mask-ee to cache as a bitmap.  I&#8217;m not sure exactly why this is necessary, framework-wise, but it mentally makes sense - when the player internally represents it as a bitmap, it can examine the transparency of each pixel and use that information in the mask.  I&#8217;m less warm and fuzzy about why the masked object needs to be cached as well &#8212; I guess it&#8217;s for the same reason so the player can evaluate the pixel being shown through the mask, but hey, it works and that&#8217;s 99% of what I care about&#8230;</p>
<p>Oh - for my friends and family &#8212; this is what I do at work.  Sorry to be geeky in front of you, but expect more coming soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pattyandtodd.com/blog/?feed=rss2&amp;p=47</wfw:commentRss>
		</item>
	</channel>
</rss>
