<?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>Ripeworks</title>
	<atom:link href="http://ripeworks.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ripeworks.com</link>
	<description>fresh web development done right.</description>
	<lastBuildDate>Tue, 18 Aug 2009 21:17:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using Flickr with AS3</title>
		<link>http://ripeworks.com/2009/08/18/using-flickr-with-as3/</link>
		<comments>http://ripeworks.com/2009/08/18/using-flickr-with-as3/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 17:34:38 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flickr]]></category>

		<guid isPermaLink="false">http://ripeworks.com/?p=66</guid>
		<description><![CDATA[Lately I&#8217;ve been doing a lot of development in Flash that also involves pulling in and manipulating Flickr photos. The as3flickrlib (http://code.google.com/p/as3flickrlib/) is pretty handy at first glance, but just a fore-warning, there are many things wrong with this library. First off, there is some functionality the Flickr API offers that this library just does [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I&#8217;ve been doing a lot of development in Flash that also involves pulling in and manipulating Flickr photos. The as3flickrlib (<a href="http://code.google.com/p/as3flickrlib/" target="_blank">http://code.google.com/p/as3flickrlib/</a>) is pretty handy at first glance, but just a fore-warning, there are many things wrong with this library. First off, there is some functionality the Flickr API offers that this library just does NOT offer, for instance, methods to parse information about Collections, or the &#8220;farm&#8221; attribute of a photo so we know exactly where to grab a thumbnail so Flickr doesn&#8217;t have to do any extra work. Also, I&#8217;m not too fond of how the structure and usage work, but that&#8217;s just personal preference I suppose.</p>
<p>So, getting over the hurdle of inconsistencies in the library, and some hard work, I finally have the finished product. Everything works great! But, when I go to test it online&#8230;.. BROKEN! This stumped me for a few hours, because looking at the headers coming in and out of the browser was showing that Flash was getting successful API calls, grabbing photos, just not displaying them.</p>
<p>Solution? Even though Flickr will serve up it&#8217;s crossdomain.xml, your flash file still doesn&#8217;t have access to the Flickr farm servers to pull photos. Whoops! Adding this small snippet below will fix all your problems.</p>
<p>Hey as3flickrlib, maybe you could update your project and throw in these loadPolicyFile calls in there too?</p>
<div class="codecolorer-container actionscript3 twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><a href="http://www.google.com/search?q=security%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:security.html"><span style="color: #004993;">Security</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">loadPolicyFile</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;http://api.flickr.com/crossdomain.xml&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<a href="http://www.google.com/search?q=security%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:security.html"><span style="color: #004993;">Security</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">loadPolicyFile</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;http://farm1.static.flickr.com/crossdomain.xml&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<a href="http://www.google.com/search?q=security%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:security.html"><span style="color: #004993;">Security</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">loadPolicyFile</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;http://farm2.static.flickr.com/crossdomain.xml&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<a href="http://www.google.com/search?q=security%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:security.html"><span style="color: #004993;">Security</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">loadPolicyFile</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;http://farm3.static.flickr.com/crossdomain.xml&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<a href="http://www.google.com/search?q=security%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:security.html"><span style="color: #004993;">Security</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">loadPolicyFile</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;http://farm4.static.flickr.com/crossdomain.xml&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://ripeworks.com/2009/08/18/using-flickr-with-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FIVe3D custom Text Input component</title>
		<link>http://ripeworks.com/2009/08/14/five3d-custom-text-input-component/</link>
		<comments>http://ripeworks.com/2009/08/14/five3d-custom-text-input-component/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 17:19:21 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[five3d]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[papervision]]></category>

		<guid isPermaLink="false">http://ripeworks.com/?p=58</guid>
		<description><![CDATA[Lately I have been doing nothing but creating 3D applications with Flash. I started with Papervision3D, and my current library of choice is FIVe3D (). Although it doesn&#8217;t have a camera object to pan and rotate your scene, it is a very light-weight and very fast library.
For one of my projects, it called for a [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I have been doing nothing but creating 3D applications with Flash. I started with Papervision3D, and my current library of choice is FIVe3D (). Although it doesn&#8217;t have a camera object to pan and rotate your scene, it is a very light-weight and very fast library.</p>
<p>For one of my projects, it called for a textInput component. My first attempt was to add a textInput component to a Sprite3D object. Even thought the component displays properly, all of the animations that I had tied to that Sprite3D object were completely broken. After some quick Googling, I realized that I was on my own for this one, and needed to write my own component to handle this.</p>
<p>Enter DynamicText3DInput. I built a rather basic class which now makes it possible to input text in FIVe3D! Source and usage below:</p>
<p><strong>Usage:</strong></p>
<div class="codecolorer-container actionscript3 twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0033ff; font-weight: bold;">import</span> five3D<span style="color: #000066; font-weight: bold;">.</span>component<span style="color: #000066; font-weight: bold;">.</span>DynamicText3DInput<span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #0033ff; font-weight: bold;">import</span> five3D<span style="color: #000066; font-weight: bold;">.</span>typography<span style="color: #000066; font-weight: bold;">.</span>HelveticaBold<span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #000066; font-weight: bold;">...</span><br />
<span style="color: #6699cc; font-weight: bold;">var</span> inputBox<span style="color: #000066; font-weight: bold;">:</span>DynamicText3DInput = <span style="color: #0033ff; font-weight: bold;">new</span> DynamicText3DInput<span style="color: #000000;">&#40;</span>HelveticaBold<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
inputBox<span style="color: #000066; font-weight: bold;">.</span>boxColor = 0xffffff<span style="color: #000066; font-weight: bold;">;</span><br />
inputBox<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">textColor</span> = 0x000000<span style="color: #000066; font-weight: bold;">;</span><br />
inputBox<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">200</span><span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>inputBox<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></div></td></tr></tbody></table></div>
</p>
<p>
<strong>Source:</strong></p>
<div class="codecolorer-container actionscript3 twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br />108<br />109<br />110<br />111<br />112<br />113<br />114<br />115<br />116<br />117<br />118<br />119<br />120<br />121<br />122<br />123<br />124<br />125<br />126<br />127<br />128<br />129<br />130<br />131<br />132<br />133<br />134<br />135<br />136<br />137<br />138<br />139<br />140<br />141<br />142<br />143<br />144<br />145<br />146<br />147<br />148<br />149<br />150<br />151<br />152<br />153<br />154<br />155<br />156<br />157<br />158<br />159<br />160<br />161<br />162<br />163<br />164<br />165<br />166<br />167<br />168<br />169<br />170<br />171<br />172<br /></div></td><td><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #9900cc; font-weight: bold;">package</span> five3D<span style="color: #000066; font-weight: bold;">.</span>component <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=keyboardevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:keyboardevent.html"><span style="color: #004993;">KeyboardEvent</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=timerevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:timerevent.html"><span style="color: #004993;">TimerEvent</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.geom</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=rectangle%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:rectangle.html"><span style="color: #004993;">Rectangle</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.utils</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=timer%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:timer.html"><span style="color: #004993;">Timer</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> five3D<span style="color: #000066; font-weight: bold;">.</span>display<span style="color: #000066; font-weight: bold;">.</span>DynamicText3D<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> five3D<span style="color: #000066; font-weight: bold;">.</span>display<span style="color: #000066; font-weight: bold;">.</span>Sprite3D<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> five3D<span style="color: #000066; font-weight: bold;">.</span>display<span style="color: #000066; font-weight: bold;">.</span>Shape3D<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> DynamicText3DInput <span style="color: #0033ff; font-weight: bold;">extends</span> Sprite3D <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> inputText<span style="color: #000066; font-weight: bold;">:</span>DynamicText3D<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _width<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=int%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:int.html"><span style="color: #004993;">int</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _boxColor<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=uint%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:uint.html"><span style="color: #004993;">uint</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _boxPadding<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=int%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:int.html"><span style="color: #004993;">int</span></a> = <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _bounds<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=rectangle%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:rectangle.html"><span style="color: #004993;">Rectangle</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _inputMask<span style="color: #000066; font-weight: bold;">:</span>Shape3D<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _cursor<span style="color: #000066; font-weight: bold;">:</span>Shape3D<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _cursorTimer<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=timer%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:timer.html"><span style="color: #004993;">Timer</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> DynamicText3DInput<span style="color: #000000;">&#40;</span>typography<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=object%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:object.html"><span style="color: #004993;">Object</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">super</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputText = <span style="color: #0033ff; font-weight: bold;">new</span> DynamicText3D<span style="color: #000000;">&#40;</span>typography<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">init</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; override <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #0033ff; font-weight: bold;">get</span> <span style="color: #004993;">width</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">return</span> _width<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; override <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #0033ff; font-weight: bold;">set</span> <span style="color: #004993;">width</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">value</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _width = <span style="color: #004993;">value</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; adjustBox<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #0033ff; font-weight: bold;">get</span> boxColor<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=uint%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:uint.html"><span style="color: #004993;">uint</span></a> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">return</span> _boxColor<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #0033ff; font-weight: bold;">set</span> boxColor<span style="color: #000000;">&#40;</span><span style="color: #004993;">value</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=uint%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:uint.html"><span style="color: #004993;">uint</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _boxColor = <span style="color: #004993;">value</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; adjustBox<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #0033ff; font-weight: bold;">get</span> <span style="color: #004993;">textColor</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=uint%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:uint.html"><span style="color: #004993;">uint</span></a> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">return</span> inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">color</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #0033ff; font-weight: bold;">set</span> <span style="color: #004993;">textColor</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">value</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=uint%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:uint.html"><span style="color: #004993;">uint</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">color</span> = <span style="color: #004993;">value</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drawCursor<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #0033ff; font-weight: bold;">get</span> <span style="color: #004993;">size</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=int%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:int.html"><span style="color: #004993;">int</span></a> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">return</span> inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">size</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #0033ff; font-weight: bold;">set</span> <span style="color: #004993;">size</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">value</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=int%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:int.html"><span style="color: #004993;">int</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">size</span> = <span style="color: #004993;">value</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; adjustBox<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #0033ff; font-weight: bold;">get</span> <span style="color: #004993;">text</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=string%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:string.html"><span style="color: #004993;">String</span></a> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">return</span> inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">init</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>inputText<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; registerListeners<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">focusRect</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _inputMask = <span style="color: #0033ff; font-weight: bold;">new</span> Shape3D<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>_inputMask<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">mask</span> = _inputMask<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cursor = <span style="color: #0033ff; font-weight: bold;">new</span> Shape3D<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>_cursor<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setupDefaults<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> setupDefaults<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _boxColor = 0xffffff<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _width = <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">size</span> = <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">color</span> = 0x000000<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = _boxPadding<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = _boxPadding<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cursor<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span> = _boxPadding<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cursor<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">alpha</span> = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drawCursor<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cursorTimer = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=timer%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:timer.html"><span style="color: #004993;">Timer</span></a><span style="color: #000000;">&#40;</span>250<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cursorTimer<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=timerevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:timerevent.html"><span style="color: #004993;">TimerEvent</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">TIMER</span><span style="color: #000066; font-weight: bold;">,</span> _adjustCursor<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">,</span> 0<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> adjustBox<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _bounds = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=rectangle%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:rectangle.html"><span style="color: #004993;">Rectangle</span></a><span style="color: #000000;">&#40;</span>0<span style="color: #000066; font-weight: bold;">,</span> 0<span style="color: #000066; font-weight: bold;">,</span> _width <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #000000;">&#40;</span>_boxPadding <span style="color: #000066; font-weight: bold;">*</span> 2<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">,</span> inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">size</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #000000;">&#40;</span>_boxPadding <span style="color: #000066; font-weight: bold;">*</span> 2<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span>graphics3D<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span>graphics3D<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginFill</span><span style="color: #000000;">&#40;</span>_boxColor<span style="color: #000066; font-weight: bold;">,</span> 1<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span>graphics3D<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">drawRect</span><span style="color: #000000;">&#40;</span>0<span style="color: #000066; font-weight: bold;">,</span> 0<span style="color: #000066; font-weight: bold;">,</span> _bounds<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000066; font-weight: bold;">,</span> _bounds<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span>graphics3D<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">endFill</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _inputMask<span style="color: #000066; font-weight: bold;">.</span>graphics3D<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _inputMask<span style="color: #000066; font-weight: bold;">.</span>graphics3D<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginFill</span><span style="color: #000000;">&#40;</span>_boxColor<span style="color: #000066; font-weight: bold;">,</span> 1<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _inputMask<span style="color: #000066; font-weight: bold;">.</span>graphics3D<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">drawRect</span><span style="color: #000000;">&#40;</span>0<span style="color: #000066; font-weight: bold;">,</span> 0<span style="color: #000066; font-weight: bold;">,</span> _bounds<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000066; font-weight: bold;">,</span> _bounds<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _inputMask<span style="color: #000066; font-weight: bold;">.</span>graphics3D<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">endFill</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drawCursor<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> drawCursor<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cursor<span style="color: #000066; font-weight: bold;">.</span>graphics3D<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cursor<span style="color: #000066; font-weight: bold;">.</span>graphics3D<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginFill</span><span style="color: #000000;">&#40;</span>inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">color</span><span style="color: #000066; font-weight: bold;">,</span> 1<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cursor<span style="color: #000066; font-weight: bold;">.</span>graphics3D<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">drawRect</span><span style="color: #000000;">&#40;</span>0<span style="color: #000066; font-weight: bold;">,</span> 0<span style="color: #000066; font-weight: bold;">,</span> 1<span style="color: #000066; font-weight: bold;">,</span> inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">size</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cursor<span style="color: #000066; font-weight: bold;">.</span>graphics3D<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">endFill</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> registerListeners<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> _boxClickHandler<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">,</span> 0<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=keyboardevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:keyboardevent.html"><span style="color: #004993;">KeyboardEvent</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">KEY_DOWN</span><span style="color: #000066; font-weight: bold;">,</span> _keyPressHandler<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">,</span> 0<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> _adjustCursor<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=timerevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:timerevent.html"><span style="color: #004993;">TimerEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span> _cursor<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">alpha</span> == 1<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cursor<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">alpha</span> = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cursor<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">alpha</span> = <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">focus</span> <span style="color: #000066; font-weight: bold;">!</span>= <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cursorTimer<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cursor<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">alpha</span> = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> _boxClickHandler<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">focus</span> = <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cursorTimer<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">start</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> _keyPressHandler<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=keyboardevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:keyboardevent.html"><span style="color: #004993;">KeyboardEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">focus</span> <span style="color: #000066; font-weight: bold;">!</span>= <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">return</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">switch</span><span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">keyCode</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">8</span><span style="color: #000066; font-weight: bold;">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">//delete the char beofre the cursor</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">substr</span><span style="color: #000000;">&#40;</span>0<span style="color: #000066; font-weight: bold;">,</span> inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span> <span style="color: #000066; font-weight: bold;">-</span> 1<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">default</span><span style="color: #000066; font-weight: bold;">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> <span style="color: #000066; font-weight: bold;">+</span>= <a href="http://www.google.com/search?q=string%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:string.html"><span style="color: #004993;">String</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">fromCharCode</span><span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">charCode</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span> inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">textWidth</span> <span style="color: #000066; font-weight: bold;">&gt;</span> _width <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = <span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">-</span>inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">textWidth</span><span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">+</span> _width <span style="color: #000066; font-weight: bold;">+</span> _boxPadding<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><span style="color: #0033ff; font-weight: bold;">else</span><span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = _boxPadding<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _cursor<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> <span style="color: #000066; font-weight: bold;">+</span> inputText<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">textWidth</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
<span style="color: #000000;">&#125;</span></div></td></tr></tbody></table></div>
</p>
<p>While this works, it would also be nice to adjust the cursor position, have selectable text, with copy+paste, etc.. But this works for now. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://ripeworks.com/2009/08/14/five3d-custom-text-input-component/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mikekruk.com Re-design!</title>
		<link>http://ripeworks.com/2009/07/18/mikekrukcom-re-design/</link>
		<comments>http://ripeworks.com/2009/07/18/mikekrukcom-re-design/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 22:01:03 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flash10]]></category>
		<category><![CDATA[kruk]]></category>
		<category><![CDATA[mike]]></category>
		<category><![CDATA[tablet]]></category>
		<category><![CDATA[vector]]></category>
		<category><![CDATA[wacom]]></category>

		<guid isPermaLink="false">http://ripeworks.com/?p=55</guid>
		<description><![CDATA[
Since I bought my first Wacom tablet a few months ago, I drew up some very simple, but cute, designs for a re-design I had planned on doing for mikekruk.com. What I thought would be a few day site build, ended up being drug on for months and months.
With work busy, and other side-projects taking [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://mikekruk.com/"><img src="http://ripeworks.com/wp-content/uploads/2009/07/mikekrukredesign.jpg" alt="" title="mikekrukredesign"  class="alignnone size-medium wp-image-56" /></a></p>
<p>Since I bought my first Wacom tablet a few months ago, I drew up some very simple, but cute, designs for a re-design I had planned on doing for mikekruk.com. What I thought would be a few day site build, ended up being drug on for months and months.</p>
<p>With work busy, and other side-projects taking my interest, this project had been on the back burner at all times, until one weekend I decided I needed to finish it, and I finally got it done!</p>
<p>It&#8217;s a basic site, but I think it&#8217;s definitely a unique one. The thing I love the most about it is the navigation. I don&#8217;t recall ever seeing navigation like it before.</p>
<p>So, be sure to check it out, and if you can guess what influenced this design, you get a cookie!</p>
]]></content:encoded>
			<wfw:commentRss>http://ripeworks.com/2009/07/18/mikekrukcom-re-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing Clips</title>
		<link>http://ripeworks.com/2009/02/20/introducing-clips/</link>
		<comments>http://ripeworks.com/2009/02/20/introducing-clips/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 17:58:08 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[clipboard]]></category>
		<category><![CDATA[clips]]></category>
		<category><![CDATA[orm]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://ripeworks.com/?p=51</guid>
		<description><![CDATA[
In the need of a simple application that could let me easily transfer text snippets or links from my laptop to my work machine, I felt I should write my own application to do it. Even after looking at all the other great services that would more than do what I need, I still felt [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://clip.rails.ripeworks.com/" target="_blank"><img src="http://ripeworks.com/wp-content/uploads/2009/02/clips-screen.jpg" alt="" title="clips-screen" class="alignnone" /></a></p>
<p>In the need of a simple application that could let me easily transfer text snippets or links from my laptop to my work machine, I felt I should write my own application to do it. Even after looking at all the other great services that would more than do what I need, I still felt the urge to write my own implementation.</p>
<p>Normally, I would fire up TextMate and get to crackin&#8217; at some PHP files, but for such a simple application, I had a different approach&#8230; Why don&#8217;t I use this as  a chance to learn Ruby on Rails! It has been something i&#8217;ve been meaning to do for a few years now, but have never found the perfect application to learn from.</p>
<p>After getting Rails setup on both my local machine and my Slice, as well as setting up Passenger on my Slice so I&#8217;d be ready to deploy my application, I got to work. I read through some basic Rails tutorials about basic application setup, scaffolding, etc. I also read about doing thing the &#8220;Rails way&#8221;. I am quite comfortable doing anything in an object-oriented mindset, in fact, that&#8217;s what I prefer. Unfortunately I have never more than stepped foot into the world of MVC. Luckily it didn&#8217;t take too long for me to catch on.</p>
<p>After this experience, I must say that I have drank the kool aid, and I am lovin&#8217; me some Rails. Having a great ORM at my disposal, the amount of baked in methods and helpers that Rails has, and not to mention the extremely read-friendly Ruby code, this is great! Don&#8217;t forget all the community plugins that make things like user-authentication a breeze!</p>
<p>Of course this is still a work-in-progress, and I&#8217;m not sure if I will ever put it up on its own domain, but I definitely use it frequently, and now eagerly await the next project to tackle with Rails.</p>
<p>Oh! Of course! The URL is: <a href="http://clip.rails.ripeworks.com/" target="_blank">clip.rails.ripeworks.com</a> if you didn&#8217;t click the above image in the post.</p>
]]></content:encoded>
			<wfw:commentRss>http://ripeworks.com/2009/02/20/introducing-clips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Blogging&#8221; with Twitter</title>
		<link>http://ripeworks.com/2009/01/29/blogging-with-twitter/</link>
		<comments>http://ripeworks.com/2009/01/29/blogging-with-twitter/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 02:33:13 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[kruk]]></category>
		<category><![CDATA[mike]]></category>
		<category><![CDATA[mikekruk]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://ripeworks.com/?p=47</guid>
		<description><![CDATA[
I&#8217;m not much of a &#8220;blogger&#8221;. When I want to write, nay, compose a new blog about something that went on in my life, or some great accomplishment, it takes a while to draft something out, find a picture to go with it, make sure it sounds right, etc. A long process that I just don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://ripeworks.com/wp-content/uploads/2009/01/mikekrukblog.jpg" alt="" title="mikekrukblog" width="272" height="141" class="alignnone size-medium wp-image-48" /></p>
<p>I&#8217;m not much of a &#8220;blogger&#8221;. When I want to write, nay, <strong>compose</strong> a new blog about something that went on in my life, or some great accomplishment, it takes a while to draft something out, find a picture to go with it, make sure it sounds right, etc. A long process that I just don&#8217;t have time to do. When I see blogs, I almost assume that they are well thought out articles, almost that of which you would see in a newspaper or magazine. 
</p>
<p>But, I want to be able to blog without having to worry about grammer, punctuation, a <em>point</em>. That&#8217;s where Twitter comes in. I never thought that going to a website and typing in what I am doing right now so that if my friends / co-workers happened to be on Twitter as well, they could say, &#8220;Oh! Mike is going to the bathroom!&#8221;. Why would they want to know that? Even thought I don&#8217;t see the point, I think it is still a great web service.</p>
<p>So, I combined the two to create the 3rd iteration of <a href="http://mikekruk.com">mikekruk.com</a>. It uses the Twitter API to bring up my tweets that are hashed as &#8220;#blog&#8221;. This way, whenever I want to blog about anything, I can just make a quick tweet and call it a day. I think it&#8217;s something that I might actually use because I can talk about what happened when, and not have to worry about some big long article, and I sure as hell don&#8217;t have to type it <em>while</em> I&#8217;m doing it.</p>
<p>For now, I will see how Twitter works out. I may have to switch over to Tumblr at some point if I want to post pictures, or I could possibly just get away with using Twitpic or some other service. Ahh, bending the web has never felt so good.</p>
]]></content:encoded>
			<wfw:commentRss>http://ripeworks.com/2009/01/29/blogging-with-twitter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using AIR 1.1 alongside AIR 1.5</title>
		<link>http://ripeworks.com/2008/12/12/using-air-11-alongside-air-15/</link>
		<comments>http://ripeworks.com/2008/12/12/using-air-11-alongside-air-15/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 19:21:06 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[air]]></category>
		<category><![CDATA[cs4]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://ripeworks.com/?p=36</guid>
		<description><![CDATA[If you are one of the lucky ones to have a copy of Flash CS4 Professional, and then decide, &#8220;AIR 1.5? Sweet! I&#8217;m going to upgrade!&#8221;, you just might kick yourself for doing that!
AIR 1.5 utilizes Flash Player 10, which is great for new features such as 3D capabilities and performance updates, but there are [...]]]></description>
			<content:encoded><![CDATA[<p>If you are one of the lucky ones to have a copy of Flash CS4 Professional, and then decide, &#8220;AIR 1.5? Sweet! I&#8217;m going to upgrade!&#8221;, you just might kick yourself for doing that!</p>
<p>AIR 1.5 utilizes Flash Player 10, which is great for new features such as 3D capabilities and performance updates, but there are also many security drawback that Flash Player 10 brings to the table.</p>
<p>The particular drawback that almost made me pull my hair out, is that with AIR 1.5, you are no longer able to utilize drag-and-drop of files into your AIR application. I was almost ready to re-install Flash CS4, but I figured out an easy workaround so that you can use AIR 1.1 or AIR 1.5 for your projects.</p>
<p><em>(Please note that this is for Mac, if you are running Windows, this process may be different)</em></p>
<ol>
<li>In Finder, navigate to: /Applications/Adobe Flash CS4/Common/Configuration/Players/</li>
<li>There, you will see a file named: AdobeAIR.xml</li>
<li>Make a duplicate of that file, and rename it to: AdobeAIR1_1.xml</li>
<li>Open up that file, and replace the text with this:
<div class="codecolorer-container xml twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br /></div></td><td><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;players<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;player</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;AdobeAIR1_1&quot;</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;9&quot;</span> <span style="color: #000066;">asversion</span>=<span style="color: #ff0000;">&quot;3&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Adobe AIR 1.1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;publishobject2</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;FLAir1_1&quot;</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.1&quot;</span> <span style="color: #000066;">intversion</span>=<span style="color: #ff0000;">&quot;1.1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/publishobject2<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;path</span> <span style="color: #000066;">platform</span>=<span style="color: #ff0000;">&quot;WIN&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>FLAir1_1.dll<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/path<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;path</span> <span style="color: #000066;">platform</span>=<span style="color: #ff0000;">&quot;MAC&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>FLAir1_1.bundle<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/path<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;playerDefinitionPath</span> <span style="color: #000066;">as2</span>=<span style="color: #ff0000;">&quot;$(UserConfig)/Classes/FP9;$(UserConfig)/Classes/FP8;$(UserConfig)/Classes/FP7&quot;</span> <span style="color: #000066;">as3</span>=<span style="color: #ff0000;">&quot;$(AppConfig)/ActionScript 3.0/AIR1.1/airglobal.swc&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;feature</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;mobileDebug&quot;</span> <span style="color: #000066;">supported</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;feature</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;apolloPublish&quot;</span> <span style="color: #000066;">supported</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;feature</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;apolloTestMovie&quot;</span> <span style="color: #000066;">supported</span>=<span style="color: #ff0000;">&quot;force&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;feature</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;apolloDebugMovie&quot;</span> <span style="color: #000066;">supported</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;feature</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;apolloPackaging&quot;</span> <span style="color: #000066;">supported</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;feature</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;publish_localPlaybackSecurity&quot;</span> <span style="color: #000066;">supported</span>=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;feature</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;publish_hardwareAcceleration&quot;</span> &nbsp; &nbsp;<span style="color: #000066;">supported</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/player<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/players<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></td></tr></tbody></table></div>
</li>
<li>Save that file.</li>
<li>Restart Flash if it is currently running.</li>
<li>That&#8217;s it!</li>
</ol>
<p>NOTE: If you have already built your AIR application using 1.5, you will need to edit your application.xml and change the xml namespace from &#8220;http://ns.adobe.com/air/application/1.5&#8243; to &#8220;http://ns.adobe.com/air/application/1.1&#8243;</p>
<p>Hopefully this will help anyone that also experiences limited functionality while using or upgrading to AIR 1.5</p>
<p>Happy drag-and-dropping!</p>
]]></content:encoded>
			<wfw:commentRss>http://ripeworks.com/2008/12/12/using-air-11-alongside-air-15/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Where there&#8217;s a will, there&#8217;s a plugin.</title>
		<link>http://ripeworks.com/2008/11/04/where-theres-a-will-theres-a-plugin/</link>
		<comments>http://ripeworks.com/2008/11/04/where-theres-a-will-theres-a-plugin/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 00:07:12 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ripeworks.com/?p=31</guid>
		<description><![CDATA[
Over the past few years, I have been using Wordpress for small projects and blogs. As projects go by, I see myself giving more and more projects the Wordpress stamp, then adding various plugins or extensions to suit the project&#8217;s needs. Even if a site doesn&#8217;t have a blog, it&#8217;s still a great lightweight tool [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ripeworks.com/wp-content/uploads/2008/11/picture-3.png"><img class="aligncenter size-full wp-image-32" title="picture-3" src="http://ripeworks.com/wp-content/uploads/2008/11/picture-3.png" alt="" width="454" height="79" /></a></p>
<p>Over the past few years, I have been using Wordpress for small projects and blogs. As projects go by, I see myself giving more and more projects the Wordpress stamp, then adding various plugins or extensions to suit the project&#8217;s needs. Even if a site doesn&#8217;t have a blog, it&#8217;s still a great lightweight tool for making URL-friendly sites that can be easily managed through a crisp admin interface.</p>
<p>When I decide what to build a project on, I run through the usual list of platforms I use, and Wordpress always seem to be the one. It&#8217;s so easy to setup, and if there is something that it can&#8217;t do out of the box, there is almost most definitely a plugin. And in that rare occasion that no plugin is available, or a plugin isn&#8217;t quite as extensible as you need it to be, there&#8217;s always room to write your own!</p>
<p>Here are some plugins that I find myself using time and time again:</p>
<p><a href="http://wordpress.org/extend/plugins/cforms/" target="_blank">Cforms</a> &#8211; A super customizable form builder generally for making contact forms, but can be used for virtually any form you can think of.</p>
<p><a href="http://wordpress.org/extend/plugins/nextgen-gallery/" target="_blank">NextGEN Gallery</a> &#8211; The ultimate when it comes to photo galleries. I&#8217;ve never seen an easier way to upload photos, and with a directory scanner, slideshows, and thickbox all pre-packaged with the plugin, there is almost no configuration needed.</p>
<p><a href="http://wordpress.org/extend/plugins/register-plus/" target="_blank">Register Plus</a> &#8211; Want your site to be members only? Not a problem Register Plus can take care of this with ease. It includes custom registration page creation that includes CAPTCHA, invitation codes, and user-generated passwords. There is also a user moderation page, so you can moderate who can and cannot become a member. </p>
<p>Of course the list could go on, but these are the top ones that I use on a <em>lot</em> of projects. There always some instances where Wordpress is just completely out of the question, but those cases are becoming more scarce as more plugins are released. So if you haven&#8217;t taken a whack at using Wordpress, learn PHP (<a href="http://us2.php.net/oop" target="_blank">the right way</a>) and you&#8217;ll find that it is a lot more than just your run-of-the-mill blogging engine.</p>
]]></content:encoded>
			<wfw:commentRss>http://ripeworks.com/2008/11/04/where-theres-a-will-theres-a-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>We are alive!</title>
		<link>http://ripeworks.com/2008/08/08/we-are-alive/</link>
		<comments>http://ripeworks.com/2008/08/08/we-are-alive/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 21:00:13 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ripeworks.com/?p=17</guid>
		<description><![CDATA[
After a couple weeks of brainstorming, planning, drawing, and coding, we are finally up. We give you, Ripeworks, a small freelance team in southeast Michigan. The team is led by Mike Kruk, followed by a few online teammates to help out with our process. We offer loads of different web services, so be sure to [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-medium wp-image-18" title="new-logo" src="http://ripeworks.com/wp-content/uploads/2008/08/new-logo.png" alt="" width="80" /></p>
<p>After a couple weeks of brainstorming, planning, drawing, and coding, we are finally up. We give you, Ripeworks, a small freelance team in southeast Michigan. The team is led by Mike Kruk, followed by a few online teammates to help out with our process. We offer loads of different web services, so be sure to shoot us an email, or give us a call if you are planning your next project on the web. </p>
<p>We have been around since 2004, but up until now have we come up with a good process, and this slick website. On that note, we are still making changes, and fixing some tweaks on our new site, so please be patient with that, and have a poke around. Let us know what you think!</p>
]]></content:encoded>
			<wfw:commentRss>http://ripeworks.com/2008/08/08/we-are-alive/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://ripeworks.com/2008/07/23/hello-world/</link>
		<comments>http://ripeworks.com/2008/07/23/hello-world/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 16:26:19 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ripeworks.com/?p=1</guid>
		<description><![CDATA[Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
]]></description>
			<content:encoded><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>
]]></content:encoded>
			<wfw:commentRss>http://ripeworks.com/2008/07/23/hello-world/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
