<?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>mclelun &#187; ActionScript3</title>
	<atom:link href="http://www.mclelun.com/blog/tag/actionscript3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mclelun.com/blog</link>
	<description>I am a colorblind multimedia designer + developer</description>
	<lastBuildDate>Tue, 31 Jan 2012 14:36:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Mahjong Memory Game</title>
		<link>http://www.mclelun.com/blog/2012/01/mahjong-memory-game/</link>
		<comments>http://www.mclelun.com/blog/2012/01/mahjong-memory-game/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 06:59:32 +0000</pubDate>
		<dc:creator>mclelun</dc:creator>
				<category><![CDATA[Art and Design]]></category>
		<category><![CDATA[Scripting and Coding]]></category>
		<category><![CDATA[ActionScript3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Pixel]]></category>

		<guid isPermaLink="false">http://www.mclelun.com/blog/?p=245</guid>
		<description><![CDATA[I have an idea to develop this memory game after watching a variety show on TV few weeks ago. It is a simple game, where you click on the numbers in ascending order. Game Art As it is Chinese New Year right now, I decide to develop this game with new year festive theme, and [...]]]></description>
			<content:encoded><![CDATA[<p>I have an idea to develop this memory game after watching a variety show on TV few weeks ago. It is a simple game, where you click on the numbers in ascending order.</p>
<p><span id="more-245"></span></p>
<h3>Game Art</h3>
<p>As it is Chinese New Year right now, I decide to develop this game with new year festive theme, and using Mahjong as the puzzle tiles. If you are not familiar with Mahjong, you can use to the image below as a quick reference.</p>
<p><img src="http://www.mclelun.com/img/blog/120129_memnum_02.gif" alt="mah jong" /></p>
<p>The Mahjong tile pattern was originally draw by Jerry Crimson Mann. But I need a 3D rotating Mahjong tile for my game, so I quickly model a low poly Mahjong in Blender and render the rotation sequence. Then, some final touch up was done in Photoshop to give it a pixel art feel.</p>
<p><img src="http://www.mclelun.com/img/blog/120129_memnum_03.gif" alt="mah jong" /></p>
<h3>Play The Game</h3>
<p>A sequence of numbers will be shown for a brief seconds. Remember it and click them in ascending order. You can play “<a href="http://www.mclelun.com/labs/#as3memnum" title="Mahjong Memory Game" target="_blank">Mahjong Memory Game</a>” in my labs page.</p>
<p><a href="http://www.mclelun.com/labs/#as3memnum" title="Mahjong Memory Game" target="_blank"><img src="http://www.mclelun.com/img/blog/120129_memnum_01.gif" alt="mahjong memory game" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mclelun.com/blog/2012/01/mahjong-memory-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash XML RPG Dialogue</title>
		<link>http://www.mclelun.com/blog/2011/10/flash-xml-rpg-dialogue/</link>
		<comments>http://www.mclelun.com/blog/2011/10/flash-xml-rpg-dialogue/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 06:50:37 +0000</pubDate>
		<dc:creator>mclelun</dc:creator>
				<category><![CDATA[Scripting and Coding]]></category>
		<category><![CDATA[ActionScript3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Pixel]]></category>

		<guid isPermaLink="false">http://www.mclelun.com/blog/?p=236</guid>
		<description><![CDATA[I always have this idea of developing a RPG dialogue system using XML, because I believe it will cut down development time if it is implement correctly. For example, the quest/dialogue can be update by game designers while the programmers can spend their time on other features. It can also use for localization purpose as [...]]]></description>
			<content:encoded><![CDATA[<p>I always have this idea of developing a RPG dialogue system using XML, because I believe it will cut down development time if it is implement correctly. For example, the quest/dialogue can be update by game designers while the programmers can spend their time on other features. It can also use for localization purpose as well.</p>
<p><span id="more-236"></span></p>
<p>The idea of loading data dynamically is not new in game development. Peoples had been doing it since long time ago with a more sophisticated approach. They develop in-house tool where the user just draw some flow charts, or even implement a scripting interface for the designers to code the quest logic. The Flash I did here is still in early stage and basic.</p>
<h3>View the Flash</h3>
<p>Click on the image to view this basic <a href="http://www.mclelun.com/labs/#as3dialog" title="RPG dialogue" target="_blank">XML RPG dialogue system</a>. Instructions are found on the page. You can view the <a href="http://www.mclelun.com/conlabs/as3dialog/dialog_en.xml" alt="XML Dialogue">XML file here</a>.</p>
<p><a href="http://www.mclelun.com/labs/#as3dialog" title="RPG dialogue" target="_blank"><img src="http://www.mclelun.com/img/blog/111101_xmldialog_01.jpg" alt="Flash RPG" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mclelun.com/blog/2011/10/flash-xml-rpg-dialogue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FlashDevelop Stage3D Away3D</title>
		<link>http://www.mclelun.com/blog/2011/08/flashdevelop-stage3d-away3d/</link>
		<comments>http://www.mclelun.com/blog/2011/08/flashdevelop-stage3d-away3d/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 18:58:19 +0000</pubDate>
		<dc:creator>mclelun</dc:creator>
				<category><![CDATA[Scripting and Coding]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[ActionScript3]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.mclelun.com/blog/?p=206</guid>
		<description><![CDATA[Adobe just released Flash Player 11 beta 2 earlier this month and their &#8220;Molehill&#8221; 3D API is now known as &#8220;Stage 3D&#8220;. My old blog entry about setting up Flash Player Incubator with Away3D and Molehill is not applicable now, so I have to write a new entry on this topic. Install Flash Player 11 [...]]]></description>
			<content:encoded><![CDATA[<p>Adobe just released <a title="Flash Player 11 Beta " href="http://labs.adobe.com/technologies/flashplatformruntimes/flashplayer11/" target="_blank">Flash Player 11 beta 2</a> earlier this month and their &#8220;Molehill&#8221; 3D API is now known as &#8220;<a title="Stage 3D" href="http://labs.adobe.com/technologies/flashplatformruntimes/features/stage3d.html" target="_blank">Stage 3D</a>&#8220;. My old blog entry about setting up <a title="Flash Molehill" href="http://www.mclelun.com/blog/2011/03/flashdevelop-molehill-away3d/" target="_blank">Flash Player Incubator with Away3D and Molehill</a> is not applicable now, so I have to write a new entry on this topic.</p>
<p><span id="more-206"></span></p>
<h3>Install Flash Player 11 Beta 2</h3>
<p>To view Flash Stage 3D content, you will need to install the beta version of flash player 11.</p>
<ul>
<li>Download and install <a title="Flash Player 11 Beta 2" href="http://labs.adobe.com/downloads/flashplayer11.html" target="_blank">Flash Player 11 Beta 2</a>.</li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110825_stage3d_00.jpg" alt="flash stage3d" /></p>
<h3>Setup FlashDevelop 4 with Flex 4.5 and Away3D 4</h3>
<p>To publish Flash Stage3D content, you will need the new Flex 4.5 SDK. In my case, I will be using FlashDevelop 4 and Away3D 4.</p>
<ul>
<li>Download and install <a href="http://www.java.com/en/download/" target="_blank">Java runtime</a>.</li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110825_stage3d_01.jpg" alt="flash stage3d" /></p>
<ul>
<li>Download and install <a href="http://www.flashdevelop.org/community/viewtopic.php?f=11&amp;t=8421" target="_blank">FlashDevelop 3.3.4</a></li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110825_stage3d_02.jpg" alt="flash stage3d" /></p>
<ul>
<li>Download and extract <a title="Flex 4.5 SDK" href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4.5" target="_blank">Flex 4.5 SDK</a>. When you installing FlashDevelop 4, It will give you an option download this SDK too.</li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110825_stage3d_03.jpg" alt="flash stage3d" /></p>
<ul>
<li>Download and extract <a title="Away3D Core FP11" href="https://github.com/away3d/away3d-core-fp11" target="_blank">Away3D Core FP11</a></li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110825_stage3d_04.jpg" alt="flash stage3d" /></p>
<ul>
<li>Download <a href="http://labs.adobe.com/downloads/flashplayer11.html" target="_blank">flashplayer11_b2_playerglobal_080811.swc</a> and rename it to <strong>playerglobal.swc</strong></li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110825_stage3d_05.jpg" alt="flash stage3d" /></p>
<ul>
<li>Copy <strong>playerglobal.swc</strong> to <strong>[Flex 4.5 SDK Path]frameworks&gt;libs&gt;player&gt;11.0</strong> folder. FlashDevelop 4 will create this folder for you when setting up, if not create the folder and put the SWC here.</li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110825_stage3d_06.jpg" alt="flash stage3d" /></p>
<ul>
<li>Download and extract <a title="Away3D Core FP11 Examples" href="https://github.com/away3d/away3d-examples-broomstick" target="_blank">Away3D Core FP11 Examples</a></li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110825_stage3d_07.jpg" alt="flash stage3d" /></p>
<ul>
<li>Launch FlashDevelop and start a new AS3 Flex 4 Project. Set your project folder to Away3D examples folder you extract earlier. A warning message about folder not empty and template files will pop up, click OK to copy them. FlashDevelop will then generate the index file for you.</li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110825_stage3d_08.jpg" alt="flash stage3d" /></p>
<ul>
<li>Go to <strong>Tools&gt;Program Settings&gt;AS3 Context&gt;Installed Flex SDKs</strong>. Fill in the location where you extract Flex 4.5 SDK.</li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110825_stage3d_09.jpg" alt="flash stage3d" /></p>
<ul>
<li>Go to <strong>Project&gt;Properties&gt;Class Paths</strong>. Click <strong>Add Class Path</strong> and browse to the location where you extract Away3D 4. Remember to target the<strong></strong> sub folder name <strong>src</strong>, not the main folder.</li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110825_stage3d_10.jpg" alt="flash stage3d" /></p>
<ul>
<li>Go to <strong>Project&gt;Properties&gt;Output&gt;Platform</strong>. Make sure it is <strong>Flash Player 11.0</strong>.</li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110825_stage3d_11.jpg" alt="flash stage3d" /></p>
<ul>
<li>Go to <strong>Project&gt;Properties&gt;Output&gt;Test Project</strong>. Select <strong>Open document</strong> from dropdown list. Click <strong>Edit</strong> button and type <strong>bin\index.html</strong></li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110825_stage3d_12.jpg" alt="flash stage3d" /></p>
<ul>
<li>Go to <strong>Project&gt;Properties&gt;Compiler Options&gt;Additional Compiler Options</strong>. Key in <strong>-swf-version=13</strong></li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110825_stage3d_13.jpg" alt="flash stage3d" /></p>
<ul>
<li>Done. Right click on any of Away3D example source files which can be found at <strong>src</strong> folder, choose<strong> Set Document Class</strong>, compile and profit!</li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110825_stage3d_14.jpg" alt="flash stage3d" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mclelun.com/blog/2011/08/flashdevelop-stage3d-away3d/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Tower of Hanoi Flash FLA Source</title>
		<link>http://www.mclelun.com/blog/2011/07/tower-of-hanoi-flash-fla-source/</link>
		<comments>http://www.mclelun.com/blog/2011/07/tower-of-hanoi-flash-fla-source/#comments</comments>
		<pubDate>Sun, 31 Jul 2011 15:45:24 +0000</pubDate>
		<dc:creator>mclelun</dc:creator>
				<category><![CDATA[Scripting and Coding]]></category>
		<category><![CDATA[ActionScript3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.mclelun.com/blog/?p=195</guid>
		<description><![CDATA[It had been a while since I did any programming work, so I start up Flash and did this little game known as &#8220;Tower of Hanoi&#8220;. Probably a famous example for programming students. The Tower of Hanoi or Towers of Hanoi is a mathematical game or puzzle. It consists of three rods, and a number [...]]]></description>
			<content:encoded><![CDATA[<p>It had been a while since I did any programming work, so I start up Flash and did this little game known as &#8220;<a href="http://www.mclelun.com/labs/#as3toh" title="Tower of Hanoi">Tower of Hanoi</a>&#8220;. Probably a famous example for programming students.</p>
<p><span id="more-195"></span></p>
<blockquote><p>The Tower of Hanoi or Towers of Hanoi is a mathematical game or puzzle. It consists of three rods, and a number of disks of different sizes which can slide onto any rod. The puzzle starts with the disks in a neat stack in ascending order of size on one rod, the smallest at the top, thus making a conical shape. The objective of the puzzle is to move the entire stack to another rod.</p></blockquote>
<h3>Game rules</h3>
<p>The description from wiki might sound confusing, but the game is actually quite simple. Let&#8217;s look at the pictures that I quickly draw. The game start with 3 rods, A,B and C. Initially, all disks are stack on rod A, and you have to move all the disk in ascending order on rod C to win.<br />
<img src="http://www.mclelun.com/img/blog/110731_toh_01.gif" alt="tower of hanoi" /></p>
<p>Of course, there are few criteria or rules when moving the disk around. First, only 1 disk can be move at a time. Second, only the top most disk can be move. Third, disk can only be placed on top of a larger disk.</p>
<p><img src="http://www.mclelun.com/img/blog/110731_toh_02.gif" alt="tower of hanoi" /></p>
<h3>Gameplay Programming</h3>
<p>After looking at the game rules, you will find out that how easy the game logic can be script. Use 3 arrays to represent the 3 rods, which contain list of values that represent all the disks. The bigger the disk, the larger the number (or the other way round, depend on how you do the condition statement later). Then, use array/stack PUSH and POP function to &#8220;move the disk around&#8221;. In this case, the PUSH and POP function work exactly like what we want, removing and adding items from the top of the array/stack. Last, just do a condition check to see if a disk can be move on to another rod base on target rod top most disk size. To check the top most disk size, just POP it.</p>
<p><img src="http://www.mclelun.com/img/blog/110731_toh_03.gif" alt="tower of hanoi" /></p>
<h3>Recursive Solution</h3>
<p>The puzzle can be solve by using a recursive function using the following algorithm. Assume N equals to total number of disks.<br />
STEP 1) move DISKS N−1 from A to B.<br />
STEP 2) move DISK N from A to C.<br />
STEP 3) move DISKS N−1 from B to C.</p>
<p><img src="http://www.mclelun.com/img/blog/110731_toh_04.gif" alt="tower of hanoi" /></p>
<h3>Play The Game</h3>
<p>You can play &#8220;<a href="http://www.mclelun.com/labs/#as3toh" title="Tower of Hanoi">Tower of Hanoi</a>&#8221; in my labs page. I have include the recursive puzzle solving function as well.</p>
<p><a href="http://www.mclelun.com/labs/#as3toh" title="Tower of Hanoi" target="_blank"><img src="http://fc09.deviantart.net/fs71/f/2011/306/a/6/tower_of_hanoi_lab_by_mclelun-d4etbju.gif" alt="tower of hanoi flash game" /></a></p>
<h3>Download</h3>
<p>If anyone is interested, here is the Flash CS4 source files. Code might not be most optimized and tidy, but can be a good starting point for your project. This source is without graphics and music.<br />
<a href="http://www.mclelun.com/conlabs/as3toh/as3toh.zip">Tower of Hanoi FLA Source &#8211; 20KB</a></p>
<h3>Reference</h3>
<p><a href="http://en.wikipedia.org/wiki/Tower_of_Hanoi" title="wiki">Tower of Hanoi Wikipedia Entry</a><br />
<a href="http://www.cs.cmu.edu/~cburch/survey/recurse/hanoiimpl.html" title="Recursion">Recursion: Towers of Hanoi</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mclelun.com/blog/2011/07/tower-of-hanoi-flash-fla-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FlashDevelop Molehill Away3D</title>
		<link>http://www.mclelun.com/blog/2011/03/flashdevelop-molehill-away3d/</link>
		<comments>http://www.mclelun.com/blog/2011/03/flashdevelop-molehill-away3d/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 16:04:29 +0000</pubDate>
		<dc:creator>mclelun</dc:creator>
				<category><![CDATA[Scripting and Coding]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[ActionScript3]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.mclelun.com/blog/?p=158</guid>
		<description><![CDATA[Adobe just released the preview versions of Flash Player Incubator which support low level 3D API codenamed Molehill several days ago. After a bit of google, I managed to setup FlashDevelop to publish Molehill content. Below are the brief steps on how to setup everything. Adobe just released Flash Player 11 beta 2 earlier this [...]]]></description>
			<content:encoded><![CDATA[<p>Adobe just released the preview versions of <a href="http://labs.adobe.com/wiki/index.php/Flash_Player_Incubator#Flash_Player_11.2C0.2C0.2C58_Incubator_Release_Notes" target="_blank">Flash Player Incubator</a> which support low level 3D API codenamed <a href="http://labs.adobe.com/technologies/flashplatformruntimes/incubator/features/molehill.html" target="_blank">Molehill</a> several days ago. After a bit of google, I managed to setup FlashDevelop to publish Molehill content. Below are the brief steps on how to setup everything.</p>
<p><span id="more-158"></span></p>
<h3>Adobe just released Flash Player 11 beta 2 earlier this month and their “Molehill” 3D API is now known as “Stage 3D“. This blog entry is not applicable now, so please refer to my new blog entry about this topic <a title="FlashDevelop Stage3D Away3D" href="http://www.mclelun.com/blog/2011/08/flashdevelop-stage3d-away3d/" target="_blank">FlashDevelop Stage3D Away3D</a>.</h3>
<p>&nbsp;</p>
<h3>Install Flash Player Incubator</h3>
<p>To view Flash Molehill content, you will need to install the alpha version of new flash player.</p>
<ul>
<li>Download and install <a href="http://labs.adobe.com/downloads/flashplatformruntimes_incubator.html" target="_blank">Flash Player Incubator</a></li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110303_molehill_00.jpg" alt="flash molehill" /></p>
<h3>Setup FlashDevelop with Flex Hero Framework and Away3D</h3>
<p>To publish Flash Molehill content, you will need the new Flex Hero SDK. In my case, I will be using FlashDevelop and Away3D.</p>
<ul>
<li>Download and install <a href="http://www.java.com/en/download/" target="_blank">Java runtime</a>.</li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110303_molehill_01.jpg" alt="flash molehill" /></p>
<ul>
<li>Download and install <a href="http://www.flashdevelop.org/community/viewtopic.php?f=11&amp;t=7943&amp;sid=e35db504f85d5f71b9608e15e95eca5f" target="_blank">FlashDevelop 3.3.4</a></li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110303_molehill_02.jpg" alt="flash molehill" /></p>
<ul>
<li>Download and extract <a href="http://away3d.com/downloads" target="_blank">Away3D Version 4.0.0 Alpha (Broomstick)</a>.</li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110303_molehill_03.jpg" alt="flash molehill" /></p>
<ul>
<li>Download and extract <a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+Hero" target="_blank">Flex HERO SDK build 4.5.0.19786</a>.</li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110303_molehill_04.jpg" alt="flash molehill" /></p>
<ul>
<li>Download <a href="http://labs.adobe.com/wiki/index.php/Flash_Player_Incubator#Authoring_for_Flash_Player_11.2C0.2C0.2C58_Incubator" target="_blank">flashplayer_inc_playerglobal_022711.swc</a> and rename it to <strong>playerglobal.swc</strong></li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110303_molehill_05.jpg" alt="flash molehill" /></p>
<ul>
<li>Copy <strong>playerglobal.swc</strong> to <strong>[Flex Hero SDK Path]frameworks\libs\player\10.1</strong>. You will need to create the <strong>10.1</strong> folder</li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110303_molehill_06.jpg" alt="flash molehill" /></p>
<ul>
<li>Launch FlashDevelop and start a new AS3 Project. You can set your project folder to Away3D examples, if you downloaded them.</li>
</ul>
<ul>
<li>Go to <strong>Tools&gt;Program Settings&gt;AS3 Context&gt;Flex SDK Location</strong>. Fill in the location where you extract Flex Hero SDK.</li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110303_molehill_07.jpg" alt="flash molehill" /><br />
<img src="http://www.mclelun.com/img/blog/110303_molehill_08.jpg" alt="flash molehill" /></p>
<ul>
<li>Go to <strong>Project&gt;Properties&gt;Class Paths</strong>. Click <strong>Add Class Path</strong> and browse to the location where you extract Away3D 4.</li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110303_molehill_09.jpg" alt="flash molehill" /></p>
<ul>
<li>Go to <strong>Project&gt;Properties&gt;Output&gt;Platform</strong>. Change <strong>Target</strong> to <strong>Flash Player 10.1</strong>.</li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110303_molehill_10.jpg" alt="flash molehill" /></p>
<ul>
<li>Go to <strong>Project&gt;Properties&gt;Output&gt;Test Movie</strong>. Select <strong>Open document</strong> from dropdown list. Click <strong>Edit</strong> button and type in FlashDevelop output location, usually <strong>bin\index.html</strong></li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110303_molehill_11.jpg" alt="flash molehill" /></p>
<ul>
<li>Go to <strong>Project&gt;Properties&gt;Compiler Options&gt;Additional Compiler Options</strong>. Key in <strong>-swf-version=13</strong></li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110303_molehill_12.jpg" alt="flash molehill" /></p>
<ul>
<li>Add <strong>wmode: &#8220;direct&#8221;</strong> parameter for swfobject in the output HTML which usually at <strong>[Project Path]bin\index.html</strong>. Software fallback will be used if you do not include this parameter.</li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110303_molehill_13.jpg" alt="flash molehill" /></p>
<ul>
<li>Done. Right click on any of Away3D example source files which can be found at <strong>[Project Path]src</strong>, choose <strong>Always compile</strong> and GO!</li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110303_molehill_14.jpg" alt="flash molehill" /></p>
<h3>Problem?</h3>
<ul>
<li>If you get error message like <strong>Type was not found</strong> or <strong>Call to a possibly undefined method</strong>. In FlashDevelop, open the <strong>libs</strong> folder in the project file list, right click and select <strong>Add To Library</strong> for both <strong>lib_simplegui.swc</strong> and <strong>MinimalComps_0_9_9.swc</strong></li>
<li>If you get an error about <strong>LZMA Decoder</strong>, download it <a href="http://code.google.com/p/apparat/downloads/detail?name=apparat-1.0-RC9-bin.zip" target="_blank">here</a>. Then extract it to <strong>[Project Path]libs</strong>. In FlashDevelop, select <strong>apparat-lzma-decoder-1.0-RC9.swc</strong> in the project file list, right click and select <strong>Add To Library</strong>.</li>
<li>If you cant view the MD5 and MD2 examples, most probably the assets path is wrong. Just copy the <strong>assets</strong> folder from <strong>[Project Path]srcassets</strong> to <strong>[Project Path]bin</strong></li>
</ul>
<p><img src="http://www.mclelun.com/img/blog/110303_molehill_15.jpg" alt="flash molehill" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mclelun.com/blog/2011/03/flashdevelop-molehill-away3d/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>

