<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>FLEX up the world !</title>
	<atom:link href="http://balakrishnanvijay.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://balakrishnanvijay.wordpress.com</link>
	<description></description>
	<lastBuildDate>Wed, 03 Nov 2010 10:37:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='balakrishnanvijay.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>FLEX up the world !</title>
		<link>http://balakrishnanvijay.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://balakrishnanvijay.wordpress.com/osd.xml" title="FLEX up the world !" />
	<atom:link rel='hub' href='http://balakrishnanvijay.wordpress.com/?pushpress=hub'/>
		<item>
		<title>A simple tile re-arrange simulation</title>
		<link>http://balakrishnanvijay.wordpress.com/2010/11/03/a-simple-tile-re-arrange-simulation/</link>
		<comments>http://balakrishnanvijay.wordpress.com/2010/11/03/a-simple-tile-re-arrange-simulation/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 05:01:03 +0000</pubDate>
		<dc:creator>bala</dc:creator>
		
		<guid isPermaLink="false">http://balakrishnanvijay.wordpress.com/?p=46</guid>
		<description><![CDATA[Its been quite sometime since I actually created something . (Been busy ). So when I got a couple of days off from work, I decided to imitate a flex app that I had seen a long time back. The basic working of the app is this : You drag any tile (I&#8217;d be using [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balakrishnanvijay.wordpress.com&amp;blog=14682412&amp;post=46&amp;subd=balakrishnanvijay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Its been quite sometime since I actually created something . (Been busy <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ).</p>
<p>So when I got a couple of days off from work, I decided to imitate a flex app that I had seen a long time back.</p>
<p>The basic working of the app is this : You drag any tile (I&#8217;d be using some images I guess) over some other tile and the tiles between the hovered tile and the selected tile re-arrange (with animation) in such a way that the the tile that is being dragged has a vacant space onto which it can be dropped and the original location of that tile would now be occupied by a neighbouring tile (left / right) depending on which tile is being hovered over.</p>
<p>I have done the basic working of the app. I intend to complicate it a bit more by using a large number of tiles, the view of which can be zoomed into / zoomed out by using a scroll.</p>
<p>I shall probably post the basic app first and then post updates later.</p>
<p>(Also pending is uploading source for the previous 2 applications .. )</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/balakrishnanvijay.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/balakrishnanvijay.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/balakrishnanvijay.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/balakrishnanvijay.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/balakrishnanvijay.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/balakrishnanvijay.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/balakrishnanvijay.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/balakrishnanvijay.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/balakrishnanvijay.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/balakrishnanvijay.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/balakrishnanvijay.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/balakrishnanvijay.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/balakrishnanvijay.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/balakrishnanvijay.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balakrishnanvijay.wordpress.com&amp;blog=14682412&amp;post=46&amp;subd=balakrishnanvijay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://balakrishnanvijay.wordpress.com/2010/11/03/a-simple-tile-re-arrange-simulation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2fd1567b2eb2d7202d32a359a7349a6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vbalakrishnan23</media:title>
		</media:content>
	</item>
		<item>
		<title>3-D Layout with animation !!</title>
		<link>http://balakrishnanvijay.wordpress.com/2010/08/03/cylindrical-view-with-animatio/</link>
		<comments>http://balakrishnanvijay.wordpress.com/2010/08/03/cylindrical-view-with-animatio/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 05:52:59 +0000</pubDate>
		<dc:creator>bala</dc:creator>
		
		<guid isPermaLink="false">http://balakrishnanvijay.wordpress.com/?p=40</guid>
		<description><![CDATA[I have finally uploaded the photo-viewer with animation. App : [http://sujitreddyg.com/balakrishnanvijay/CylindricalView] For some background details and references, for those who are new, please have a look my cylindrical layout without animation card pack layout introduction to 3-d layouts in Flex 4 What I plan to do now is give a detailed account of my experience [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balakrishnanvijay.wordpress.com&amp;blog=14682412&amp;post=40&amp;subd=balakrishnanvijay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have finally uploaded the photo-viewer with animation.</p>
<p>App : [<a href="http://go2.wordpress.com/?id=725X1342&amp;site=balakrishnanvijay.wordpress.com&amp;url=http%3A%2F%2Fsujitreddyg.com%2Fbalakrishnanvijay%2FCylindricalView&amp;sref=http%3A%2F%2Fbalakrishnanvijay.wordpress.com%2F2010%2F07%2F15%2Fa-cylindrical-layout-to-view-photos%2F">http://sujitreddyg.com/balakrishnanvijay/CylindricalView</a>]</p>
<p>For some background details and references, for those who are new, please have a look my</p>
<ol>
<li><a href="http://balakrishnanvijay.wordpress.com/2010/07/15/a-cylindrical-layout-to-view-photos/" target="_self">cylindrical layout without animation</a></li>
<li><a href="http://balakrishnanvijay.wordpress.com/2010/07/15/laying-out-a-card-pack-in-3-d/" target="_self">card pack layout</a></li>
<li><a href="http://balakrishnanvijay.wordpress.com/2010/07/15/3-d-layouts-using-flex-4/" target="_self">introduction to 3-d layouts in Flex 4</a></li>
</ol>
<p>What I plan to do now is give a detailed account of my experience as I created these layouts ! (will do it soon ! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  )</p>
<p>Feel free to comment on my posts as I am sure it would be a good chance to learn for me as well.</p>
<p>Ideas/suggestions for any future work are welcome.</p>
<p>Criticism/Comments are most welcome ! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Cheers !!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/balakrishnanvijay.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/balakrishnanvijay.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/balakrishnanvijay.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/balakrishnanvijay.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/balakrishnanvijay.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/balakrishnanvijay.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/balakrishnanvijay.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/balakrishnanvijay.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/balakrishnanvijay.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/balakrishnanvijay.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/balakrishnanvijay.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/balakrishnanvijay.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/balakrishnanvijay.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/balakrishnanvijay.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balakrishnanvijay.wordpress.com&amp;blog=14682412&amp;post=40&amp;subd=balakrishnanvijay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://balakrishnanvijay.wordpress.com/2010/08/03/cylindrical-view-with-animatio/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2fd1567b2eb2d7202d32a359a7349a6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vbalakrishnan23</media:title>
		</media:content>
	</item>
		<item>
		<title>3-D Layouts using Flex 4</title>
		<link>http://balakrishnanvijay.wordpress.com/2010/07/31/3-d-layouts-using-flex-4-updat/</link>
		<comments>http://balakrishnanvijay.wordpress.com/2010/07/31/3-d-layouts-using-flex-4-updat/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 03:40:23 +0000</pubDate>
		<dc:creator>bala</dc:creator>
		
		<guid isPermaLink="false">http://balakrishnanvijay.wordpress.com/?p=36</guid>
		<description><![CDATA[Done ! I have now completed the animation part on the photo-viewer as well ! Will be uploading it in a couple of days !!! In the mean time, you can have a look at whatever I have done till now&#8230;. Cylindrical Layout for a photo-viewer http://balakrishnanvijay.wordpress.com/2010/07/15/a-cylindrical-layout-to-view-photos/ 3-D Layout of Cards http://balakrishnanvijay.wordpress.com/2010/07/15/laying-out-a-card-pack-in-3-d/ I shall also [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balakrishnanvijay.wordpress.com&amp;blog=14682412&amp;post=36&amp;subd=balakrishnanvijay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Done ! I have now completed the animation part on the photo-viewer as well ! Will be uploading it in a couple of days !!!</p>
<p>In the mean time, you can have a look at whatever I have done till now&#8230;.</p>
<p>Cylindrical Layout for a photo-viewer</p>
<p><a href="http://balakrishnanvijay.wordpress.com/2010/07/15/a-cylindrical-layout-to-view-photos/">http://balakrishnanvijay.wordpress.com/2010/07/15/a-cylindrical-layout-to-view-photos/</a></p>
<p>3-D Layout of Cards</p>
<p><a href="http://balakrishnanvijay.wordpress.com/2010/07/15/laying-out-a-card-pack-in-3-d/">http://balakrishnanvijay.wordpress.com/2010/07/15/laying-out-a-card-pack-in-3-d/</a></p>
<p>I shall also blog about the creation of 3-D layouts in detail in my next post &#8230; <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Cheers !!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/balakrishnanvijay.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/balakrishnanvijay.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/balakrishnanvijay.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/balakrishnanvijay.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/balakrishnanvijay.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/balakrishnanvijay.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/balakrishnanvijay.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/balakrishnanvijay.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/balakrishnanvijay.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/balakrishnanvijay.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/balakrishnanvijay.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/balakrishnanvijay.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/balakrishnanvijay.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/balakrishnanvijay.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balakrishnanvijay.wordpress.com&amp;blog=14682412&amp;post=36&amp;subd=balakrishnanvijay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://balakrishnanvijay.wordpress.com/2010/07/31/3-d-layouts-using-flex-4-updat/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2fd1567b2eb2d7202d32a359a7349a6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vbalakrishnan23</media:title>
		</media:content>
	</item>
		<item>
		<title>A Cylindrical Layout Viewer to view images</title>
		<link>http://balakrishnanvijay.wordpress.com/2010/07/15/a-cylindrical-layout-to-view-photos/</link>
		<comments>http://balakrishnanvijay.wordpress.com/2010/07/15/a-cylindrical-layout-to-view-photos/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 13:06:36 +0000</pubDate>
		<dc:creator>bala</dc:creator>
				<category><![CDATA[3-D Layouts]]></category>

		<guid isPermaLink="false">http://balakrishnanvijay.wordpress.com/?p=27</guid>
		<description><![CDATA[App : [http://sujitreddyg.com/balakrishnanvijay/CylindricalView] This is my second 3-D layout using Flex 4. After doing the previous set of layouts [http://balakrishnanvijay.wordpress.com/2010/07/15/laying-out-a-card-pack-in-3-d/], I decided to layout something that looks even better. I have now created a layout that takes a set of photos and lays them out in a cylindrical(basically curved) pattern. After building the convex curve, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balakrishnanvijay.wordpress.com&amp;blog=14682412&amp;post=27&amp;subd=balakrishnanvijay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>App : [<a href="http://sujitreddyg.com/balakrishnanvijay/CylindricalView">http://sujitreddyg.com/balakrishnanvijay/CylindricalView</a>]</p>
<p>This is my second 3-D layout using Flex 4. After doing the previous set of layouts [<a href="http://balakrishnanvijay.wordpress.com/2010/07/15/laying-out-a-card-pack-in-3-d/">http://balakrishnanvijay.wordpress.com/2010/07/15/laying-out-a-card-pack-in-3-d/</a>], I decided to layout something that looks even better. I have now created a layout that takes a set of photos and lays them out in a cylindrical(basically curved) pattern. After building the convex curve, I also later included the concave curve layout.</p>
<p>Once again, as in the case of my previous examples, to get an idea of the basics of 3-D layouts, please refer to my post [<a href="http://balakrishnanvijay.wordpress.com/2010/07/15/3-d-layouts-using-flex-4/">http://balakrishnanvijay.wordpress.com/2010/07/15/3-d-layouts-using-flex-4/</a>].</p>
<p>The pattern is pretty much the same. I first laid out all the pictures in a 2-D tile format and then tried appending rotations to each of the elements. There is a tricky part here though. The axis of rotation for elements with index less than the selectedIndex needs to be adjusted so as to maintain symmetry with the elements with index greater than selectedIndex. To adjust axis of rotation, I had to do</p>
<p>appendTranslation(-elementWidth/2,0,0) ; appendRotation(&lt;angle&gt;,Vector3D.Y_Axis) ; appendTranslation(elementWidth/2,0,0);</p>
<p>This reason for this will be clearer if you omit this portion in the code (which i shall upload later after some more changes !)</p>
<p>Based on the total curvature required (as set by the user), I assign a curvature for each element and rotate it by that amount about the Y-Axis.</p>
<p>anglePerElement = fullAngle / (total number of columns)</p>
<p>I am working on making the curvature possible upto 180 degrees. (Right now, I have limited it !). I am also working on configuring click events.</p>
<p>Will update/upgrade soon !!!</p>
<p>App : [<a href="http://sujitreddyg.com/balakrishnanvijay/CylindricalView">http://sujitreddyg.com/balakrishnanvijay/CylindricalView</a>]</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/balakrishnanvijay.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/balakrishnanvijay.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/balakrishnanvijay.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/balakrishnanvijay.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/balakrishnanvijay.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/balakrishnanvijay.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/balakrishnanvijay.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/balakrishnanvijay.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/balakrishnanvijay.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/balakrishnanvijay.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/balakrishnanvijay.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/balakrishnanvijay.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/balakrishnanvijay.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/balakrishnanvijay.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balakrishnanvijay.wordpress.com&amp;blog=14682412&amp;post=27&amp;subd=balakrishnanvijay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://balakrishnanvijay.wordpress.com/2010/07/15/a-cylindrical-layout-to-view-photos/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2fd1567b2eb2d7202d32a359a7349a6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vbalakrishnan23</media:title>
		</media:content>
	</item>
		<item>
		<title>Laying out a Card Pack in 3-D</title>
		<link>http://balakrishnanvijay.wordpress.com/2010/07/15/laying-out-a-card-pack-in-3-d/</link>
		<comments>http://balakrishnanvijay.wordpress.com/2010/07/15/laying-out-a-card-pack-in-3-d/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 09:59:37 +0000</pubDate>
		<dc:creator>bala</dc:creator>
				<category><![CDATA[3-D Layouts]]></category>

		<guid isPermaLink="false">http://balakrishnanvijay.wordpress.com/?p=23</guid>
		<description><![CDATA[App : [http://www.sujitreddyg.com/balakrishnanvijay/LayingOutACardPack/] This is my first set of 3-D layouts in Flex 4, primarily based on Ryan Campbell&#8217;s layouts. In fact I have used his base class LayoutBase3D and built my layout on top of it. The app gives 3 views &#8211; sine curve, modulo sine curve and the circular (elliptic) layout. There are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balakrishnanvijay.wordpress.com&amp;blog=14682412&amp;post=23&amp;subd=balakrishnanvijay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>App : [<a href="http://www.sujitreddyg.com/balakrishnanvijay/LayingOutACardPack/">http://www.sujitreddyg.com/balakrishnanvijay/LayingOutACardPack/</a>]</p>
<p>This is my first set of 3-D layouts in Flex 4, primarily based on Ryan Campbell&#8217;s layouts. In fact I have used his base class <em>LayoutBase3D </em>and built my layout on top of it. The app gives 3 views &#8211; sine curve, modulo sine curve and the circular (elliptic) layout. There are 3 triggers to modify the display :-changing the index of the main card, changing the distance between cards and changing the selected card by clicking on any card.</p>
<p>[<a href="http://balakrishnanvijay.wordpress.com/2010/07/15/3-d-layouts-using-flex-4/">http://balakrishnanvijay.wordpress.com/2010/07/15/3-d-layouts-using-flex-4/</a>] is a prelude to this post. It contains the basics of laying out objects in 3D using Flex. The remainder of this article will be easier to follow if you have read this.</p>
<p>The basics of the layout remain the same. It is the updateDisplayList() that changes for each layout.</p>
<p>1. Sine Curve &#8211; matrix.appendTranslation (x,sin(x),z) &#8211; (x,sin(x)) plots a sine curve in the 2-D plane. When we add a z attribute and set the depth of the element in consideration appropriately, we get a sine-curve layout.</p>
<p>2. Mod Sine Curve &#8211; matrix.appendTranslation (x,abs(sin(x)),z) &#8211; This layout is pretty much the same as the previous layout.</p>
<p>3. Circular Layout &#8211; I made the circular layout based on the sine curve layout. The idea was to layout the sine curve in such a way that from angle 0 to 180, there were 26 elements and from angle 180 to 360 there were the remaining 26 elements. If we now limit the x and z co-ordinates, we can make the &#8220;negative&#8221; part of the sine curve to flip over to the 0 to 180 range.</p>
<p>App : [<a href="http://www.sujitreddyg.com/balakrishnanvijay/LayingOutACardPack/">http://www.sujitreddyg.com/balakrishnanvijay/LayingOutACardPack/</a>]</p>
<p>I am working on a couple of other 3-D layouts as well and shall post them when I am done !!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/balakrishnanvijay.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/balakrishnanvijay.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/balakrishnanvijay.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/balakrishnanvijay.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/balakrishnanvijay.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/balakrishnanvijay.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/balakrishnanvijay.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/balakrishnanvijay.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/balakrishnanvijay.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/balakrishnanvijay.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/balakrishnanvijay.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/balakrishnanvijay.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/balakrishnanvijay.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/balakrishnanvijay.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balakrishnanvijay.wordpress.com&amp;blog=14682412&amp;post=23&amp;subd=balakrishnanvijay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://balakrishnanvijay.wordpress.com/2010/07/15/laying-out-a-card-pack-in-3-d/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2fd1567b2eb2d7202d32a359a7349a6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vbalakrishnan23</media:title>
		</media:content>
	</item>
		<item>
		<title>3-D Layouts using Flex 4</title>
		<link>http://balakrishnanvijay.wordpress.com/2010/07/15/3-d-layouts-using-flex-4/</link>
		<comments>http://balakrishnanvijay.wordpress.com/2010/07/15/3-d-layouts-using-flex-4/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 00:49:38 +0000</pubDate>
		<dc:creator>bala</dc:creator>
				<category><![CDATA[3-D Layouts]]></category>

		<guid isPermaLink="false">http://balakrishnanvijay.wordpress.com/?p=9</guid>
		<description><![CDATA[Laying out stuff in 3-D is a very simple task and a very rewarding one too, as it bolsters the look and the feel of your application by a great extent. As is the case with any learner, I looked up example 3-D layouts and found Ryan Campbell&#8217;s post on 3-D layouts very helpful. I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balakrishnanvijay.wordpress.com&amp;blog=14682412&amp;post=9&amp;subd=balakrishnanvijay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Laying out stuff in 3-D is a very simple task and a very rewarding one too, as it bolsters the look and the feel of your application by a great extent. As is the case with any learner, I looked up example 3-D layouts and found Ryan Campbell&#8217;s post on 3-D layouts very helpful. I based my learning of creating 3-D layouts on his app and created a few layouts of my own. [<a href="http://www.ryancampbell.com/2009/06/16/heres-5-3d-layouts-for-flex-4/">http://www.ryancampbell.com/2009/06/16/heres-5-3d-layouts-for-flex-4/</a>]</p>
<p>Heres a quick guide to laying out stuff in 3-D. (I generally display list items in 3-D; I am looking into how data from other containers can also be laid out)</p>
<p>1. UpdateDisplayList() &#8211; This is a member function of the UIComponent Class. This is a function automatically invoked when the current display list is invalidated either manually or automatically by events like addition of a new container etc. We override this function to suit our needs. It is inside this function that we set the layout 3d-matrix as per our requirements.</p>
<p>2. Projection Center &#8211; [Excerpt from Ryan's Blog - This one gave me some troubles initially until i stumbled upon this !]</p>
<p>&#8221; FP10 adds a perspectiveProjection property to the Transform class which works similar to a camera in Away3D. By default, the prespectiveProjection is set to the top left but for my layouts I need it to be the center of the container. This is easily done with the following code:</p>
<p><em>var pp:PerspectiveProjection = new PerspectiveProjection();<br />
pp.projectionCenter = new Point(container.width / 2, container.height / 2);<br />
container.transform.perspectiveProjection = pp; </em></p>
<p>Since wanting center projection is so common though, Flex 4 made this even easier by adding a maintainProjectionCenter flag to UIComponent. When the layout is attached to a container, I simply override the setter and set this property to true. &#8220;</p>
<p>Either we override the setter function of the target property or we simply execute this code in a separate method and call it while updating the display list.</p>
<p>3. Matrix3D &#8211; We create a matrix of type flash.geom.Matrix3D and add the translations and rotations required to produce output. After the necessary changes to the Matrix3D object, we set the layout matrix of the element in consideration the matrix that we have created and modified. {We set depths for each element manually as the &#8220;z&#8221; attribute of a visual element has no correlation with the depth at which it is rendered by Flash Player}</p>
<p>3. Append Translation &#8211; The append translation function takes 3 parameters, one each for the x, y and z offsets. (0,0,0) is the top left corner of your container.</p>
<p>4. Append Rotation &#8211; The append rotation function takes 2 parameters, the first specifying the angle of rotation and the second denoting the axis of rotation. Make sure that you identify the axis of rotation properly, the rotation of an object say &#8216;n&#8217; units from the axis is different from an object at &#8216;m&#8217; units. (As simple as that !!!). It also takes a third parameter (i don&#8217;t use it) &#8211; the pivotPoint, which determines the center of its rotation.</p>
<p>5. getVirtualElementAt() / getElementAt() and IVisualElement.depth / IVisualElement.layer &#8211; I use virtual element and depth although it is the other two that are given in Ryan&#8217;s source code. They did not work for me though !</p>
<p>Thats about it ! These are the basics needed to create 3-D layouts. I shall post some of the layouts that I have created in a few days.</p>
<p><span id="more-9"></span>Laying out a Card Pack in 3-D</p>
<p>Post : <a href="http://balakrishnanvijay.wordpress.com/2010/07/15/laying-out-a-card-pack-in-3-d/">http://balakrishnanvijay.wordpress.com/2010/07/15/laying-out-a-card-pack-in-3-d/</a></p>
<p>App : <a href="http://www.sujitreddyg.com/balakrishnanvijay/LayingOutACardPack/">http://www.sujitreddyg.com/balakrishnanvijay/LayingOutACardPack/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/balakrishnanvijay.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/balakrishnanvijay.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/balakrishnanvijay.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/balakrishnanvijay.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/balakrishnanvijay.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/balakrishnanvijay.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/balakrishnanvijay.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/balakrishnanvijay.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/balakrishnanvijay.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/balakrishnanvijay.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/balakrishnanvijay.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/balakrishnanvijay.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/balakrishnanvijay.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/balakrishnanvijay.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balakrishnanvijay.wordpress.com&amp;blog=14682412&amp;post=9&amp;subd=balakrishnanvijay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://balakrishnanvijay.wordpress.com/2010/07/15/3-d-layouts-using-flex-4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2fd1567b2eb2d7202d32a359a7349a6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vbalakrishnan23</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://balakrishnanvijay.wordpress.com/2010/07/14/hello-world/</link>
		<comments>http://balakrishnanvijay.wordpress.com/2010/07/14/hello-world/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 05:20:22 +0000</pubDate>
		<dc:creator>bala</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://balakrishnanvijay.wordpress.com/?p=1</guid>
		<description><![CDATA[&#60;helloworld&#62; As we wander through the infinite vector space that the internet is, we come across (more frequently these days !!) very rich-looking applications that truly give users a different experience. Welcome to the world of RIAs &#8211; the way I feel and hope every internet application goes. Adobe Flex is the most amazing SDK [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balakrishnanvijay.wordpress.com&amp;blog=14682412&amp;post=1&amp;subd=balakrishnanvijay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<p>&lt;helloworld&gt;</p>
<p>As we wander through the infinite vector space that the internet is, we come across (more frequently these days !!) very rich-looking applications that truly give users a different experience. Welcome to the world of RIAs &#8211; the way I feel and hope every internet application goes.</p>
<p>Adobe Flex is the most amazing SDK that has been created to develop RIAs and more recently RDAs (Rich Desktop Applications <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> ) and this small space here is an account of my journey and experiences as I get to learn and work on developing RIAs.</p>
<p>&lt;/helloworld&gt;</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/balakrishnanvijay.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/balakrishnanvijay.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/balakrishnanvijay.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/balakrishnanvijay.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/balakrishnanvijay.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/balakrishnanvijay.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/balakrishnanvijay.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/balakrishnanvijay.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/balakrishnanvijay.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/balakrishnanvijay.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/balakrishnanvijay.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/balakrishnanvijay.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/balakrishnanvijay.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/balakrishnanvijay.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=balakrishnanvijay.wordpress.com&amp;blog=14682412&amp;post=1&amp;subd=balakrishnanvijay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://balakrishnanvijay.wordpress.com/2010/07/14/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2fd1567b2eb2d7202d32a359a7349a6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vbalakrishnan23</media:title>
		</media:content>
	</item>
	</channel>
</rss>
