<?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; Flex</title>
	<atom:link href="http://www.mclelun.com/blog/tag/flex/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>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>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>
		<item>
		<title>FlashDevelop and Flex</title>
		<link>http://www.mclelun.com/blog/2010/06/flashdevelop-and-flex/</link>
		<comments>http://www.mclelun.com/blog/2010/06/flashdevelop-and-flex/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 17:29:42 +0000</pubDate>
		<dc:creator>mclelun</dc:creator>
				<category><![CDATA[Scripting and Coding]]></category>
		<category><![CDATA[ActionScript3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.mclelun.com/blog/?p=35</guid>
		<description><![CDATA[I wrote about how to setup FlashDevelop with Flex Framework last time, but all my old blog entries are taken down when I revamp this site. So, this is just a reblog of the old entry with some minor changes. Hopefully it will be easier to follow this time. Introduction FlashDevelop is an open source [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote about how to setup FlashDevelop with Flex Framework last time, but all my old blog entries are taken down when I revamp this site. So, this is just a reblog of the old entry with some minor changes. Hopefully it will be easier to follow this time.</p>
<p><span id="more-35"></span></p>
<h3>Introduction</h3>
<p>FlashDevelop is an open source script editor which primary use for editing ActionScript (Can be use for XML, HTML, CSS… etc as well). Flex is a free open source framework use for compiling Flash SWF. Both of them are free and open source, so it is good for those who want to learn ActionScript without purchasing Adobe Flash.</p>
<h3>Steps to Setup</h3>
<p>Below is a brief steps on how to setup FlashDevelop with Flex Framework.</p>
<ul>
<li>Download and install <a href="http://www.java.com/en/download/">Java runtime</a>.</li>
<li>Download and install <a href="http://www.flashdevelop.org/community/viewforum.php?f=11">FlashDevelop</a>.</li>
<li>Download and extract <a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4">Flex SDK</a>.</li>
<li>Launch FlashDevelop.</li>
<li>Go to <strong>Tools&gt;Program Settings&gt;AS3 Context&gt;Flex SDK Location</strong>. Fill in the location where you extract flex SDK.</li>
<li>Go to<strong> Tools&gt;Program Settings&gt;Flash Viewer&gt;External Player Path</strong>. Fill in the location of the debug Flash player 10. It is include in the flex SDK package in this location <strong>\runtimes\player\10\win.</strong></li>
<li>Done. You can compile flash10 stuff now. Just create a new project, and edit the Main.as in the src folder</li>
</ul>
<h3>Different Flex Framework Version</h3>
<p>You can use different version of Flex Framework for different projects. Just set a custom path in the project properties at</p>
<ul>
<li><strong>Project&gt;Properties&gt;Compiler Options&gt;Custom Path to Flex SDK</strong></li>
</ul>
<p>This will be useful to test if your project got screw with a new Flex SDK release without affecting other projects.</p>
<h3>Using Preloader</h3>
<p>If you want a preloader in your AS3 project, just start a new project and choose &#8220;<strong>AS3 Project with Preloader</strong>&#8220;. You will want to add in your own script inside the &#8220;<strong>progress</strong>&#8221; function. You can check how many percents of content are loaded by using the following script.</p>
<p><code>percent = e.bytesLoaded / e.bytesTotal * 100</code></p>
<h3>Free Adobe Flash Builder 4 Standard</h3>
<p>Actually Adobe is providing free copies of Flash Builder 4 Standard to students, event attendees, and people who are jobless now. You can get your copy in this <a href="http://www.adobe.com/devnet/flex/free/">page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mclelun.com/blog/2010/06/flashdevelop-and-flex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

