<?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/"
	>

<channel>
	<title>almostFlan</title>
	<atom:link href="http://almostflan.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://almostflan.com</link>
	<description>Yes, I changed it again...</description>
	<pubDate>Fri, 12 Feb 2010 19:38:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ExternalInterface: Error calling method on NPObject!</title>
		<link>http://almostflan.com/2010/02/12/externalinterface-error-calling-method-on-npobject/</link>
		<comments>http://almostflan.com/2010/02/12/externalinterface-error-calling-method-on-npobject/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 19:38:48 +0000</pubDate>
		<dc:creator>Frank Lam</dc:creator>
		
		<category><![CDATA[Adventures in Flex]]></category>

		<category><![CDATA[Error calling method on NPObject!]]></category>

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

		<guid isPermaLink="false">http://almostflan.com/?p=197</guid>
		<description><![CDATA[Lemme start off by saying UGH.
Ok, so I&#8217;ve been trying to get swfobject to work with ExternalInterface.  The swf and the html are located on the same domain (locally - not running on a server).  Upon calling the js function that should have called my as function, it kept giving me the error [...]]]></description>
			<content:encoded><![CDATA[<p>Lemme start off by saying UGH.</p>
<p>Ok, so I&#8217;ve been trying to get <a href="http://code.google.com/p/swfobject/">swfobject</a> to work with <a href="http://livedocs.adobe.com/flex/3/langref/flash/external/ExternalInterface.html">ExternalInterface</a>.  The swf and the html are located on the same domain (locally - not running on a server).  Upon calling the js function that should have called my as function, it kept giving me the error <strong>&#8220;Error calling method on NPObject!&#8221;</strong>.  </p>
<p>Anyway, there is a fair amount of documentation on <a href="http://www.google.com/search?q=Error+calling+method+on+NPObject!">google</a> as to what problems you might be having if you get this error (summarized by <a href="http://danielmclaren.net/2008/10/12/npobject-error-using-firefox-flash-and-javascript">this guy</a> reasonably well) but my case didn&#8217;t fit any of those criteria.  </p>
<p>My code looked like this (latching onto the creationComplete of the Application):</p>
<div class="codecolorer-container actionscript " style="overflow:auto;white-space:nowrap;width:435px"><div class="actionscript codecolorer" style="font-family:Monaco,Lucida Console,monospace">creationComplete=<span class="st0">&quot;ExternalInterface.addCallback('alert',Alert.show)&quot;</span></div></div>
<p>Apparently this is bad.  It doesn&#8217;t like that I&#8217;m passing &#8220;Alert.show&#8221;.</p>
<p>It works if I do this:</p>
<div class="codecolorer-container actionscript " style="overflow:auto;white-space:nowrap;width:435px"><div class="actionscript codecolorer" style="font-family:Monaco,Lucida Console,monospace">creationComplete=<span class="st0">&quot;ExternalInterface.addCallback('alert',stupidstupid)&quot;</span></div></div>
<p>where I define &#8220;stupidstupid&#8221; in the script portion of the Application.</p>
<p>Anyway, the quick summary is, don&#8217;t use Alert.show (other similar calls probably don&#8217;t work as well&#8230;for reasons unclear to me at the moment).</p>
<p>In my context, there were no cross domain considerations since it was all local.</p>
<p>*shakes fist*</p>
]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2010/02/12/externalinterface-error-calling-method-on-npobject/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Powered by TAAZ</title>
		<link>http://almostflan.com/2009/08/18/powered-by-taaz/</link>
		<comments>http://almostflan.com/2009/08/18/powered-by-taaz/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 00:29:02 +0000</pubDate>
		<dc:creator>Frank Lam</dc:creator>
		
		<category><![CDATA[Work]]></category>

		<category><![CDATA[estee lauder]]></category>

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

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

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

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

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

		<category><![CDATA[virtual makeovers]]></category>

		<guid isPermaLink="false">http://almostflan.com/?p=188</guid>
		<description><![CDATA[Our Estee Lauder project just launched today.

http://www.esteelauder.com/letsplaymakeover/widget
Some other sites powered by TAAZ.
People en Español
InStyle Magazine
GALA Magazine
Sephora&#8217;s Christmas app  (out of season now)
And of course,
TAAZ
]]></description>
			<content:encoded><![CDATA[<p>Our Estee Lauder project just launched today.</p>
<p><a href="http://www.esteelauder.com/LetsPlayMakeover/Widget/"><img src="http://almostflan.com/wp-content/uploads/2009/08/estee_thumb-300x240.png" alt="estee_thumb" title="estee_thumb" width="300" height="240" class="alignnone size-medium wp-image-189" /></a></p>
<p><a href="http://www.esteelauder.com/letsplaymakeover/widget">http://www.esteelauder.com/letsplaymakeover/widget</a></p>
<p>Some other sites powered by TAAZ.<br />
<a href="http://www.peopleenespanol.com/pespanol/cambiatulook">People en Español</a><br />
<a href="http://www.instyle.com/instyle/makeover/">InStyle Magazine</a><br />
<a href="http://www.gala.de/beauty_fashion/beauty/50552/Beautystyler-Make-Up.html">GALA Magazine</a><br />
<a href="http://www.mistletoemakeover.com/">Sephora&#8217;s Christmas app</a>  (out of season now)</p>
<p>And of course,</p>
<p><a href="http://taaz.com">TAAZ</a></p>
]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2009/08/18/powered-by-taaz/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Seattle</title>
		<link>http://almostflan.com/2009/08/12/seattle/</link>
		<comments>http://almostflan.com/2009/08/12/seattle/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 02:57:35 +0000</pubDate>
		<dc:creator>Frank Lam</dc:creator>
		
		<category><![CDATA[Life]]></category>

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

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

		<guid isPermaLink="false">http://almostflan.com/?p=186</guid>
		<description><![CDATA[I&#8217;m moving to Seattle.  
Anyone need (or know anyone that needs) a code monkey up there?
I will code for money (WOW gold preferably, but USD will suffice) or food (and by food I mean beer).
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m moving to Seattle.  </p>
<p>Anyone need (or know anyone that needs) a code monkey up there?</p>
<p>I will code for money (WOW gold preferably, but USD will suffice) or food (and by food I mean beer).</p>
]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2009/08/12/seattle/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Internet is Stupid</title>
		<link>http://almostflan.com/2009/05/29/the-internet-is-stupid/</link>
		<comments>http://almostflan.com/2009/05/29/the-internet-is-stupid/#comments</comments>
		<pubDate>Sat, 30 May 2009 00:16:09 +0000</pubDate>
		<dc:creator>Frank Lam</dc:creator>
		
		<category><![CDATA[Basketball]]></category>

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

		<guid isPermaLink="false">http://almostflan.com/?p=183</guid>
		<description><![CDATA[I think I got stupider reading the posts on NBA.com&#8217;s &#8220;Fan Voice&#8221;.
Goddamn people are stupid.
I will stop reading now.
]]></description>
			<content:encoded><![CDATA[<p>I think I got stupider reading the posts on <a href="http://my.nba.com/index.jspa">NBA.com&#8217;s &#8220;Fan Voice&#8221;</a>.</p>
<p>Goddamn people are stupid.</p>
<p>I will stop reading now.</p>
]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2009/05/29/the-internet-is-stupid/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flex CSS Inheritance</title>
		<link>http://almostflan.com/2009/05/18/flex-css-inheritance/</link>
		<comments>http://almostflan.com/2009/05/18/flex-css-inheritance/#comments</comments>
		<pubDate>Mon, 18 May 2009 22:49:27 +0000</pubDate>
		<dc:creator>Frank Lam</dc:creator>
		
		<category><![CDATA[Adventures in Flex]]></category>

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

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

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

		<guid isPermaLink="false">http://almostflan.com/?p=166</guid>
		<description><![CDATA[CSS has been implemented in Flex, but it has some major shortcomings.  One of the main ones is that it does not allow a single component to use multiple styles.  Another is that a CSS style cannot inherit (or cascade&#8230;imagine that!) from another style.  I wrote some code that might help fix [...]]]></description>
			<content:encoded><![CDATA[<p>CSS has been implemented in Flex, but it has some major shortcomings.  One of the main ones is that it does not allow a single component to use multiple styles.  Another is that a CSS style cannot inherit (or cascade&#8230;imagine that!) from another style.  I wrote some code that might help fix that a bit.<br />
<span id="more-166"></span><br />
The stylesheet to be referenced for this post:</p>
<div class="codecolorer-container actionscript " style="overflow:auto;white-space:nowrap;width:435px"><div class="actionscript codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sy0">&lt;</span>mx:Style<span class="sy0">&gt;</span><br />
&nbsp; &nbsp; .<span class="me1">boldFont</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; fontWeight: <span class="kw3">bold</span>;<br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; .<span class="me1">underlineFont</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; textDecoration: <span class="kw3">underline</span>;<br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; .<span class="me1">blueFont</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">color</span>: <span class="co2">#0000ff;</span><br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; .<span class="me1">superSize</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; fontSize: <span class="nu0">20</span>;<br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; .<span class="me1">superBold</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; inherits:<span class="st0">&quot;boldFont superSize&quot;</span>;<br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="sy0">&lt;/</span>mx:Style<span class="sy0">&gt;</span></div></div>
<p>Note that the style &#8220;superBold&#8221; is meaningless in the context of Flex.  The classes included in this post interpret the &#8220;inherits&#8221; field.</p>
<p>The normal way:</p>
<div class="codecolorer-container actionscript " style="overflow:auto;white-space:nowrap;width:435px"><div class="actionscript codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sy0">&lt;</span>mx:Label <span class="kw3">text</span>=<span class="st0">&quot;hello :(&quot;</span> styleName=<span class="st0">&quot;blueFont&quot;</span><span class="sy0">/&gt;</span></div></div>
<p>Note the label may only take on one style at a time.</p>
<p>I&#8217;ve included two ways this can be circumvented.  The difference being the syntax.</p>
<div class="codecolorer-container actionscript " style="overflow:auto;white-space:nowrap;width:435px"><div class="actionscript codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sy0">&lt;</span>mx:Label <span class="kw3">text</span>=<span class="st0">&quot;hello!&quot;</span> styleName=<span class="st0">&quot;{bss('superBold underlineFont blueFont')}&quot;</span><span class="sy0">/&gt;</span></div></div>
<div class="codecolorer-container actionscript " style="overflow:auto;white-space:nowrap;width:435px"><div class="actionscript codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sy0">&lt;</span>mx:Label <span class="kw3">text</span>=<span class="st0">&quot;hello again!&quot;</span> styleName=<span class="st0">&quot;{SBSS.styles.superBold}&quot;</span><span class="sy0">/&gt;</span></div></div>
<p>The results in context will look something like this.</p>
<div class="codecolorer-container actionscript " style="overflow:auto;white-space:nowrap;width:435px;height:300px"><div class="actionscript codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sy0">&lt;</span>?<span class="kw3">xml</span> <span class="kw3">version</span>=<span class="st0">&quot;1.0&quot;</span> encoding=<span class="st0">&quot;utf-8&quot;</span>?<span class="sy0">&gt;</span><br />
<span class="sy0">&lt;</span>mx:Application xmlns:mx=<span class="st0">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span class="st0">&quot;vertical&quot;</span> viewSourceURL=<span class="st0">&quot;srcview/index.html&quot;</span><span class="sy0">&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;</span>mx:Style<span class="sy0">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; .<span class="me1">boldFont</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fontWeight: <span class="kw3">bold</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; .<span class="me1">underlineFont</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textDecoration: <span class="kw3">underline</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; .<span class="me1">blueFont</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">color</span>: <span class="co2">#0000ff;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; .<span class="me1">superSize</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fontSize: <span class="nu0">20</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; .<span class="me1">superBold</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inherits:<span class="st0">&quot;boldFont superSize&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;/</span>mx:Style<span class="sy0">&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;</span>mx:HBox verticalAlign=<span class="st0">&quot;middle&quot;</span><span class="sy0">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">&lt;</span>mx:Label <span class="kw3">text</span>=<span class="st0">&quot;styleName = blueFont&quot;</span><span class="sy0">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">&lt;</span>mx:Label <span class="kw3">text</span>=<span class="st0">&quot;hello :(&quot;</span> styleName=<span class="st0">&quot;blueFont&quot;</span><span class="sy0">/&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;/</span>mx:HBox<span class="sy0">&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;</span>mx:HBox verticalAlign=<span class="st0">&quot;middle&quot;</span><span class="sy0">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">&lt;</span>mx:Label <span class="kw3">text</span>=<span class="st0">&quot;styleName = superBold underlineFont blueFont&quot;</span><span class="sy0">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">&lt;</span>mx:Label <span class="kw3">text</span>=<span class="st0">&quot;hello!&quot;</span> styleName=<span class="st0">&quot;{bss('superBold underlineFont blueFont')}&quot;</span><span class="sy0">/&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;/</span>mx:HBox<span class="sy0">&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;</span>mx:HBox verticalAlign=<span class="st0">&quot;middle&quot;</span><span class="sy0">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">&lt;</span>mx:Label <span class="kw3">text</span>=<span class="st0">&quot;styleName = superBold&quot;</span><span class="sy0">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">&lt;</span>mx:Label <span class="kw3">text</span>=<span class="st0">&quot;hello again!&quot;</span> styleName=<span class="st0">&quot;{SBSS.styles.superBold}&quot;</span><span class="sy0">/&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;/</span>mx:HBox<span class="sy0">&gt;</span><br />
<span class="sy0">&lt;/</span>mx:Application<span class="sy0">&gt;</span></div></div>
<p>which produces this swf.</p>

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_0" width="400" height="200">
      <param name="movie" value="http://flex.almostflan.com/css_inheritance/cssInheritance.swf" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://flex.almostflan.com/css_inheritance/cssInheritance.swf" width="400" height="200">
      <!--<![endif]-->
        <p>The Flash plugin is required to view this object.</p>
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<p>Note &#8220;View Source&#8221; from the context menu of that swf will point you to the wrong place.  Apparently it&#8217;s a Flex <a href="http://bugs.adobe.com/jira/browse/FB-19253" target="_blank">bug</a> that they don&#8217;t plan to fix.</p>
<p>You can view source <a href="http://flex.almostflan.com/css_inheritance/srcview/index.html" target="_blank">here</a> or download the example project <a href="http://flex.almostflan.com/css_inheritance/srcview/cssInheritance.zip">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2009/05/18/flex-css-inheritance/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ballpoint Pens and Juan Francisco Casas</title>
		<link>http://almostflan.com/2009/05/11/ballpoint-pens-and-juan-francisco-casas/</link>
		<comments>http://almostflan.com/2009/05/11/ballpoint-pens-and-juan-francisco-casas/#comments</comments>
		<pubDate>Mon, 11 May 2009 10:16:34 +0000</pubDate>
		<dc:creator>Frank Lam</dc:creator>
		
		<category><![CDATA[Art]]></category>

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

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

		<category><![CDATA[juan francisco casas]]></category>

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

		<guid isPermaLink="false">http://almostflan.com/?p=155</guid>
		<description><![CDATA[I just ran into this guy, he has some pretty cool stuff.  His work is mostly just photopainting with ballpoint pens, but its pretty damn cool.  I really like seeing people with good photopainting skills, especially in such an unconventional application.



Image source: haha
His website: http://www.juanfranciscocasas.com/
Some press coverage: dailymail
]]></description>
			<content:encoded><![CDATA[<p>I just ran into this guy, he has some pretty cool stuff.  His work is mostly just photopainting with ballpoint pens, but its pretty damn cool.  I really like seeing people with good photopainting skills, especially in such an unconventional application.</p>
<p><a href="http://almostflan.com/wp-content/uploads/2009/05/jfc1.jpg"><img src="http://almostflan.com/wp-content/uploads/2009/05/jfc1-300x200.jpg" alt="jfc1" title="jfc1" width="300" height="200" class="alignnone size-medium wp-image-157" /></a></p>
<p><a href="http://almostflan.com/wp-content/uploads/2009/05/jfc2.jpg"><img src="http://almostflan.com/wp-content/uploads/2009/05/jfc2-224x300.jpg" alt="jfc2" title="jfc2" width="224" height="300" class="alignnone size-medium wp-image-158" /></a></p>
<p><a href="http://almostflan.com/wp-content/uploads/2009/05/jfc3.jpg"><img src="http://almostflan.com/wp-content/uploads/2009/05/jfc3-300x174.jpg" alt="jfc3" title="jfc3" width="300" height="174" class="alignnone size-medium wp-image-159" /></a></p>
<p>Image source: <a href="http://haha.nu/beautiful/juan-francisco-casass-realism/">haha</a><br />
His website: <a href="http://www.juanfranciscocasas.com/">http://www.juanfranciscocasas.com/</a><br />
Some press coverage: <a href="http://www.dailymail.co.uk/news/article-511688/Simply-birolliant--incredible-10ft-photographs-drawn-ballpoint-pen.html">dailymail</a></p>
]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2009/05/11/ballpoint-pens-and-juan-francisco-casas/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New WP version, broken view source</title>
		<link>http://almostflan.com/2009/03/20/new-wp-version-broken-view-source/</link>
		<comments>http://almostflan.com/2009/03/20/new-wp-version-broken-view-source/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 21:55:28 +0000</pubDate>
		<dc:creator>Frank Lam</dc:creator>
		
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://almostflan.com/?p=152</guid>
		<description><![CDATA[Just upgraded to version 2.7.1 of WordPress.  Apparently my previous plugin update broke some old posts.  
Right-clicking one of my swfs and selected &#8216;View Source&#8217; won&#8217;t work for the time being.  I think I&#8217;ll try to make some changes on how I do that stuff in the near future.
At the moment, &#8220;View [...]]]></description>
			<content:encoded><![CDATA[<p>Just upgraded to version 2.7.1 of WordPress.  Apparently my previous plugin update broke some old posts.  </p>
<p>Right-clicking one of my swfs and selected &#8216;View Source&#8217; won&#8217;t work for the time being.  I think I&#8217;ll try to make some changes on how I do that stuff in the near future.</p>
<p>At the moment, &#8220;View source&#8221; links to </p>
<p>http://almostflan.com/2008/09/05/using-a-custom-class-as-an-mxml-base-to-completely-style-a-titlewindow/flex/sandbox/srcview/index.html</p>
<p>and it should link to</p>
<p>http://almostflan.com/flex/sandbox/srcview/index.html</p>
<p>I&#8217;ll fix this later, but first my taxes&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2009/03/20/new-wp-version-broken-view-source/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Damnit</title>
		<link>http://almostflan.com/2009/03/20/damnit/</link>
		<comments>http://almostflan.com/2009/03/20/damnit/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 21:40:06 +0000</pubDate>
		<dc:creator>Frank Lam</dc:creator>
		
		<category><![CDATA[Stuff]]></category>

		<guid isPermaLink="false">http://almostflan.com/?p=150</guid>
		<description><![CDATA[I recently updated some plugins and it appears to have broken some of my stuff.  Working on it.
Thanks to DDDan for pointing this out.
]]></description>
			<content:encoded><![CDATA[<p>I recently updated some plugins and it appears to have broken some of my stuff.  Working on it.</p>
<p>Thanks to DDDan for pointing this out.</p>
]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2009/03/20/damnit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Clipping a SWF loaded in a SWF</title>
		<link>http://almostflan.com/2009/03/05/clipping-a-swf-loaded-in-a-swf/</link>
		<comments>http://almostflan.com/2009/03/05/clipping-a-swf-loaded-in-a-swf/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 01:36:20 +0000</pubDate>
		<dc:creator>Frank Lam</dc:creator>
		
		<category><![CDATA[Adventures in Flex]]></category>

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

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

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

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

		<guid isPermaLink="false">http://almostflan.com/?p=148</guid>
		<description><![CDATA[Recently I&#8217;ve run into the problem of controlling the size of an embedded swf movie in a Flex application.  The size of the stage in Flash didn&#8217;t match the size of the SWFLoader-loaded component in Flex for some reason.  I tried putting a Canvas around it and using the clipContent field, but that [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve run into the problem of controlling the size of an embedded swf movie in a Flex application.  The size of the stage in Flash didn&#8217;t match the size of the SWFLoader-loaded component in Flex for some reason.  I tried putting a Canvas around it and using the clipContent field, but that didn&#8217;t.  After a few hours of pain, though, I did get a somewhat reasonable solution.</p>
<p>This post should also serve as a very light example of applying a mask.</p>
<div class="codecolorer-container actionscript " style="overflow:auto;white-space:nowrap;width:435px"><div class="actionscript codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sy0">&lt;</span>?<span class="kw3">xml</span> <span class="kw3">version</span>=<span class="st0">&quot;1.0&quot;</span> encoding=<span class="st0">&quot;utf-8&quot;</span>?<span class="sy0">&gt;</span><br />
<span class="sy0">&lt;</span>mx:Application xmlns:mx=<span class="st0">&quot;http://www.adobe.com/2006/mxml&quot;</span><span class="sy0">&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;</span>mx:Canvas mask=<span class="st0">&quot;{myMask}&quot;</span><span class="sy0">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">&lt;</span>mx:SWFLoader source=<span class="st0">&quot;path/to/mySwf.swf&quot;</span><span class="sy0">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">&lt;</span>mx:UIComponent id=<span class="st0">&quot;myMask&quot;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; creationComplete=<span class="st0">&quot;myMask.graphics.beginFill(0xff0000);myMask.graphics.drawRect(0,0,360,541);myMask.graphics.endFill()&quot;</span><span class="sy0">/&gt;</span><br />
&nbsp; &nbsp; <span class="sy0">&lt;/</span>mx:Canvas<span class="sy0">&gt;</span><br />
<span class="sy0">&lt;/</span>mx:Application<span class="sy0">&gt;</span></div></div>
<p>Here, the size and location of the rectangle you draw in the myMask determines the visible area of the swf.</p>
<p>I haven&#8217;t yet cooked up an actual example showing what this actually does - maybe I&#8217;ll do so later&#8230;</p>
<p>On a different note, if anyone knows of a quick way (perhaps a wordpress plugin) to post an example coded in Flex Builder, let me know - it would be much appreciated!  Right now, I&#8217;m bundling a release build and manually pushing it up each time with no regard to specific posts, then hard-linking&#8230;</p>
<p>Maybe I&#8217;ll write something to do it&#8230;knowing me it&#8217;ll never get done&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2009/03/05/clipping-a-swf-loaded-in-a-swf/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Oh Beans!</title>
		<link>http://almostflan.com/2008/12/20/oh-beans/</link>
		<comments>http://almostflan.com/2008/12/20/oh-beans/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 22:40:52 +0000</pubDate>
		<dc:creator>Frank Lam</dc:creator>
		
		<category><![CDATA[Stuff]]></category>

		<guid isPermaLink="false">http://almostflan.com/?p=145</guid>
		<description><![CDATA[
Telling lies is a slippery business!
]]></description>
			<content:encoded><![CDATA[<p><a href="http://almostflan.com/wp-content/uploads/2008/12/waxbean.png"><img src="http://almostflan.com/wp-content/uploads/2008/12/waxbean.png" alt="" title="waxbean" width="200" height="300" class="alignnone size-full wp-image-146" /></a></p>
<p>Telling lies is a slippery business!</p>
]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2008/12/20/oh-beans/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
