<?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>Stuck in a for loop&#187; Tips</title>
	<atom:link href="http://blog.kazumakzak.com/tag/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.kazumakzak.com</link>
	<description>blog.kazumakzak.com</description>
	<lastBuildDate>Thu, 04 Mar 2010 10:52:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Trying out Dwarf</title>
		<link>http://blog.kazumakzak.com/2010/02/11/trying-out-dwarf/</link>
		<comments>http://blog.kazumakzak.com/2010/02/11/trying-out-dwarf/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 09:30:21 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Air]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=374</guid>
		<description><![CDATA[I just found an Adobe Air application called Dwarf. It is created by Jonnie Hallman who is a Developer at Adobe Systems. Dwarf allows you to add multiple guides and rulers directly to your desktop. This means you do not have to make a screenshot to open up in Photoshop every time you want to [...]]]></description>
			<content:encoded><![CDATA[<p>I just found an Adobe Air application called Dwarf. It is created by Jonnie Hallman who is a Developer at Adobe Systems. Dwarf allows you to add multiple guides and rulers directly to your desktop. This means you do not have to make a screenshot to open up in Photoshop every time you want to measure for example the contents on a website. In my work this is really helpful because there is a lot of pixel pushing going on.  Another thing that makes this a great tool is that almost every action can be triggered by keyboard shortcuts. I LIKE!</p>
<p>There are, however, some things I miss in Dwarf that really could make this a top notch tool.</p>
<p>- Implementation of <strong>Rule of thirds</strong> (<a href="http://en.wikipedia.org/wiki/Rule_of_thirds">http://en.wikipedia.org/wiki/Rule_of_thirds</a>)<br />
- Implementation of <strong>The Golden Ratio</strong> (<a href="http://en.wikipedia.org/wiki/Golden_ratio">http://en.wikipedia.org/wiki/Golden_ratio</a>)</p>
<p>Hope this will be implemented in a future version.</p>
<p><img src="http://blog.kazumakzak.com/wp-content/uploads/2010/02/dwarf1-1.png" alt="" title="dwarf1-1" width="550" height="473" class="alignnone size-full wp-image-385" /><br />
<img src="http://blog.kazumakzak.com/wp-content/uploads/2010/02/dwarf1-2.png" alt="" title="dwarf1-2" width="550" height="545" class="alignnone size-full wp-image-386" /></p>
<p>Download Dwarf<br />
<a href="http://github.com/destroytoday/Dwarf/downloads">http://github.com/destroytoday/Dwarf/downloads</a></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Trying+out+Dwarf+http://z2ng8.th8.us" title="Post to Twitter"><img class="nothumb" src="http://blog.kazumakzak.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.kazumakzak.com/2010/02/11/trying-out-dwarf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Mouse Scroll Wheel on textfields</title>
		<link>http://blog.kazumakzak.com/2010/02/02/disable-mouse-scroll-wheel-on-textfields/</link>
		<comments>http://blog.kazumakzak.com/2010/02/02/disable-mouse-scroll-wheel-on-textfields/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 12:21:01 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=369</guid>
		<description><![CDATA[In the project I am currently working on I got textfields that scrolled when I used the mouse wheel. To avoid this you simple disable the mouse for the textfield. textfield.mouseEnabled = false;]]></description>
			<content:encoded><![CDATA[<p>In the project I am currently working on I got textfields that scrolled when I used the mouse wheel. To avoid this you simple disable the mouse for the textfield.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">textfield</span>.<span style="color: #006600;">mouseEnabled</span> = <span style="color: #000000; font-weight: bold;">false</span>;</pre></div></div>

<p align="left"><a class="tt" href="http://twitter.com/home/?status=Disable+Mouse+Scroll+Wheel+on+textfields+http://xx362.th8.us" title="Post to Twitter"><img class="nothumb" src="http://blog.kazumakzak.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.kazumakzak.com/2010/02/02/disable-mouse-scroll-wheel-on-textfields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Breaking the conditional statement</title>
		<link>http://blog.kazumakzak.com/2009/12/13/breaking-the-conditional-statement/</link>
		<comments>http://blog.kazumakzak.com/2009/12/13/breaking-the-conditional-statement/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 18:09:40 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=348</guid>
		<description><![CDATA[I just discovered a really nice thing (thanks to Pernilla) using multiple conditions (&#038;&#038;, &#124;&#124;) in the if&#8230;else conditional statement in Actionscript. The thing I did not know (you probably did) is that the statement do not check the remaining conditions when a condition is not fulfilled. If you look at the image below you [...]]]></description>
			<content:encoded><![CDATA[<p>I just discovered a really nice thing (thanks to Pernilla) using multiple conditions (&#038;&#038;, ||) in the <strong>if&#8230;else</strong> conditional statement in Actionscript. The thing I did not know (you probably did) is that the statement do not check the remaining conditions when a condition is not fulfilled. If you look at the image below you can see that we get a crash on <strong>line 32</strong> but not on <strong>line 28</strong>. This is because we add a check to see if _userVO exists before we check the contents. We also get a crash on l<strong>ine 38</strong> because we check the conditions in the wrong order.</p>
<p><img src="http://blog.kazumakzak.com/wp-content/uploads/2009/12/Screen-shot-2009-12-13-at-12.04.22.png" alt="if else conditional statement" title="if else conditional statement" width="534" height="613" class="size-full wp-image-355" /></p>
<p>This little tip will help me save some lines of code.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Breaking+the+conditional+statement+http://eey4i.th8.us" title="Post to Twitter"><img class="nothumb" src="http://blog.kazumakzak.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.kazumakzak.com/2009/12/13/breaking-the-conditional-statement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom Ease Builder in TweenMax/TweenLite</title>
		<link>http://blog.kazumakzak.com/2009/10/01/custom-ease-builder-in-tweenmaxtweenlite/</link>
		<comments>http://blog.kazumakzak.com/2009/10/01/custom-ease-builder-in-tweenmaxtweenlite/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 08:21:42 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Talk]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=337</guid>
		<description><![CDATA[Create your own custom easing equation: http://blog.greensock.com/customease/]]></description>
			<content:encoded><![CDATA[<p>Create your own custom easing equation:<br />
<a href="http://blog.greensock.com/customease/">http://blog.greensock.com/customease/</a></p>
<p><img src="http://blog.kazumakzak.com/wp-content/uploads/2009/10/Screen-shot-2009-10-01-at-10.20.03.png" alt="Custom Ease Builder" title="Custom Ease Builder" width="550" height="600" class="alignnone size-full wp-image-343" /></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Custom+Ease+Builder+in+TweenMax%2FTweenLite+http://h8b64.th8.us" title="Post to Twitter"><img class="nothumb" src="http://blog.kazumakzak.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.kazumakzak.com/2009/10/01/custom-ease-builder-in-tweenmaxtweenlite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix smoothing bug on scaled bitmaps</title>
		<link>http://blog.kazumakzak.com/2009/06/25/fix-smoothing-bug-on-scaled-bitmaps/</link>
		<comments>http://blog.kazumakzak.com/2009/06/25/fix-smoothing-bug-on-scaled-bitmaps/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 11:43:39 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Talk]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=319</guid>
		<description><![CDATA[Every time you change the bitmapData source for a Bitmap you also need to set the smoothing property on your Bitmap to true (if you want the bitmap to use smoothing). var bitmap : Bitmap = new Bitmap&#40;&#41;; bitmap.smoothing = true; trace&#40;bitmap.smoothing&#41;; // true bitmap.bitmapData = new BitmapData&#40;320, 240&#41;; trace&#40;bitmap.smoothing&#41;; // false]]></description>
			<content:encoded><![CDATA[<p>Every time you change the bitmapData source for a Bitmap you also need to set the smoothing property on your Bitmap to true (if you want the bitmap to use smoothing).</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> bitmap : Bitmap = <span style="color: #000000; font-weight: bold;">new</span> Bitmap<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
bitmap.<span style="color: #0066CC;">smoothing</span> = <span style="color: #000000; font-weight: bold;">true</span>;
<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>bitmap.<span style="color: #0066CC;">smoothing</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// true</span>
bitmap.<span style="color: #006600;">bitmapData</span> = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">320</span>, <span style="color: #cc66cc;">240</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>bitmap.<span style="color: #0066CC;">smoothing</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// false</span></pre></div></div>

<p align="left"><a class="tt" href="http://twitter.com/home/?status=Fix+smoothing+bug+on+scaled+bitmaps+http://en7nz.th8.us" title="Post to Twitter"><img class="nothumb" src="http://blog.kazumakzak.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.kazumakzak.com/2009/06/25/fix-smoothing-bug-on-scaled-bitmaps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xml line break issue in Flash</title>
		<link>http://blog.kazumakzak.com/2009/05/19/xml-line-break-issue-in-flash/</link>
		<comments>http://blog.kazumakzak.com/2009/05/19/xml-line-break-issue-in-flash/#comments</comments>
		<pubDate>Tue, 19 May 2009 21:08:32 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Xml]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=309</guid>
		<description><![CDATA[I got some xml text line break issues in my latest project. The texts look good viewing them locally, but when uploading the project to the customer server I get a lot of extra line breaks. I am not really sure why this problem occurs but I guess it has to do with the server platform. I [...]]]></description>
			<content:encoded><![CDATA[<p>I got some xml text line break issues in my latest project. The texts look good viewing them locally, but when uploading the project to the customer server I get a lot of extra line breaks. I am not really sure why this problem occurs but I guess it has to do with the server platform. I tried to save the xml with a different encoding but with no luck so I wrote this simple method. It works. </p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> fixLineBreakIssues<span style="color: #66cc66;">&#40;</span>value : <span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span> : <span style="color: #0066CC;">String</span>
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #b1b100;">return</span> value.<span style="color: #0066CC;">split</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\r</span>&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">join</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">// usage</span>
txtField.<span style="color: #0066CC;">htmlText</span> = fixLineBreakIssues<span style="color: #66cc66;">&#40;</span>xmlText<span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p align="left"><a class="tt" href="http://twitter.com/home/?status=Xml+line+break+issue+in+Flash+http://zx4ck.th8.us" title="Post to Twitter"><img class="nothumb" src="http://blog.kazumakzak.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.kazumakzak.com/2009/05/19/xml-line-break-issue-in-flash/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to disable the HTML wrapper file in Flex</title>
		<link>http://blog.kazumakzak.com/2009/04/15/how-to-disable-the-html-wrapper-file-in-flex/</link>
		<comments>http://blog.kazumakzak.com/2009/04/15/how-to-disable-the-html-wrapper-file-in-flex/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 07:51:28 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Talk]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=281</guid>
		<description><![CDATA[Flexbuilder generates a HTML wrapper file by default when you run your projects. I usually turn it off while developing to save some time waiting on my browser to reload the HTML file. After disabling this setting, your application will be launched within the standalone flash player.  Open the project properties, and select Flex Compiler properties. [...]]]></description>
			<content:encoded><![CDATA[<p>Flexbuilder generates a HTML wrapper file by default when you run your projects. I usually turn it off while developing to save some time waiting on my browser to reload the HTML file. After disabling this setting, your application will be launched within the standalone flash player. </p>
<p><em>Open the project properties, and select Flex Compiler properties.</em></p>
<p><img class="alignnone size-full wp-image-282" title="picture-98" src="http://blog.kazumakzak.com/wp-content/uploads/2009/04/picture-98.png" alt="picture-98" width="550" height="714" /></p>
<p> </p>
<p><em>Uncheck </em><strong><em>Generate HTML wrapper file</em></strong><em>.<br />
</em> <img class="alignnone size-medium wp-image-289" title="picture-1001" src="http://blog.kazumakzak.com/wp-content/uploads/2009/04/picture-1001-550x522.png" alt="picture-1001" width="550" height="522" /></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=How+to+disable+the+HTML+wrapper+file+in+Flex+http://obgn2.th8.us" title="Post to Twitter"><img class="nothumb" src="http://blog.kazumakzak.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.kazumakzak.com/2009/04/15/how-to-disable-the-html-wrapper-file-in-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making large numbers look good</title>
		<link>http://blog.kazumakzak.com/2009/04/14/making-large-numbers-look-good/</link>
		<comments>http://blog.kazumakzak.com/2009/04/14/making-large-numbers-look-good/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 15:41:59 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=263</guid>
		<description><![CDATA[Commas or spaces can be used to make reading numbers a little easier. They are placed every 3 decimal places for numbers comprising 4 digits or more. I wrote a AS3 method that returns the nicer format. $1000000 $1 000 000 public static function separateByThousand&#40;valueNumber : Number, splitter : String = &#34; &#34;&#41; : String [...]]]></description>
			<content:encoded><![CDATA[<p>Commas or spaces can be used to make reading numbers a little easier. They are placed every 3 decimal places for numbers comprising 4 digits or more. I wrote a AS3 method that returns the nicer format.</p>
<p><strong><span style="text-decoration: line-through;">$1000000</span><br />
$1 000 000</strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">public</span> <span style="color: #0066CC;">static</span> <span style="color: #000000; font-weight: bold;">function</span> separateByThousand<span style="color: #66cc66;">&#40;</span>valueNumber : <span style="color: #0066CC;">Number</span>, splitter : <span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot; &quot;</span><span style="color: #66cc66;">&#41;</span> : <span style="color: #0066CC;">String</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> valueString : <span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;&quot;</span>;
	<span style="color: #000000; font-weight: bold;">var</span> valueLength : <span style="color: #0066CC;">Number</span> = valueNumber.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">length</span>;
&nbsp;
	<span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i : <span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&lt;</span> valueLength ; i++<span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>valueLength-i<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">%</span>3 == <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&amp;&amp;</span> i <span style="color: #66cc66;">!</span>= <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>
			valueString += splitter;
		valueString += valueNumber.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">charAt</span><span style="color: #66cc66;">&#40;</span>i<span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
&nbsp;
	<span style="color: #b1b100;">return</span> valueString;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>separateByThousand(1000) //1 000<br />
separateByThousand(100000) //100 000<br />
separateByThousand(1000000) //1 000 000<br />
separateByThousand(1000000,&#8221;,&#8221;) //1,000,000</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Making+large+numbers+look+good+http://fzap3.th8.us" title="Post to Twitter"><img class="nothumb" src="http://blog.kazumakzak.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.kazumakzak.com/2009/04/14/making-large-numbers-look-good/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force decimals with .toFixed()</title>
		<link>http://blog.kazumakzak.com/2009/04/03/force-decimals-with-tofixed/</link>
		<comments>http://blog.kazumakzak.com/2009/04/03/force-decimals-with-tofixed/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 07:45:10 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Talk]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=244</guid>
		<description><![CDATA[I have missed that AS3 have a built in support for fixed point notations. This means that you can choose the number of decimals you want to output. Great! var num:Number = 7.31343; trace&#40;num.toFixed&#40;3&#41;&#41;; // 7.313 &#160; var num:Number = 4; trace&#40;num.toFixed&#40;2&#41;&#41;; // 4.00 Found at livedocs]]></description>
			<content:encoded><![CDATA[<p>I have missed that AS3 have a built in support for fixed point notations. This means that you can choose the number of decimals you want to output. Great!</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> num:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;">7.31343</span>;
<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>num.<span style="color: #006600;">toFixed</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// 7.313</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> num:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;">4</span>;
<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>num.<span style="color: #006600;">toFixed</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// 4.00</span></pre></div></div>

<p><a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/uint.html#toFixed()" target="_blank">Found at livedocs</a></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Force+decimals+with+.toFixed%28%29+http://dqhc8.th8.us" title="Post to Twitter"><img class="nothumb" src="http://blog.kazumakzak.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.kazumakzak.com/2009/04/03/force-decimals-with-tofixed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Merging XML files</title>
		<link>http://blog.kazumakzak.com/2009/04/02/merging-xml-files/</link>
		<comments>http://blog.kazumakzak.com/2009/04/02/merging-xml-files/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 11:11:21 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Talk]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=238</guid>
		<description><![CDATA[My friend Fredrick at undefined-type.com blogged about a really smart (lazy) and easy way of merging xmlfiles. Check it out here]]></description>
			<content:encoded><![CDATA[<p>My friend Fredrick at <a href="http://undefined-type.com" target="_blank">undefined-type.com</a> blogged about a really smart (lazy) and easy way of merging xmlfiles.</p>
<p><a href="http://undefined-type.com/2009/03/xml-in-production-lazy/" target="_blank">Check it out here</a></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Merging+XML+files+http://ti3x9.th8.us" title="Post to Twitter"><img class="nothumb" src="http://blog.kazumakzak.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.kazumakzak.com/2009/04/02/merging-xml-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->