<?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; Coding</title>
	<atom:link href="http://blog.kazumakzak.com/category/coding/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>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>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>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>Using keyboard keycodes in Actionscript</title>
		<link>http://blog.kazumakzak.com/2009/04/07/actionscript-keyboard-keycodes/</link>
		<comments>http://blog.kazumakzak.com/2009/04/07/actionscript-keyboard-keycodes/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 21:15:32 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=249</guid>
		<description><![CDATA[It is hard to remember the whole ASCII key list when listening to keyboard events in Flash Actionscript. Example: 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_keycodes_942207387"
			class="flashmovie"
			width="550"
			height="250">
	<param name="movie" value="http://labs.kazumakzak.com/keycodes.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://labs.kazumakzak.com/keycodes.swf"
			name="fm_keycodes_942207387"
			width="550"
			height="250">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object> I usually use the Keyboard Class (flash.ui.Keyboard) when tracking keyboard inputs but it does not contain all the keys you may want to use. Instead of googling tables with Keyboard keycodes [...]]]></description>
			<content:encoded><![CDATA[<p>It is hard to remember the whole <a href="http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#038;file=00001136.html">ASCII key list</a> when listening to keyboard events in Flash Actionscript.</p>
<p>Example:<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_keycodes_847018237"
			class="flashmovie"
			width="550"
			height="250">
	<param name="movie" value="http://labs.kazumakzak.com/keycodes.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://labs.kazumakzak.com/keycodes.swf"
			name="fm_keycodes_847018237"
			width="550"
			height="250">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>I usually use the <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ui/Keyboard.html" target="_blank">Keyboard Class</a> (flash.ui.Keyboard) when tracking keyboard inputs but it does not contain all the keys you may want to use. Instead of googling tables with <a href="http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#038;file=00001136.html" target="_blank">Keyboard keycodes</a> I made this SWF to get quick access to the codes via the <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/KeyboardEvent.html">KeyboardEvent</a> (flash.events.KeyboardEvent) class.</p>
<p><img class="alignnone size-full wp-image-257" title="picture-96" src="http://blog.kazumakzak.com/wp-content/uploads/2009/04/picture-96.png" alt="picture-96" width="507" height="317" /></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Using+keyboard+keycodes+in+Actionscript+http://gtt4q.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/07/actionscript-keyboard-keycodes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use Motor2 0.9 in Flash player 9</title>
		<link>http://blog.kazumakzak.com/2009/01/21/how-to-use-motor2-09-in-flash-player-9/</link>
		<comments>http://blog.kazumakzak.com/2009/01/21/how-to-use-motor2-09-in-flash-player-9/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 22:14:17 +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[Motor2]]></category>
		<category><![CDATA[Physics]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=165</guid>
		<description><![CDATA[The latest release of Motor2 is using the Vectors class which means you have to compile your files for Flash player 10. If you for some reason don&#8217;t want to change to FP10, Michael (developer of Motor2) has the solution: replace all Vector occurrences with Arrays http://groups.google.com/group/motor2/browse_thread/thread/182291562d7dfd9a]]></description>
			<content:encoded><![CDATA[<p>The latest release of Motor2 is using the Vectors class which means you have to compile your files for Flash player 10. If you for <a href="http://www.adobe.com/products/player_census/flashplayer/version_penetration.html" target="_blank">some reason</a> don&#8217;t want to change to FP10, Michael (developer of Motor2) has the solution:</p>
<p><strong>replace all Vector occurrences with A</strong><strong>rrays</strong><br />
<a href="http://groups.google.com/group/motor2/browse_thread/thread/182291562d7dfd9a">http://groups.google.com/group/motor2/browse_thread/thread/182291562d7dfd9a</a></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=How+to+use+Motor2+0.9+in+Flash+player+9+http://ayaam.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/01/21/how-to-use-motor2-09-in-flash-player-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the Finite State Machine in Actionscript</title>
		<link>http://blog.kazumakzak.com/2009/01/11/using-the-finite-state-machine-in-actionscript/</link>
		<comments>http://blog.kazumakzak.com/2009/01/11/using-the-finite-state-machine-in-actionscript/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 20:58:36 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Finite State Machine]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=148</guid>
		<description><![CDATA[I have been reading some blog posts on how to use a Finite State Machine (FSM) in game development. According to Wikipedia, a FSM is a model of behavior composed of a finite number of states, transitions between those states, and actions. Richard Lord wrote a post about FSM in Actionscript and I am thinking [...]]]></description>
			<content:encoded><![CDATA[<p>I have been reading some blog posts on how to use a Finite State Machine (FSM) in game development. According to <a href="http://en.wikipedia.org/wiki/Finite_state_machine" target="_blank">Wikipedia</a>, a FSM is a model of behavior composed of a finite number of states, transitions between those states, and actions. Richard Lord wrote a post about <a href="http://www.bigroom.co.uk/blog/finite-state-machines-for-ai-in-actionscript" target="_blank">FSM in Actionscript</a> and I am thinking of trying it out in my next game. I usually use a control class for the methods controlling a character but in complex games they attend to grow and become hard to keep track of. Using a FSM might (will) solve my problem and may even generate some good reusable states.</p>
<p>What the hell, I will try it out! I´ll keep you posted about the progress.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Using+the+Finite+State+Machine+in+Actionscript+http://ityos.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/01/11/using-the-finite-state-machine-in-actionscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Motor2 version 0.9 is released</title>
		<link>http://blog.kazumakzak.com/2008/12/30/motor2-version-09-is-released/</link>
		<comments>http://blog.kazumakzak.com/2008/12/30/motor2-version-09-is-released/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 22:44:13 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Talk]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Motor2]]></category>
		<category><![CDATA[Physics]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=144</guid>
		<description><![CDATA[Motor2 version 0.9 is released and can be downloaded here: http://code.google.com/p/motor2/downloads/list Take a look at the changelog: http://code.google.com/p/motor2/wiki/Changelog]]></description>
			<content:encoded><![CDATA[<p>Motor2 version 0.9 is released and can be downloaded here:<br />
<a href="http://code.google.com/p/motor2/downloads/list" target="_blank">http://code.google.com/p/motor2/downloads/list</a></p>
<p>Take a look at the changelog:<br />
<a href="http://code.google.com/p/motor2/wiki/Changelog" target="_blank">http://code.google.com/p/motor2/wiki/Changelog</a></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Motor2+version+0.9+is+released+http://daxce.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/2008/12/30/motor2-version-09-is-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Looking forward to the Motor2 update</title>
		<link>http://blog.kazumakzak.com/2008/12/18/looking-forward-to-the-motor2-update/</link>
		<comments>http://blog.kazumakzak.com/2008/12/18/looking-forward-to-the-motor2-update/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 01:25:27 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Talk]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Motor2]]></category>
		<category><![CDATA[Physics]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=132</guid>
		<description><![CDATA[I have been working on a skateboard game at work using the Motor2 physics engine. I am looking forward to the feature where you can change the groupIndex (used for collisions) runtime to be able to use the rails I have set up in the world. Michael who develops the Motor2 engine says he will [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working on a skateboard game at work using the Motor2 physics engine. I am looking forward to the feature where you can change the groupIndex (used for collisions) runtime to be able to use the rails I have set up in the world. Michael who develops the Motor2 engine says he will soon  release a new version. Really great. Eventually I´ll share some code and screenshots from the game. </p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Looking+forward+to+the+Motor2+update+http://fb6cn.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/2008/12/18/looking-forward-to-the-motor2-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Export scripted Flash animation to Quicktime</title>
		<link>http://blog.kazumakzak.com/2008/12/10/export-scripted-flash-animation-to-quicktime/</link>
		<comments>http://blog.kazumakzak.com/2008/12/10/export-scripted-flash-animation-to-quicktime/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 17:52:53 +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[Video]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=101</guid>
		<description><![CDATA[One problem when exporting scripted animations to video is that the overall animation is not finished at the last keyframe in main timeline. This could result in a video where the animation is cut before it is finished. I found out you can export your animation based on time rather than timeline frames. This video [...]]]></description>
			<content:encoded><![CDATA[<p>One problem when exporting scripted animations to video is that the overall animation is not finished at the last keyframe in main timeline. This could result in a video where the animation is cut before it is finished. I found out you can export your animation based on time rather than timeline frames.</p>
<p><a href="http://www.layersmagazine.com/flash-to-video.html" target="_blank">This video tutorial</a> from <a href="http://www.layersmagazine.com" target="_blank">Layer Magazine</a> explains how to export a scripted animation to Quicktime format (mov) directly from Adobe Flash CS. I don&#8217;t understand why they made such a long video tutorial because the only important thing is the export settings.</p>
<p><a href="http://blog.kazumakzak.com/wp-content/uploads/2008/12/export_to_mov_2_menu.jpg" rel="lightbox[101]"><img class="size-medium wp-image-103 alignnone" title="export_to_mov_2_menu" src="http://blog.kazumakzak.com/wp-content/uploads/2008/12/export_to_mov_2_menu-550x516.jpg" alt="" width="550" height="516" /><br />
</a>File &gt; Export &gt; Export Movie</p>
<p><a href="http://blog.kazumakzak.com/wp-content/uploads/2008/12/export_to_mov_3_format.jpg" rel="lightbox[101]"><img class="size-medium wp-image-104 alignnone" title="export_to_mov_3_format" src="http://blog.kazumakzak.com/wp-content/uploads/2008/12/export_to_mov_3_format-550x516.jpg" alt="" width="550" height="516" /><br />
</a>Select the Quicktime format</p>
<p><a href="http://blog.kazumakzak.com/wp-content/uploads/2008/12/export_to_mov_4_settings.jpg" rel="lightbox[101]"><img class="size-medium wp-image-105 alignnone" title="export_to_mov_4_settings" src="http://blog.kazumakzak.com/wp-content/uploads/2008/12/export_to_mov_4_settings-550x516.jpg" alt="" width="550" height="516" /><br />
</a>Stop exporting &#8220;After time elapsed [time]&#8220;.</p>
<p><a href="http://blog.kazumakzak.com/wp-content/uploads/2008/12/test_export_mov.mov">Watch is the result (1.4 Mb)</a></p>
<p>(I used Adobe Flash CS4 for this example but it works just as well in CS3).</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Export+scripted+Flash+animation+to+Quicktime+http://bd98q.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/2008/12/10/export-scripted-flash-animation-to-quicktime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://blog.kazumakzak.com/wp-content/uploads/2008/12/test_export_mov.mov" length="1422559" type="video/quicktime" />
		</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! -->