<?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>The Danosphere. &#187; Code Snippets</title>
	<atom:link href="http://www.thedanosphere.com/tags/code-snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thedanosphere.com</link>
	<description>class TheDanosphere extends Dan implements Blog</description>
	<lastBuildDate>Thu, 03 Nov 2011 18:50:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flex SandboxMouseEvent &#8211; Not All It&#8217;s Cracked Up To Be.</title>
		<link>http://www.thedanosphere.com/2011/02/23/flex-sandboxmouseevent-not-all-its-cracked-up-to-be/</link>
		<comments>http://www.thedanosphere.com/2011/02/23/flex-sandboxmouseevent-not-all-its-cracked-up-to-be/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 17:34:14 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[flex4]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.thedanosphere.com/?p=367</guid>
		<description><![CDATA[Recently while piddling around in the day-to-day tasks I handle here at DecisionLens I was deep within the List class when I came across something I had never seen before &#8211; a SandboxMouseEvent [gasp]. Upon seeing all the wonderous events I could listen to I thought- this is amazing! I can listen for all kinds [...]]]></description>
			<content:encoded><![CDATA[<p>Recently while piddling around in the day-to-day tasks I handle here at <a href="http://decisionlens.com">DecisionLens</a> I was deep within the <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/List.html">List class</a> when I came across something I had never seen before &#8211; a <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/events/SandboxMouseEvent.html">SandboxMouseEvent </a>[gasp]. Upon seeing all the wonderous events I could listen to I thought- this is amazing! I can listen for all kinds of stuff happening outside of my sandboxed flash window! So I whipped together a little demo to see what this magical new event could do&#8230; [<a href="http://www.thedanosphere.com/labs/sandboxmouseevent/SandboxMouseEvents.html">Click Here for Source</a>]:</p>
<p style="text-align: center;border:1px solid #cccccc"><script type="text/javascript" src="http://www.thedanosphere.com/wp-content/plugins/pb-embedflash/js/swfobject.js"></script><span class="embedflash" id="swfid44a8058223817f6d53596539ad2d895e"><small>(Please open the article to see the flash file or player.)</small></span><script type="text/javascript">
				var flashvars = {}; var params = {}; var attributes = {};params.allowfullscreen = "true"; params.allowscriptaccess = "always";
				swfobject.embedSWF("http://www.thedanosphere.com/labs/sandboxmouseevent/SandboxMouseEvents.swf","swfid44a8058223817f6d53596539ad2d895e","550","200","9.0.0","http://www.thedanosphere.com/wp-content/plugins/pb-embedflash/swf/expressInstall.swf",flashvars,params,attributes);
		</script></p>
<p>As you can see, not performing as advertised! It seems the only even it captures is <em>MouseUpSomwhere</em>, and that fires when you roll out of the window? Very weird. I thought maybe it was an issue with being trapped in a browser window, so I threw the same code into an AIR application, and same thing- only event fired was <em>MouseUpSomewhere</em>. I don&#8217;t know if this is a bug (seems to be since mouseUp isn&#8217;t really occuring, its more of a <em>RollOverSomewhere</em>), or I&#8217;m just misunderstanding the functionality of this event, but in either case, it was certainly a letdown to see I was still pretty much trapped within my tiny SWF prison.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedanosphere.com/2011/02/23/flex-sandboxmouseevent-not-all-its-cracked-up-to-be/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using Flex HDividedBox and VDividedBox Cursor Assets Independently</title>
		<link>http://www.thedanosphere.com/2010/12/03/using-flex-hdividedbox-and-vdividedbox-cursor-assets-independently/</link>
		<comments>http://www.thedanosphere.com/2010/12/03/using-flex-hdividedbox-and-vdividedbox-cursor-assets-independently/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 07:11:41 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[adobe flex]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[cursor]]></category>
		<category><![CDATA[flex4]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[protip]]></category>

		<guid isPermaLink="false">http://www.thedanosphere.com/?p=365</guid>
		<description><![CDATA[In a recent project of mine I had the need for a vertical resize cursor. Flex has a very nice vertical resize cursor already packaged along with the VDividedBox. There is a similar horizontal resize cursor for the HDividedBox. After some googling and a little sample project, I found out how to access the cursor [...]]]></description>
			<content:encoded><![CDATA[<p>In a recent project of mine I had the need for a vertical resize cursor. Flex has a very nice vertical resize cursor already packaged along with the VDividedBox. There is a similar horizontal resize cursor for the HDividedBox. After some googling and a little sample project, I found out how to access the cursor assets of these components for independent use without an H or V DividedBox. Simply use the embed from below along with a CursorManager.setCursor() call and you&#8217;ve got pretty native horizontal and vertical resize cursors!</p>
<p><script type="text/javascript" src="http://embed.snipt.org/ooggh"></script><noscript>if(embedStylesPrinted != true) {document.write('<link type="text/css" rel="stylesheet" href="http://snipt.org/snipt/extend/embed/snipt_js.css">');}var embedStylesPrinted = true;v1var content = '<div id="snipt-embed-1042437527" class="snipt-embed" ><div class="snipt-embed-meta-container"><div class="snipt-embed-title">asdf</div><div class="snipt-embed-language">asp</div></div><div class="snipt-embed-code" style="background-color:#fafafa"><pre class="asp" style="font-size:12px;color: #;">fds</pre></div><div class="snipt-embed-byline" style="display:block"><div class="snipt-embed-logo" style="display:inline-block"><a href="http://snipt.org/zlku9" title="Powered by Snipt.org - Easily share source code" style="text-decoration:none"><img src="http://snipt.org/snipt/images/embed_logo.png" border="0"></a></div><!--<div class="snipt-embed-poweredby" style="display:inline-block"><a href="http://snipt.org/zlku9" title="Easily share source code">powered by snipt.org</a></div>--></div></div><style type="text/css">  #snipt-embed-1042437527 pre {    background-color: #fafafa !important;    background-image: none !important;  }</style>';document.write(content);<br>[code snippet: <a href="http://snipt.org/ooggh">http://snipt.org/ooggh</a>]</noscript></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedanosphere.com/2010/12/03/using-flex-hdividedbox-and-vdividedbox-cursor-assets-independently/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#8217;m Very Much Still Alive</title>
		<link>http://www.thedanosphere.com/2009/06/17/im-very-much-still-alive/</link>
		<comments>http://www.thedanosphere.com/2009/06/17/im-very-much-still-alive/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 16:13:58 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Status]]></category>

		<guid isPermaLink="false">http://www.thedanosphere.com/?p=293</guid>
		<description><![CDATA[:emerges from abyss:
Hey everyone! I&#8217;ve been on leave but wanted to post a lil update here. Code samples should be up this weekend, along with a more complete version of the &#8220;AS3 Node Network&#8221; complete with XML saving.
I also have a pretty awesome BitmapData writeup coming that really stretches the limits of Flash and Bitmaps, [...]]]></description>
			<content:encoded><![CDATA[<p>:emerges from abyss:</p>
<p>Hey everyone! I&#8217;ve been on leave but wanted to post a lil update here.<strong> Code samples should be up this weekend</strong>, along with a more complete version of the &#8220;AS3 Node Network&#8221; complete with XML saving.</p>
<p>I also have a pretty awesome BitmapData writeup coming that really stretches the limits of Flash and Bitmaps, including an optimized Async JPEG Encoder- which allows you to <em>encode JPEGs 4x faster</em> than the default adobe lib, and also allows you to monitor progress of the process and merge multiple BitmapData objects seamlessly.</p>
<p>So what I&#8217;m trying to say is <em><strong>good stuff is coming, so stick around</strong></em><em><strong>!</strong></em> Hoping to post this stuff over a series of posts, the first of which should be up tomorrow <img src='http://www.thedanosphere.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  til then&#8230; <img src='http://www.thedanosphere.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedanosphere.com/2009/06/17/im-very-much-still-alive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snipt.org Releases API, AIR App, and So Much More</title>
		<link>http://www.thedanosphere.com/2009/03/18/sniptorg-releases-api-air-app-and-so-much-more/</link>
		<comments>http://www.thedanosphere.com/2009/03/18/sniptorg-releases-api-air-app-and-so-much-more/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 21:31:19 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[snipt]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[web2.0]]></category>

		<guid isPermaLink="false">http://www.thedanosphere.com/?p=247</guid>
		<description><![CDATA[
I&#8217;m pleased to announce Snipt.org the twitter-based code sharing service is growing into much more. Today the Snipt.org API was released along with a number of other features including an AIR App, AS3 Library,  and Wordpress Plugin (which I&#8217;m using on this site!). Hopefully we will see some cool implmentation of the API in the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://extend.snipt.org"><img class="alignnone" src="http://snipt.org/wp-content/themes/motion/images/snipt_logo.jpg" alt="" width="210" height="75" /></a></p>
<p>I&#8217;m pleased to announce Snipt.org the twitter-based code sharing service is growing into much more. Today the Snipt.org API was released along with a number of other features including an AIR App, AS3 Library,  and Wordpress Plugin (which I&#8217;m using on this site!). Hopefully we will see some cool implmentation of the API in the near future (Textmate hint hint). To check out all the goodies head to <a href="http://extend.snipt.org">Extending Snipt.org</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedanosphere.com/2009/03/18/sniptorg-releases-api-air-app-and-so-much-more/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

