<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>AaronHardy.com &#187; component</title>
	<atom:link href="http://aaronhardy.com/tag/component/feed/" rel="self" type="application/rss+xml" />
	<link>http://aaronhardy.com</link>
	<description>For all your Aaron Hardy needs.</description>
	<lastBuildDate>Thu, 12 Jan 2012 17:51:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ImageInspector: An Image Zoom &amp; Pan Component</title>
		<link>http://aaronhardy.com/flex/imageinspector-an-image-zoom-pan-component/</link>
		<comments>http://aaronhardy.com/flex/imageinspector-an-image-zoom-pan-component/#comments</comments>
		<pubDate>Wed, 12 May 2010 03:11:15 +0000</pubDate>
		<dc:creator>Aaron Hardy</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[inspect]]></category>
		<category><![CDATA[pan]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[scroll]]></category>
		<category><![CDATA[zoom]]></category>

		<guid isPermaLink="false">http://aaronhardy.com/?p=606</guid>
		<description><![CDATA[This type of component is becoming quite popular these days and for good reason: it makes it extremely easy to quickly zoom in and pan around an image. I imagine most all of us have seen an example of this but I&#8217;ve never found the code for one that suits my fancy. So here you [...]]]></description>
			<content:encoded><![CDATA[<p>This type of component is becoming quite popular these days and for good reason: it makes it extremely easy to quickly zoom in and pan around an image.  I imagine most all of us have seen an example of this but I&#8217;ve never found the code for one that suits my fancy.  So here you go.  Here are some possibly unique features I wanted and implemented along with the usual goodies:<span id="more-606"></span></p>
<p>ImageInspector works with images of any aspect ratio.  Also, you&#8217;ll notice the picture-in-picture will size itself to the aspect ratio of the image.  Just set maxWidth and maxHeight and it won&#8217;t get larger than those dimensional limits.</p>
<p>The focal point is maintained during scaling.  For example, zoom in, move the focal point to the corner of the image, zoom out, then zoom in.  Notice that, as you zoom out and in, the focal point is maintained as much as possible.</p>
<p>The focal point and relative scale are both maintained during resizing.  For example, if an image inside ImageInspector is at 200% of its &#8220;fit&#8221; size, ImageInspector is 100% width and height of the window, and the user starts making the window larger, ImageInspector will continue to scale up the image inside it, attempting to keep it at 200% of its &#8220;fit&#8221; size.  Likewise, the focal point will be maintained while resizing the window as well.</p>
<p>Right-click <a href="/samples/imageinspector/Main.html" target="_blank">the demo app</a> to view the source.  The app might take a little while to load because it contains two embedded high-res images.</p>
<div class="goodies"><a href="/samples/imageinspector/Main.html" target="_blank">View Demo</a><a href="http://github.com/Aaronius/ImageInspector" target="_blank">Fork Project</a><br class="break"></div>
]]></content:encoded>
			<wfw:commentRss>http://aaronhardy.com/flex/imageinspector-an-image-zoom-pan-component/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Skinnable Knob Component</title>
		<link>http://aaronhardy.com/flex/skinnable-knob-component/</link>
		<comments>http://aaronhardy.com/flex/skinnable-knob-component/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 03:31:44 +0000</pubDate>
		<dc:creator>Aaron Hardy</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[dial]]></category>
		<category><![CDATA[knob]]></category>
		<category><![CDATA[skinnable]]></category>

		<guid isPermaLink="false">http://aaronhardy.com/?p=310</guid>
		<description><![CDATA[Recently I went searching for Flex knob components on the web and found they either weren&#8217;t equipped for my needs or closed source. So, I cooked up my own knob (or dial) component that hopefully someone out there can use. Go do something cool with it. Available Properties value &#8211; The number value represented by [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I went searching for Flex knob components on the web and found they either weren&#8217;t equipped for my needs or closed source.  So, I cooked up my own knob (or dial) component that hopefully someone out there can use.  Go do something cool with it.<span id="more-310"></span></p>
<p><strong>Available Properties</strong><br />
value &#8211; The number value represented by the current knob rotation.<br />
minimum &#8211; The value if the knob were turned counter-clockwise as far as possible.<br />
maximum &#8211; The value if the knob were turned clockwise as far as possible.<br />
zeroAngle &#8211; The angle, in degrees, representing the minimum value (-180 to 180).<br />
maxRotation &#8211; The number of degrees from the zero angle the knob is allowed to rotate clockwise (0 to 360).<br />
snapToCursor &#8211; If true, the knob will rotate to the cursor as soon as the user mouses down.<br />
allowLooping &#8211; If true, this allows the user to continue rotating the knob clockwise past the max angle, eventually forcing the knob to cross over to the minimum angle.  Likewise the user can continue rotating the knob counter-clockwise past the min angle and the knob will eventually cross over to the maximum angle.  This can be particularly useful when maxRotation is 360 degrees and the user should be able to go around and around.</p>
<p><strong>Skin Parts</strong><br />
backgroundSkin &#8211; This is anything around or behind the knob which does not rotate (e.g., tick marks, labels, etc.)<br />
thumbSkin &#8211; This is the part of the knob which the user manipulates.  In the real world, this would be &#8220;the knob&#8221; itself&#8211;the tactile part you would turn with your hand.</p>
<p><strong>Exhibit A</strong><br />
Have at it!  Right-click to view the source.  Post a comment if you have a question.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_Main_1265492739"
			class="flashmovie"
			width="100%"
			height="300">
	<param name="movie" value="/samples/knob/Main.swf" />
	<param name="base" value="/samples/knob/" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/samples/knob/Main.swf"
			name="fm_Main_1265492739"
			width="100%"
			height="300">
		<param name="base" value="/samples/knob/" />
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<div class="goodies"><a href="http://github.com/Aaronius/Knob" target="_blank">Fork Project</a><br class="break"></div>
]]></content:encoded>
			<wfw:commentRss>http://aaronhardy.com/flex/skinnable-knob-component/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

