<?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>zedia flash blog &#187; uint</title>
	<atom:link href="http://www.zedia.net/tag/uint/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zedia.net</link>
	<description>Flash, ActionScript, SEO and everything in between</description>
	<lastBuildDate>Thu, 02 Feb 2012 17:58:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Tracing or tracking a uint as a Hex String in AS3</title>
		<link>http://www.zedia.net/2009/tracing-or-tracking-a-uint-as-a-hex-string-in-as3/</link>
		<comments>http://www.zedia.net/2009/tracing-or-tracking-a-uint-as-a-hex-string-in-as3/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 14:24:03 +0000</pubDate>
		<dc:creator>zedia.net</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Color]]></category>
		<category><![CDATA[hexadecimal]]></category>
		<category><![CDATA[String]]></category>
		<category><![CDATA[tracking]]></category>
		<category><![CDATA[uint]]></category>

		<guid isPermaLink="false">http://www.zedia.net/?p=328</guid>
		<description><![CDATA[I feel guilty that I haven&#8217;t written in a two weeks but I have been working on a longer article and it seems that I am limited on the number of words I can write in a week. Anyway I wanted to make a small post about this topic because I had a bit of [...]]]></description>
			<content:encoded><![CDATA[<p>I feel guilty that I haven&#8217;t written in a two weeks but I have been working on a longer article and it seems that I am limited on the number of words I can write in a week. Anyway I wanted to make a small post about this topic because I had a bit of trouble to find how to do it. When you work with colours, the common way to write a colour is to write it a has hex string to a uint; example: 0xff0000. When you trace that uint what you will get is the base 10 equivalent which is not really readable and gives no hint about what colour it is. So to solve this problem here is a quick way to convert a uint into a Hexadecimal String for tracing or tracking purpose:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> myUint:uint = 0xff000; <span style="color: #808080; font-style: italic;">// this is the colour red</span>
&nbsp;
<span style="color: #0066CC;">trace</span> <span style="color: #66cc66;">&#40;</span>myUint.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">16</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//will trace ff0000;</span></pre></div></div>

<p>My guess is that it will trace the number using 16 as a base.</p>
<p>Well that&#8217;s it for now might have more on AIR later on.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zedia.net/2009/tracing-or-tracking-a-uint-as-a-hex-string-in-as3/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

