<?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>FlexOut &#187; random</title>
	<atom:link href="http://flex.exposedout.net/tag/random/feed/" rel="self" type="application/rss+xml" />
	<link>http://flex.exposedout.net</link>
	<description>i am an itemrendrer in the making!</description>
	<lastBuildDate>Fri, 13 May 2011 10:05:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Random color generator</title>
		<link>http://flex.exposedout.net/2010/05/18/random-color-generator/</link>
		<comments>http://flex.exposedout.net/2010/05/18/random-color-generator/#comments</comments>
		<pubDate>Tue, 18 May 2010 07:03:53 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[colorTransform]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[random color]]></category>

		<guid isPermaLink="false">http://flex.exposedout.net/?p=273</guid>
		<description><![CDATA[I am sure there were many times in the past that you would have wanted to have a function that could return you random colors. Well at least i have faced this problem many times, Mostly when i am giving a demo for a new component which deals with various color ranges. Following is the [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>I am sure there were many times in the past that you would have wanted to have a function that could return you random colors. Well at least i have faced this problem many times, Mostly when i am giving a demo for a new component which deals with various color ranges.</p>
<p>Following is the code to generate Random colors:</p>
<div class="codecolorer-container actionscript mac-classic" 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 /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> redBias:<span style="color: #0066CC;">Number</span> = 0xFF;<br />
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> greenBias:<span style="color: #0066CC;">Number</span> = 0xFF;<br />
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> blueBias:<span style="color: #0066CC;">Number</span> = 0xFF;<br />
<br />
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> getRandomColor<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:uint<span style="color: #66cc66;">&#123;</span><br />
<span style="color: #000000; font-weight: bold;">var</span> ct:ColorTransform = <span style="color: #000000; font-weight: bold;">new</span> ColorTransform<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">1</span>,<span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">*</span>redBias, <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">*</span>greenBias, <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">*</span>blueBias<span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">color</span>:uint = ct.<span style="color: #0066CC;">color</span>;<br />
<span style="color: #b1b100;">return</span> <span style="color: #0066CC;">color</span>;<br />
<span style="color: #66cc66;">&#125;</span></div></td></tr></tbody></table></div>
<p>you can also modify the above code to return you a  range in a specific color range this can be done by making any 2 colors constant instead of using a  random number. Well then enjoy the code and do post in any new cool things that you can do with this piece of code.</p>
<p>for more know-how read the following post : <a href="http://www.few.vu.nl/~eliens/assets/flex3/langref/flash/geom/ColorTransform.html">ColorTransform</a></p>
<input id="gwProxy" type="hidden" />
<input id="jsProxy" onclick="jsCall();" type="hidden" />


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2010/05/18/random-color-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>doing nothing!</title>
		<link>http://flex.exposedout.net/2009/09/25/doing-nothing/</link>
		<comments>http://flex.exposedout.net/2009/09/25/doing-nothing/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 08:24:23 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://flex.exposedout.net/?p=237</guid>
		<description><![CDATA[I got the Swine flu :( well was browsing through a few examples and saw a datagrid pagination example. check it out  here. No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p><strong>I got the Swine flu :(</strong></p>
<p>well was browsing through a few examples and saw a datagrid pagination example.<a href="http://gurufaction.blogspot.com/2007/02/flex-datagrid-paging-example-with.html" target="_blank"></a></p>
<p>check it out <a href="http://gurufaction.blogspot.com/2007/02/flex-datagrid-paging-example-with.html" target="_blank"> here.</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2009/09/25/doing-nothing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

