<?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; code</title>
	<atom:link href="http://blog.kazumakzak.com/tag/code/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>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>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>Flex Builder 3 problems on Mac OS X 10.6</title>
		<link>http://blog.kazumakzak.com/2009/09/18/flex-builder-3-problems-on-mac-os-x-10-6/</link>
		<comments>http://blog.kazumakzak.com/2009/09/18/flex-builder-3-problems-on-mac-os-x-10-6/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 09:38:31 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Talk]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=327</guid>
		<description><![CDATA[Since upgrading to Snow Leopard (Mac OS X 10.6) on my Mac I have had some problems with Flex Builder. The most irritating problem is that the right (and left) column that highlights class errors are not updating correctly. I realised that this only happens if I use Flexbuilder on my external monitor. However &#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>Since upgrading to Snow Leopard (Mac OS X 10.6) on my Mac I have had some problems with Flex Builder. The most irritating problem is that the right (and left) column that highlights class errors are not updating correctly.</p>
<p><img src="http://blog.kazumakzak.com/wp-content/uploads/2009/09/Screen-shot-2009-09-18-at-11.09.52-550x376.jpg" alt="Screen-shot-2009-09-18-at-11.09.52" title="Screen-shot-2009-09-18-at-11.09.52" width="550" height="376" class="alignnone size-medium wp-image-331" /></p>
<p>I realised that this only happens if I use Flexbuilder on my external monitor. However &#8230; if I resize the window of Flex Builder it updates correctly. Really strange. </p>
<p>Solutions?</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Flex+Builder+3+problems+on+Mac+OS+X+10.6+http://h2ai2.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/09/18/flex-builder-3-problems-on-mac-os-x-10-6/feed/</wfw:commentRss>
		<slash:comments>2</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>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>
	</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! -->