<?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/category/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>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>Hexosearch &#8211; actionscript search engine</title>
		<link>http://blog.kazumakzak.com/2009/05/18/hexosearch-actionscript-search-engine/</link>
		<comments>http://blog.kazumakzak.com/2009/05/18/hexosearch-actionscript-search-engine/#comments</comments>
		<pubDate>Mon, 18 May 2009 18:53:25 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Talk]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=306</guid>
		<description><![CDATA[I stumbled upon a this new search engine dedicated to Actionscript. Pretty neat. www.hexosearch.com]]></description>
			<content:encoded><![CDATA[<p>I stumbled upon a this new search engine dedicated to Actionscript.<br />
Pretty neat.</p>
<p><a href="http://www.hexosearch.com" target="_blank">www.hexosearch.com</a></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Hexosearch+%E2%80%93+actionscript+search+engine+http://epgkt.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/18/hexosearch-actionscript-search-engine/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>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_1720914555"
			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_1720914555"
			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_1996191840"
			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_1996191840"
			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>import PSD into Flash: Layer transparency problem</title>
		<link>http://blog.kazumakzak.com/2008/12/11/psd-import-in-flash/</link>
		<comments>http://blog.kazumakzak.com/2008/12/11/psd-import-in-flash/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 07:10:24 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=96</guid>
		<description><![CDATA[Since I found out you can import Adobe Photoshop PSD files directly into Flash all external image updates have been a lot easier. The import function lets you choose options for each layer and you can choose what layers in the file you want to import. When you want to import layers containing transparency, any [...]]]></description>
			<content:encoded><![CDATA[<p>Since I found out you can import Adobe Photoshop PSD files directly into Flash all external image updates have been a lot easier. The import function lets you choose options for each layer and you can choose what layers in the file you want to import.</p>
<p>When you want to import layers containing transparency, any objects on the layers behind the transparent portion of the object will be visible through the transparent area. To prevent this, import the transparent layer as <strong>&#8220;Bitmap image with editable layer styles&#8221;</strong>.</p>
<p><a href="http://blog.kazumakzak.com/wp-content/uploads/2008/12/psd-import-1.jpg" rel="lightbox[96]"><img class="alignnone size-medium wp-image-99" title="psd-import-1" src="http://blog.kazumakzak.com/wp-content/uploads/2008/12/psd-import-1-550x496.jpg" alt="" width="550" height="496" /></a></p>
<p>One feature I would like is that Flash should overwrite the images on the second import. As it is now, you need to copy the library items from the second import to the first manually.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=import+PSD+into+Flash%3A+Layer+transparency+problem+http://y7z56.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/11/psd-import-in-flash/feed/</wfw:commentRss>
		<slash:comments>1</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! -->