<?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>Emanuele Feronato &#187; Reviews</title>
	<atom:link href="http://www.emanueleferonato.com/category/reviews/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emanueleferonato.com</link>
	<description>italian geek and PROgrammer</description>
	<lastBuildDate>Thu, 02 Sep 2010 09:32:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Get SWF Protector 3 with a special 25% discount</title>
		<link>http://www.emanueleferonato.com/2010/07/15/protect-your-flash-files-with-swf-protector-3-special-25-discount-for-readers/</link>
		<comments>http://www.emanueleferonato.com/2010/07/15/protect-your-flash-files-with-swf-protector-3-special-25-discount-for-readers/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 09:50:18 +0000</pubDate>
		<dc:creator>Emanuele Feronato</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=3125</guid>
		<description><![CDATA[Now you know Flash thieve is a problem. With the latest SWF Protector from DCOM Soft you can firmly protect both ActionScript 1/2 and ActionScript 3, so none of your files, either old or new, will stay unguarded. Version 3.0, actually available for Win and Linux (Mac version to be released soon) now supports Flash [...]]]></description>
			<content:encoded><![CDATA[<p>Now you know <a href="http://www.emanueleferonato.com/2010/07/14/grand-theft-flash-the-flash-thieve-problem/">Flash thieve</a> is a problem.</p>
<p>With the latest <a href="http://www.dcomsoft.com/" target = "_blank"><strong>SWF Protector</strong></a> from DCOM Soft you can firmly protect both ActionScript 1/2 and ActionScript 3, so none of your files, either old or new, will stay unguarded.</p>
<p>Version 3.0, actually available for Win and Linux (Mac version to be released soon) now supports Flash 10 including Flash CS5 files!!</p>
<p>You can see the complete features list at the <a href="http://www.dcomsoft.com/" target = "_blank">official page</a>, I am here for a test.</p>
<p>I protected the <a href="http://www.emanueleferonato.com/2010/07/12/basic-box2d-editor-using-flash-movieclips/">Basic Box2D editor using Flash movieclips</a> as you can see in the picture:</p>
<p><img src="/wp-content/uploads/2010/07/protector.jpg" /></p>
<p>Then I tried to decompile it with the best decompiler available at the moment.</p>
<p>This is the original <code>draw_box</code> function:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> draw_box<span style="color: #000000;">&#40;</span>x_origin<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>,y_origin<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>,box_width<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>,box_height<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>,<span style="color: #004993;">angle</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>,is_dynamic<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> my_body<span style="color: #000000; font-weight: bold;">:</span>b2BodyDef= <span style="color: #0033ff; font-weight: bold;">new</span> b2BodyDef<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>is_dynamic<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
		my_body.<span style="color: #004993;">type</span>=b2Body.b2_dynamicBody;
	<span style="color: #000000;">&#125;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> my_box<span style="color: #000000; font-weight: bold;">:</span>b2PolygonShape = <span style="color: #0033ff; font-weight: bold;">new</span> b2PolygonShape<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
	my_box.SetAsOrientedBox<span style="color: #000000;">&#40;</span>box_width<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">2</span><span style="color: #000000; font-weight: bold;">/</span>world_scale, box_height<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">2</span><span style="color: #000000; font-weight: bold;">/</span>world_scale, <span style="color: #0033ff; font-weight: bold;">new</span> b2Vec2<span style="color: #000000;">&#40;</span>x_origin<span style="color: #000000; font-weight: bold;">/</span>world_scale,y_origin<span style="color: #000000; font-weight: bold;">/</span>world_scale<span style="color: #000000;">&#41;</span>,<span style="color: #004993;">angle</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #6699cc; font-weight: bold;">var</span> my_fixture<span style="color: #000000; font-weight: bold;">:</span>b2FixtureDef = <span style="color: #0033ff; font-weight: bold;">new</span> b2FixtureDef<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
	my_fixture.shape=my_box;
	<span style="color: #6699cc; font-weight: bold;">var</span> world_body<span style="color: #000000; font-weight: bold;">:</span>b2Body=world.CreateBody<span style="color: #000000;">&#40;</span>my_body<span style="color: #000000;">&#41;</span>;
	world_body.CreateFixture<span style="color: #000000;">&#40;</span>my_fixture<span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>This is the one I decompiled from the original file:<span id="more-3125"></span></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> draw_box<span style="color: #000000;">&#40;</span>arg1<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>, arg2<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>, arg3<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>, arg4<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>, arg5<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>, arg6<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
  <span style="color: #6699cc; font-weight: bold;">var</span> loc1<span style="color: #000000; font-weight: bold;">:*</span>=<span style="color: #0033ff; font-weight: bold;">new</span> b2BodyDef<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
  <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>arg6<span style="color: #000000;">&#41;</span> 
  <span style="color: #000000;">&#123;</span>
      loc1.<span style="color: #004993;">type</span> = b2Body.b2_dynamicBody;
  <span style="color: #000000;">&#125;</span>
  <span style="color: #6699cc; font-weight: bold;">var</span> loc2<span style="color: #000000; font-weight: bold;">:*</span>;
  <span style="color: #000000;">&#40;</span>loc2 = <span style="color: #0033ff; font-weight: bold;">new</span> b2PolygonShape<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>.SetAsOrientedBox<span style="color: #000000;">&#40;</span>arg3 <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight:bold;">2</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #0033ff; font-weight: bold;">this</span>.world_scale, arg4 <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight:bold;">2</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #0033ff; font-weight: bold;">this</span>.world_scale, <span style="color: #0033ff; font-weight: bold;">new</span> b2Vec2<span style="color: #000000;">&#40;</span>arg1 <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #0033ff; font-weight: bold;">this</span>.world_scale, arg2 <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #0033ff; font-weight: bold;">this</span>.world_scale<span style="color: #000000;">&#41;</span>, arg5<span style="color: #000000;">&#41;</span>;
  <span style="color: #6699cc; font-weight: bold;">var</span> loc3<span style="color: #000000; font-weight: bold;">:*</span>;
  <span style="color: #000000;">&#40;</span>loc3 = <span style="color: #0033ff; font-weight: bold;">new</span> b2FixtureDef<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>.shape = loc2;
  <span style="color: #6699cc; font-weight: bold;">var</span> loc4<span style="color: #000000; font-weight: bold;">:*</span>;
  <span style="color: #000000;">&#40;</span>loc4 = <span style="color: #0033ff; font-weight: bold;">this</span>.world.CreateBody<span style="color: #000000;">&#40;</span>loc1<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>.CreateFixture<span style="color: #000000;">&#40;</span>loc3<span style="color: #000000;">&#41;</span>;
  <span style="color: #0033ff; font-weight: bold;">return</span>;
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>And this is what I get when I try to decompile the protected file:</p>
<p><img src="/wp-content/uploads/2010/07/error.jpg" /></p>
<p>(sorry for the italian UI &#8211; it&#8217;s a Windows7 error)</p>
<p>So I can say your actionscript will be more than safe with SWF Protector 3.</p>
<p><strong>Get the 25% discount coupon</strong>: use this code <strong>REFLPRTCT-RTW5</strong> when purchasing the software. It works!</p>
<p><img src="/wp-content/uploads/2010/07/coupon.jpg" /></p>
<p>Also, you may want to stay up to date with new releases and announcements joining <a href="http://twitter.com/SWF_Protector" target = "_blank">http://twitter.com/SWF_Protector</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.emanueleferonato.com/2010/07/15/protect-your-flash-files-with-swf-protector-3-special-25-discount-for-readers/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Design your logo online with Online Logo Maker</title>
		<link>http://www.emanueleferonato.com/2010/04/15/design-your-logo-online-with-online-logo-maker/</link>
		<comments>http://www.emanueleferonato.com/2010/04/15/design-your-logo-online-with-online-logo-maker/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 08:55:40 +0000</pubDate>
		<dc:creator>Emanuele Feronato</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=2738</guid>
		<description><![CDATA[I love &#8220;do it online&#8221; software. It allows you to be productive even with a laptop bought 10 minutes ago, without any installed software, or from an internet cafè. Online Logo Maker is one of these tools, and I am going to take a test drive. As the name suggests, it&#8217;s a free online logo [...]]]></description>
			<content:encoded><![CDATA[<p>I love &#8220;do it online&#8221; software. It allows you to be productive even with a laptop bought 10 minutes ago, without any installed software, or from an internet cafè.</p>
<p><a href="http://www.onlinelogomaker.com/" target = "_blank"><strong>Online Logo Maker</strong></a> is one of these tools, and I am going to take a test drive.</p>
<p>As the name suggests, it&#8217;s a free online logo creator</p>
<p><strong>Ricardo Lopes</strong>, the author, needs some feedback so you are welcome to test it.</p>
<p>The first thing I liked is it does not require you to register to create a logo. Some similar tools actually take more time to register than to enjoy&#8230; So you can immediatly start your logo from scratch.</p>
<p>This is the work area:</p>
<p><img src="/wp-content/uploads/2010/04/logoma03.jpg" /></p>
<p>This is where you will draw your logo, and you can make three basic actions:<span id="more-2738"></span></p>
<p>1) Uploading an image from your hard disk</p>
<p>2) Adding a custom shape from the library. As you can see in this picture, the library provides a wide range of shapes ready to be part of your logo</p>
<p><img src="/wp-content/uploads/2010/04/logoma02.jpg" /></p>
<p>3) Adding text</p>
<p>Then a control panel will allow you to modify, paint, and adjust the text and every object that forms your logo.</p>
<p><img src="/wp-content/uploads/2010/04/logoma01.jpg" /></p>
<p>The whole process is very easy and you can really create your logo in a matter of minutes.</p>
<p>This is the logo of an airline company I own, made with <a href="http://www.onlinelogomaker.com/" target = "_blank">Online Logo Maker</a> and automatically exported</p>
<p><img src="/wp-content/uploads/2010/04/logoma04.jpg" /></p>
<p><a href="http://www.onlinelogomaker.com/" target = "_blank">Online Logo Maker</a> automatically exports your logo in png format with transparent background. That&#8217;s great.</p>
<p>There are a couple of things I would like to see, anyway&#8230; first I think an Undo button is necessary when working on complex projects&#8230; then I would be interesting having a gradient fill.</p>
<p>All in all, an easy way to make custom logos for free. <a href="http://www.onlinelogomaker.com/" target = "_blank">Try it</a> and give Ricardo feedback.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.emanueleferonato.com/2010/04/15/design-your-logo-online-with-online-logo-maker/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Protect your work from ActionScript code theft with SWF Protector</title>
		<link>http://www.emanueleferonato.com/2010/03/05/protect-your-work-from-actionscript-code-theft-with-swf-protector/</link>
		<comments>http://www.emanueleferonato.com/2010/03/05/protect-your-work-from-actionscript-code-theft-with-swf-protector/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 10:03:32 +0000</pubDate>
		<dc:creator>Emanuele Feronato</dc:creator>
				<category><![CDATA[Actionscript 2]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=2480</guid>
		<description><![CDATA[&#171; I&#8217;ve just found a site that won a top international online advertising award &#8211; and it&#8217;s been blatantly lifted from me! Its a flash application that has the same vectors and almost certainly the same AS code. Is there anything I can do? I&#8217;m in the UK &#8211; they&#8217;re in Brazil. &#187; The guy [...]]]></description>
			<content:encoded><![CDATA[<p>&laquo; I&#8217;ve just found a site that won a top international online advertising award &#8211; and it&#8217;s been blatantly lifted from me!</p>
<p>Its a flash application that has the same vectors and <strong>almost certainly the same AS code</strong>. Is there anything I can do? I&#8217;m in the UK &#8211; they&#8217;re in Brazil. &raquo;</p>
<p>The guy who opened <a href="http://www.webmasterworld.com/webmaster/3033990.htm" target = "_blank">this thread</a> looks quite desperate&#8230; now imagine this happening to your latest Flash game.</p>
<p>That&#8217;s why you <strong>must</strong> protect your code. You don&#8217;t want someone else stealing your work.</p>
<p>I am going to review <a href="http://www.dcomsoft.com/" target = "_blank">DCOM Soft</a>&#8216;s SWF Protector.</p>
<p><a href="http://www.dcomsoft.com/" target = "_blank"><img src="/wp-content/uploads/2010/03/swfpro01.jpg" /></a></p>
<p><strong>SWF Protector</strong></p>
<p><a href="http://www.dcomsoft.com/" target = "_blank">SWF Protector</a> is an swf protector software working through actionscript encryption to secure your actionscript content. This means decompilers won&#8217;t be able to read your actionscript.<span id="more-2480"></span></p>
<p>The most interesting <a href="http://www.dcomsoft.com/" target = "_blank">SWF Protector</a> features are:</p>
<p>* Inexpensive: only $59.95 for a Business License. <a href="http://www.emanueleferonato.com/2009/12/07/milestone-reached-100-with-mochiads/">You can earn twice in just one day with a single game</a>.</p>
<p>* Simple and fast. You can encrypt your SWF with a couple of clicks.</p>
<p>* Cross-platform. Available for Windows, Mac and Linux.</p>
<p>* Mass protection. You can protect several SWFs at once.</p>
<p>This is the interface you&#8217;ll see when you are about to secure your flash content: </p>
<p><img src="/wp-content/uploads/2010/03/swfpro02.jpg" /></p>
<p>I am testing the software on the file created on <a href="http://www.emanueleferonato.com/2010/02/25/box2d-flash-game-creation-tutorial-part-2/">Box2D Flash game creation tutorial – part 2</a> tutorial.</p>
<p>This is the original content of the <code>custom_contact_listener.as</code> file:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> Box2D.Dynamics.<span style="color: #000000; font-weight: bold;">*</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> Box2D.Collision.<span style="color: #000000; font-weight: bold;">*</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> Box2D.Collision.Shapes.<span style="color: #000000; font-weight: bold;">*</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> Box2D.Dynamics.Joints.<span style="color: #000000; font-weight: bold;">*</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> Box2D.Dynamics.Contacts.<span style="color: #000000; font-weight: bold;">*</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> Box2D.Common.<span style="color: #000000; font-weight: bold;">*</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> Box2D.Common.<span style="color: #004993;">Math</span>.<span style="color: #000000; font-weight: bold;">*</span>;
	<span style="color: #9900cc; font-weight: bold;">class</span> custom_contact_listener extends b2ContactListener <span style="color: #000000;">&#123;</span>
		override <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> BeginContact<span style="color: #000000;">&#40;</span>contact<span style="color: #000000; font-weight: bold;">:</span>b2Contact<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #009900;">// getting the fixtures that collided</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> fixtureA<span style="color: #000000; font-weight: bold;">:</span>b2Fixture=contact.GetFixtureA<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #6699cc; font-weight: bold;">var</span> fixtureB<span style="color: #000000; font-weight: bold;">:</span>b2Fixture=contact.GetFixtureB<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #009900;">// if the fixture is a sensor, mark the parent body to be removed</span>
			<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>fixtureB.IsSensor<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
				fixtureB.GetBody<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.SetUserData<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;remove&quot;</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #000000;">&#125;</span>
			<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>fixtureA.IsSensor<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
				fixtureA.GetBody<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.SetUserData<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;remove&quot;</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>Now, I will use a Flash decompiler to extract the same file from an unprotected version of the swf&#8230; here it is:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900;">//class custom_contact_listener</span>
<span style="color: #9900cc; font-weight: bold;">package</span> 
<span style="color: #000000;">&#123;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> Box2D.Dynamics.<span style="color: #000000; font-weight: bold;">*</span>;
    <span style="color: #0033ff; font-weight: bold;">import</span> Box2D.Dynamics.Contacts.<span style="color: #000000; font-weight: bold;">*</span>;
&nbsp;
    <span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #9900cc; font-weight: bold;">class</span> custom_contact_listener extends Box2D.Dynamics.b2ContactListener
    <span style="color: #000000;">&#123;</span>
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> custom_contact_listener<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #0033ff; font-weight: bold;">super</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #0033ff; font-weight: bold;">return</span>;
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #0033ff; font-weight: bold;">public</span> override <span style="color: #339966; font-weight: bold;">function</span> BeginContact<span style="color: #000000;">&#40;</span>arg1<span style="color: #000000; font-weight: bold;">:</span>Box2D.Dynamics.Contacts.b2Contact<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #6699cc; font-weight: bold;">var</span> loc1<span style="color: #000000; font-weight: bold;">:*</span>=arg1.GetFixtureA<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #6699cc; font-weight: bold;">var</span> loc2<span style="color: #000000; font-weight: bold;">:*</span>=arg1.GetFixtureB<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>loc2.IsSensor<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> 
            <span style="color: #000000;">&#123;</span>
                loc2.GetBody<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.SetUserData<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;remove&quot;</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #000000;">&#125;</span>
            <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>loc1.IsSensor<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> 
            <span style="color: #000000;">&#123;</span>
                loc1.GetBody<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.SetUserData<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;remove&quot;</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #000000;">&#125;</span>
            <span style="color: #0033ff; font-weight: bold;">return</span>;
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>The code is amost more polished&#8230; and obviously it works.</p>
<p>Now let&#8217;s try to do the same on the obfuscated swf made by <a href="http://www.dcomsoft.com/" target = "_blank">SWF Protector</a>&#8230; that&#8217;s what I got (sorry for the italian screenshot: I&#8217;m currently running an italian version of Windows7)</p>
<p><img src="/wp-content/uploads/2010/03/swfpro03.jpg" /></p>
<p>The decompiler crashed&#8230; probably the amount of weird characters inserted by the flash obfuscator made it crash.</p>
<p>In the end, <a href="http://www.dcomsoft.com/" target = "_blank">SWF Protector</a> is simple to use and very fast. It has shown lightning-fast speeds of SWF files loading, processing and saving and uses four reliable protection algorithms.</p>
<p>You can download a trial version on the official site or <strong>win one of three business licenses</strong> I am giving away being the first to reply &#8220;I want one&#8221; when this post will be published on my <a href="http://www.facebook.com/pages/Emanuele-Feronato/50374255154">Facebook Fanpage</a>. This is a special giveaway for three of my Facebook fans. And won&#8217;t be the only one.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.emanueleferonato.com/2010/03/05/protect-your-work-from-actionscript-code-theft-with-swf-protector/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Monetize your Flash games with GamesChart</title>
		<link>http://www.emanueleferonato.com/2010/02/23/monetize-your-flash-games-with-gameschart/</link>
		<comments>http://www.emanueleferonato.com/2010/02/23/monetize-your-flash-games-with-gameschart/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 22:23:00 +0000</pubDate>
		<dc:creator>Emanuele Feronato</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Game design]]></category>
		<category><![CDATA[Monetize]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Users contributions]]></category>

		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=2403</guid>
		<description><![CDATA[Do you remember Emanuele Ornella from Mind the Move? It&#8217;s the guy behind the Come2Play multiplayer API tutorial posted about a month ago. Now he is explaining us a new way to monetize Flash games: GamesChart &#171; When I first saw the announcement on Flash Game Developers group on www.linkedIn.com about the GamesChart beta program [...]]]></description>
			<content:encoded><![CDATA[<p>Do you remember <strong>Emanuele Ornella</strong> from <a target = "_blank" href="http://www.mindthemove.com/">Mind the Move</a>? It&#8217;s the guy behind the <a href="http://www.emanueleferonato.com/2010/01/14/come2play-multiplayer-api-tutorial/">Come2Play multiplayer API tutorial</a> posted about a month ago.</p>
<p>Now he is explaining us a new way to monetize Flash games: <strong><a href="http://gameschart.com/" target = "_blank">GamesChart</a></strong></p>
<p>&laquo; When I first saw the announcement on <a href="http://www.linkedin.com/groups?home=&#038;gid=121017" target = "_blank">Flash Game Developers group</a> on www.linkedIn.com about the <strong><a href="http://gameschart.com/" target = "_blank">GamesChart</a></strong> beta program I immediately thought to participate. It was a surprise to me to find that my game <a href="http://gameschart.com/games/Haunted-House" target = "_blank">Haunted House</a> was at first position for the entire 4 weeks of the beta program!</p>
<p>Actually also my <a href="http://gameschart.com/games/Alice-Memory-1" target = "_blank">Alice Memory</a> game is also on the chart, even if never more than in the 6th position.</p>
<p><img src="/wp-content/uploads/2010/02/gc01.jpg" /></p>
<p>What <strong><a href="http://gameschart.com/" target = "_blank">GamesChart</a></strong> is about?</p>
<p>It’s another way to generate money from you Flash games. The nice thing is that it is not an alternative to the traditional banner you place during the loading of the game. But it goes together.<br />
The main idea is to have publisher to “bid” for which game will be in the chart and this will generate extra revenue to the developer, to the publisher who correctly bid and of course to the GamesChart organization.</p>
<p>This is from <strong>Barry White</strong> directly from linkedIn group.<span id="more-2403"></span></p>
<p>I thought I&#8217;d include some more information about how GamesChart can earn developers money:</p>
<p>+ Every game that has the GamesChart API embedded in it is tracked by GamesChart.</p>
<p>+ The developer can also choose to enable or disable a series of dynamic charts that actually display within the Flash game itself.</p>
<p>+ The most popular games each week make their way to the top of the charts.</p>
<p>+ Any gamers who click on a game listed in these charts is taken to play that game on another portal.</p>
<p>+ Publishers use an advanced pay per click bidding system to purchase this traffic and drive users back to their own sites to play the games they have bid on.</p>
<p>+ Games need to be uploaded to the Publishers portal before they can receive traffic. (great for seeding)</p>
<p>+ Developers receive up to a 50% revenue share of any outbound clicks generated from within their game should they choose to display the charts. (also full blacklisting available)</p>
<p>+ Publishers also receive 10% of total revenues generated from any GamesChart enabled games featured on their site.</p>
<p>I am going to explain the very easy steps to follow to have a game added to this GamesChart.</p>
<p>In order to do so I am going to provide my other game <a href="http://gameschart.com/games/Tokyo-Train" target = "_blank">Tokyo Train</a> with this service as well.</p>
<p>First thing you need to register as developer, if you don’t already. This is quite easy to do, just follow instruction on the site.</p>
<p>You then are prompted to add a game:</p>
<p><img src="/wp-content/uploads/2010/02/gc02.jpg" /></p>
<p>So do not hesitate: go to click the button and create the new game:</p>
<p><img src="/wp-content/uploads/2010/02/gc03.jpg" /></p>
<p>Instructions are easy and nice to follow: I have to admit they did a very good job on make your job easy.</p>
<p><img src="/wp-content/uploads/2010/02/gc04.jpg" /></p>
<p>You are now prompted with the game id that you need to put on the component property to have your game identified.<br />
Of course first of all you need to download the API library from the <a href="http://wiki.gameschart.com/index.php/Getting_Started" target = "_blank">“GamesChart Wiki” link</a>.</p>
<p>You have the choice to get the component for Adobe Flash IDE or the complete API if you use FlashDevelop and for both choices you can choose between AS3 and AS2. My choice was for the component and AS3.</p>
<p>The very first time you download the zip pack, you need to double click on the GamesChartAPI-AS3.mpx:</p>
<p><img src="/wp-content/uploads/2010/02/gc05.jpg" /></p>
<p>This will install the component, and that’s the only thing you really need to install: brilliant.</p>
<p>Now open your FLA and browse for the components (Windows > Components menu): you will find the GamesChartAPI one.</p>
<p><img src="/wp-content/uploads/2010/02/gc06.jpg" /></p>
<p>Now, again it’s easy: drag and drop the component onto the stage (better if at the top layer):</p>
<p><img src="/wp-content/uploads/2010/02/gc07.jpg" /></p>
<p>Do not worry about the position: it will be hidden once the game starts. Do you remember the game id? Go to grab it and paste it in the component inspector:</p>
<p><img src="/wp-content/uploads/2010/02/gc08.jpg" /></p>
<p>That’s all! You can now publish the game: you will notice a small G icon on top right of the stage.</p>
<p>You can force to have this cute icon can be hidden or display when you want. Or you can also move it.</p>
<p>I would suggest you to leave it for the entire game and in that position: it’s the best position, just adjust your buttons if you have any conflict.</p>
<p>In this way a player can click on the icon anytime during the game. This will let him vote your game and show chart. In fact when the icon is clicked the chart will appear and will let you open a new window with the games on the list.</p>
<p><img src="/wp-content/uploads/2010/02/gc09.jpg" /></p>
<p>You need one more thing: to publish the game. You can get your SWF file or you can first upload on MochiAds with version control as I am doing. This is the best solution because your game will be updated all over the world with the cute G icon.<br />
That’s all!<br />
Enjoy!</p>
<p>PS.: I just discovered that Haunted House is no more on first position! So let’s go there and click the cute “G” icon!! &raquo;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.emanueleferonato.com/2010/02/23/monetize-your-flash-games-with-gameschart/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Create incredible particle effects with Partigen 2</title>
		<link>http://www.emanueleferonato.com/2010/02/08/create-incredible-particle-effects-with-partigen-2/</link>
		<comments>http://www.emanueleferonato.com/2010/02/08/create-incredible-particle-effects-with-partigen-2/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 10:10:12 +0000</pubDate>
		<dc:creator>Emanuele Feronato</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Box2D]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=2080</guid>
		<description><![CDATA[Do you remember Partigen? Andrew Fitzgerald from Desuade released the new version, of his amazing particle effects engine: Partigen 2. Featuring over 120 exclusive preset effects, Partigen 2 is the first and only extension for Flash that let&#8217;s you to create complex particle effects in just a click. The list of features is huge, so [...]]]></description>
			<content:encoded><![CDATA[<p>Do you remember <a href="http://www.emanueleferonato.com/2007/08/20/create-amazing-particle-effects-in-flash-with-partigen-component/">Partigen</a>?</p>
<p><strong>Andrew Fitzgerald</strong> from Desuade released the new version, of his amazing particle effects engine: <strong><a href="http://desuade.com/partigen" target = "_blank">Partigen 2</a></strong>.</p>
<p><embed src="/wp-content/uploads/2010/02/chimney_swf.swf" allowscriptaccess="always" menu="false" quality="high" width="520" height="268" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></p>
<p>Featuring over 120 exclusive preset effects, <a href="http://desuade.com/partigen" target = "_blank">Partigen 2</a> is the first and only extension for Flash that let&#8217;s you to create complex particle effects in just a click.</p>
<p>The list of features is huge, so I am listing the ones I found most interesting:</p>
<ul>
<li>Full Package XML-Serialization</li>
<li>Fully documented AS3 API</li>
<li>Emitters can be created with either the IDE component or via ActionScript</li>
<li>Particles can be any display object that inherits the Particle class</li>
<li>Renderers can be shared across multiple Emitters</li>
<li>Pools can handle the internal creation and storage of Particle objects in memory</li>
</ul>
<p>You can read the full list of features <a href="http://desuade.com/partigen/specs" target = "_blank">here</a></p>
<p>The documentation is awesome, the best I&#8217;ve seen so far in a product like this one. You can access the <a target  ="_blank" href="http://api.desuade.com/en_as3/">full API documentation</a>, and from <a href="http://desuade.com/partigen/demos" target = "_blank">this link</a> you can access a 42 minutes long video covering the entire Partigen 2 component, and you can create beautiful effects using the component in less than a minute.</p>
<p>Anyway, we&#8217;re not here to talk about the component, but to test the AS3 API.<span id="more-2080"></span></p>
<p><strong>Playing with AS3 API</strong></p>
<p>In this example, I am going to create a particle effect with the user interface provided in the component, then I&#8217;ll export it with XML and finally add it &#8220;on the fly&#8221; to the <a href="http://www.emanueleferonato.com/2010/01/27/box2dflash-2-1a-released-what-changed/">Box2D car example</a>.</p>
<p>Playing with the presets is easy and fun, and once you&#8217;re done, just press &#8220;Copy to XML&#8221; to have the XML copied into your dashboard</p>
<p><img src="/wp-content/uploads/2010/02/part.png" /></p>
<p>Then, since we don&#8217;t want external files in our game, this is the code we need:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Sprite</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">Event</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">KeyboardEvent</span>;
	<span style="color: #009900;">//</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> Box2D.Dynamics.<span style="color: #000000; font-weight: bold;">*</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> Box2D.Collision.<span style="color: #000000; font-weight: bold;">*</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> Box2D.Collision.Shapes.<span style="color: #000000; font-weight: bold;">*</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> Box2D.Common.<span style="color: #004993;">Math</span>.<span style="color: #000000; font-weight: bold;">*</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> Box2D.Dynamics.Joints.<span style="color: #000000; font-weight: bold;">*</span>;
	<span style="color: #009900;">// partigen libraries</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> com.desuade.partigen.emitters.<span style="color: #000000; font-weight: bold;">*</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> com.desuade.partigen.renderers.<span style="color: #000000; font-weight: bold;">*</span>;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> partigen extends <span style="color: #004993;">Sprite</span> <span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> world<span style="color: #000000; font-weight: bold;">:</span>b2World;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> car_body<span style="color: #000000; font-weight: bold;">:</span>b2Body;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> front_wheel<span style="color: #000000; font-weight: bold;">:</span>b2Body;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> rear_wheel<span style="color: #000000; font-weight: bold;">:</span>b2Body;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> front_motor<span style="color: #000000; font-weight: bold;">:</span>b2RevoluteJointDef = <span style="color: #0033ff; font-weight: bold;">new</span> b2RevoluteJointDef<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> rear_motor<span style="color: #000000; font-weight: bold;">:</span>b2RevoluteJointDef = <span style="color: #0033ff; font-weight: bold;">new</span> b2RevoluteJointDef<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> fixtureDef<span style="color: #000000; font-weight: bold;">:</span>b2FixtureDef = <span style="color: #0033ff; font-weight: bold;">new</span> b2FixtureDef<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> rear_motor_added<span style="color: #000000; font-weight: bold;">:</span>b2RevoluteJoint;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> front_motor_added<span style="color: #000000; font-weight: bold;">:</span>b2RevoluteJoint;
		<span style="color: #009900;">// partigen variables</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> the_particle<span style="color: #000000; font-weight: bold;">:</span>particle_mc = <span style="color: #0033ff; font-weight: bold;">new</span> particle_mc<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #6699cc; font-weight: bold;">var</span> particle_emitter<span style="color: #000000; font-weight: bold;">:</span>Emitter = <span style="color: #0033ff; font-weight: bold;">new</span> Emitter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> partigen<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
			world=<span style="color: #0033ff; font-weight: bold;">new</span> b2World<span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">new</span> b2Vec2<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span>,<span style="color: #000000; font-weight:bold;">10.0</span><span style="color: #000000;">&#41;</span>,<span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span>;
			debug_draw<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #6699cc; font-weight: bold;">var</span> body<span style="color: #000000; font-weight: bold;">:</span>b2Body;
			<span style="color: #6699cc; font-weight: bold;">var</span> bodyDef<span style="color: #000000; font-weight: bold;">:</span>b2BodyDef= <span style="color: #0033ff; font-weight: bold;">new</span> b2BodyDef<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #6699cc; font-weight: bold;">var</span> boxDef<span style="color: #000000; font-weight: bold;">:</span>b2PolygonShape = <span style="color: #0033ff; font-weight: bold;">new</span> b2PolygonShape<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #6699cc; font-weight: bold;">var</span> circleDef<span style="color: #000000; font-weight: bold;">:</span>b2CircleShape=<span style="color: #0033ff; font-weight: bold;">new</span> b2CircleShape<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">20</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #6699cc; font-weight: bold;">var</span> revoluteJointDef<span style="color: #000000; font-weight: bold;">:</span>b2RevoluteJointDef = <span style="color: #0033ff; font-weight: bold;">new</span> b2RevoluteJointDef<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			bodyDef.<span style="color: #004993;">position</span>.Set<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">250</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span>, <span style="color: #000000; font-weight:bold;">200</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span><span style="color: #000000;">&#41;</span>;
			boxDef.SetAsBox<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">600</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span>, <span style="color: #000000; font-weight:bold;">20</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span><span style="color: #000000;">&#41;</span>;
			fixtureDef.shape=boxDef;
			fixtureDef.friction=<span style="color: #000000; font-weight:bold;">1</span>;
			fixtureDef.density=<span style="color: #000000; font-weight:bold;">1</span>;
			body=world.CreateBody<span style="color: #000000;">&#40;</span>bodyDef<span style="color: #000000;">&#41;</span>;
			body.CreateFixture<span style="color: #000000;">&#40;</span>fixtureDef<span style="color: #000000;">&#41;</span>;
			bodyDef.<span style="color: #004993;">position</span>.Set<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span>, <span style="color: #000000; font-weight:bold;">200</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span><span style="color: #000000;">&#41;</span>;
			boxDef.SetAsBox<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">50</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span>, <span style="color: #000000; font-weight:bold;">50</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span><span style="color: #000000;">&#41;</span>;
			fixtureDef.shape=boxDef;
			fixtureDef.friction=<span style="color: #000000; font-weight:bold;">1</span>;
			fixtureDef.density=<span style="color: #000000; font-weight:bold;">1</span>;
			body=world.CreateBody<span style="color: #000000;">&#40;</span>bodyDef<span style="color: #000000;">&#41;</span>;
			body.CreateFixture<span style="color: #000000;">&#40;</span>fixtureDef<span style="color: #000000;">&#41;</span>;
			bodyDef.<span style="color: #004993;">position</span>.Set<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">500</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span>, <span style="color: #000000; font-weight:bold;">200</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span><span style="color: #000000;">&#41;</span>;
			boxDef.SetAsBox<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">50</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span>, <span style="color: #000000; font-weight:bold;">50</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span><span style="color: #000000;">&#41;</span>;
			fixtureDef.shape=boxDef;
			fixtureDef.friction=<span style="color: #000000; font-weight:bold;">1</span>;
			fixtureDef.density=<span style="color: #000000; font-weight:bold;">1</span>;
			body=world.CreateBody<span style="color: #000000;">&#40;</span>bodyDef<span style="color: #000000;">&#41;</span>;
			body.CreateFixture<span style="color: #000000;">&#40;</span>fixtureDef<span style="color: #000000;">&#41;</span>;
			bodyDef.<span style="color: #004993;">position</span>.Set<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">250</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span>, <span style="color: #000000; font-weight:bold;">90</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span><span style="color: #000000;">&#41;</span>;
			bodyDef.<span style="color: #004993;">type</span>=b2Body.b2_dynamicBody;
			bodyDef.userData = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			boxDef.SetAsBox<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">50</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span>, <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span><span style="color: #000000;">&#41;</span>;
			fixtureDef.shape=boxDef;
			fixtureDef.density=<span style="color: #000000; font-weight:bold;">1</span>;
			fixtureDef.friction=<span style="color: #000000; font-weight:bold;">1</span>;
			fixtureDef.restitution=<span style="color: #000000; font-weight:bold;">0.1</span>;
			car_body=world.CreateBody<span style="color: #000000;">&#40;</span>bodyDef<span style="color: #000000;">&#41;</span>;
			car_body.CreateFixture<span style="color: #000000;">&#40;</span>fixtureDef<span style="color: #000000;">&#41;</span>;
			fixtureDef.density=<span style="color: #000000; font-weight:bold;">1</span>;
			fixtureDef.friction=<span style="color: #000000; font-weight:bold;">5</span>;
			fixtureDef.density=<span style="color: #000000; font-weight:bold;">0.1</span>;
			fixtureDef.shape=circleDef;
			bodyDef.allowSleep=<span style="color: #0033ff; font-weight: bold;">false</span>;
			bodyDef.<span style="color: #004993;">position</span>.Set<span style="color: #000000;">&#40;</span>car_body.GetWorldCenter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.<span style="color: #004993;">x</span> <span style="color: #000000; font-weight: bold;">+</span> <span style="color: #000000; font-weight:bold;">40</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span>, car_body.GetWorldCenter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.<span style="color: #004993;">y</span><span style="color: #000000;">&#41;</span>;
			front_wheel=world.CreateBody<span style="color: #000000;">&#40;</span>bodyDef<span style="color: #000000;">&#41;</span>;
			front_wheel.CreateFixture<span style="color: #000000;">&#40;</span>fixtureDef<span style="color: #000000;">&#41;</span>;
			bodyDef.<span style="color: #004993;">position</span>.Set<span style="color: #000000;">&#40;</span>car_body.GetWorldCenter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.<span style="color: #004993;">x</span> <span style="color: #000000; font-weight: bold;">-</span> <span style="color: #000000; font-weight:bold;">40</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span>, car_body.GetWorldCenter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.<span style="color: #004993;">y</span><span style="color: #000000;">&#41;</span>;
			rear_wheel=world.CreateBody<span style="color: #000000;">&#40;</span>bodyDef<span style="color: #000000;">&#41;</span>;
			rear_wheel.CreateFixture<span style="color: #000000;">&#40;</span>fixtureDef<span style="color: #000000;">&#41;</span>;
			front_motor.enableMotor=<span style="color: #0033ff; font-weight: bold;">true</span>;
			front_motor.maxMotorTorque=<span style="color: #000000; font-weight:bold;">10</span>;
			front_motor.Initialize<span style="color: #000000;">&#40;</span>car_body, front_wheel, front_wheel.GetWorldCenter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
			front_motor_added=world.CreateJoint<span style="color: #000000;">&#40;</span>front_motor<span style="color: #000000;">&#41;</span> <span style="color: #0033ff; font-weight: bold;">as</span> b2RevoluteJoint;
			rear_motor.enableMotor=<span style="color: #0033ff; font-weight: bold;">true</span>;
			rear_motor.maxMotorTorque=<span style="color: #000000; font-weight:bold;">1</span>;
			rear_motor.Initialize<span style="color: #000000;">&#40;</span>car_body, rear_wheel, rear_wheel.GetWorldCenter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
			rear_motor_added=world.CreateJoint<span style="color: #000000;">&#40;</span>rear_motor<span style="color: #000000;">&#41;</span> <span style="color: #0033ff; font-weight: bold;">as</span> b2RevoluteJoint;
			<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">ENTER_FRAME</span>, update<span style="color: #000000;">&#41;</span>;
			<span style="color: #004993;">stage</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">KeyboardEvent</span>.<span style="color: #004993;">KEY_DOWN</span>, key_down<span style="color: #000000;">&#41;</span>;
			<span style="color: #009900;">// partigen code</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> particle_container<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>particle_container<span style="color: #000000;">&#41;</span>;
			<span style="color: #6699cc; font-weight: bold;">var</span> particle_renderer<span style="color: #000000; font-weight: bold;">:</span>Renderer=<span style="color: #0033ff; font-weight: bold;">new</span> StandardRenderer<span style="color: #000000;">&#40;</span>particle_container,<span style="color: #990000;">'top'</span><span style="color: #000000;">&#41;</span>;
			particle_emitter.renderer=particle_renderer;
			particle_emitter.particle=particle_mc;
			<span style="color: #6699cc; font-weight: bold;">var</span> emmx<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">XML</span> = 
			<span style="color: #000000; font-weight: bold;">&lt;</span>IDEEmitter particle=<span style="color: #990000;">&quot;particle_mc&quot;</span> eps=<span style="color: #990000;">&quot;10&quot;</span> burst=<span style="color: #990000;">&quot;2&quot;</span> life=<span style="color: #990000;">&quot;1&quot;</span> lifeSpread=<span style="color: #990000;">&quot;*0.5&quot;</span> group=<span style="color: #990000;">&quot;GroupParticle&quot;</span> groupAmount=<span style="color: #990000;">&quot;0&quot;</span> groupProximity=<span style="color: #990000;">&quot;10&quot;</span> <span style="color: #004993;">angle</span>=<span style="color: #990000;">&quot;0&quot;</span> angleSpread=<span style="color: #990000;">&quot;*360&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			  <span style="color: #000000; font-weight: bold;">&lt;</span>Controllers<span style="color: #000000; font-weight: bold;">&gt;</span>
			    <span style="color: #000000; font-weight: bold;">&lt;</span>EmitterController<span style="color: #000000; font-weight: bold;">/&gt;</span>
			    <span style="color: #000000; font-weight: bold;">&lt;</span>ParticleController<span style="color: #000000; font-weight: bold;">&gt;</span>
			      <span style="color: #000000; font-weight: bold;">&lt;</span>ParticleTweenController duration=<span style="color: #990000;">&quot;0&quot;</span> property=<span style="color: #990000;">&quot;rotation&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			        <span style="color: #000000; font-weight: bold;">&lt;</span>KeyframeContainer tweenClass=<span style="color: #990000;">&quot;BasicTween&quot;</span> precision=<span style="color: #990000;">&quot;0&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			          <span style="color: #000000; font-weight: bold;">&lt;</span>Keyframe <span style="color: #004993;">position</span>=<span style="color: #990000;">&quot;0&quot;</span> ease=<span style="color: #990000;">&quot;linear&quot;</span> spread=<span style="color: #990000;">&quot;*200&quot;</span> label=<span style="color: #990000;">&quot;begin&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
			          <span style="color: #000000; font-weight: bold;">&lt;</span>Keyframe <span style="color: #004993;">position</span>=<span style="color: #990000;">&quot;1&quot;</span> ease=<span style="color: #990000;">&quot;linear&quot;</span> <span style="color: #004993;">value</span>=<span style="color: #990000;">&quot;0&quot;</span> spread=<span style="color: #990000;">&quot;*100&quot;</span> label=<span style="color: #990000;">&quot;end&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
			        <span style="color: #000000; font-weight: bold;">&lt;/</span>KeyframeContainer<span style="color: #000000; font-weight: bold;">&gt;</span>
			      <span style="color: #000000; font-weight: bold;">&lt;/</span>ParticleTweenController<span style="color: #000000; font-weight: bold;">&gt;</span>
			      <span style="color: #000000; font-weight: bold;">&lt;</span>ParticlePhysicsController duration=<span style="color: #990000;">&quot;0&quot;</span> flip=<span style="color: #990000;">&quot;false&quot;</span> useAngle=<span style="color: #990000;">&quot;true&quot;</span> property=<span style="color: #990000;">&quot;x&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			        <span style="color: #000000; font-weight: bold;">&lt;</span>ParticleTweenController duration=<span style="color: #990000;">&quot;0&quot;</span> property=<span style="color: #990000;">&quot;velocity&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			          <span style="color: #000000; font-weight: bold;">&lt;</span>KeyframeContainer tweenClass=<span style="color: #990000;">&quot;BasicTween&quot;</span> precision=<span style="color: #990000;">&quot;1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			            <span style="color: #000000; font-weight: bold;">&lt;</span>Keyframe <span style="color: #004993;">position</span>=<span style="color: #990000;">&quot;0&quot;</span> ease=<span style="color: #990000;">&quot;linear&quot;</span> <span style="color: #004993;">value</span>=<span style="color: #990000;">&quot;3&quot;</span> spread=<span style="color: #990000;">&quot;*0&quot;</span> label=<span style="color: #990000;">&quot;begin&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
			            <span style="color: #000000; font-weight: bold;">&lt;</span>Keyframe <span style="color: #004993;">position</span>=<span style="color: #990000;">&quot;1&quot;</span> ease=<span style="color: #990000;">&quot;linear&quot;</span> spread=<span style="color: #990000;">&quot;*0&quot;</span> label=<span style="color: #990000;">&quot;end&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
			          <span style="color: #000000; font-weight: bold;">&lt;/</span>KeyframeContainer<span style="color: #000000; font-weight: bold;">&gt;</span>
			        <span style="color: #000000; font-weight: bold;">&lt;/</span>ParticleTweenController<span style="color: #000000; font-weight: bold;">&gt;</span>
			        <span style="color: #000000; font-weight: bold;">&lt;</span>ParticleTweenController duration=<span style="color: #990000;">&quot;0&quot;</span> property=<span style="color: #990000;">&quot;acceleration&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			          <span style="color: #000000; font-weight: bold;">&lt;</span>KeyframeContainer tweenClass=<span style="color: #990000;">&quot;BasicTween&quot;</span> precision=<span style="color: #990000;">&quot;2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			            <span style="color: #000000; font-weight: bold;">&lt;</span>Keyframe <span style="color: #004993;">position</span>=<span style="color: #990000;">&quot;0&quot;</span> ease=<span style="color: #990000;">&quot;linear&quot;</span> spread=<span style="color: #990000;">&quot;*0&quot;</span> label=<span style="color: #990000;">&quot;begin&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
			            <span style="color: #000000; font-weight: bold;">&lt;</span>Keyframe <span style="color: #004993;">position</span>=<span style="color: #990000;">&quot;1&quot;</span> ease=<span style="color: #990000;">&quot;linear&quot;</span> spread=<span style="color: #990000;">&quot;*0&quot;</span> label=<span style="color: #990000;">&quot;end&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
			          <span style="color: #000000; font-weight: bold;">&lt;/</span>KeyframeContainer<span style="color: #000000; font-weight: bold;">&gt;</span>
			        <span style="color: #000000; font-weight: bold;">&lt;/</span>ParticleTweenController<span style="color: #000000; font-weight: bold;">&gt;</span>
			        <span style="color: #000000; font-weight: bold;">&lt;</span>ParticleTweenController duration=<span style="color: #990000;">&quot;0&quot;</span> property=<span style="color: #990000;">&quot;friction&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			          <span style="color: #000000; font-weight: bold;">&lt;</span>KeyframeContainer tweenClass=<span style="color: #990000;">&quot;BasicTween&quot;</span> precision=<span style="color: #990000;">&quot;2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			            <span style="color: #000000; font-weight: bold;">&lt;</span>Keyframe <span style="color: #004993;">position</span>=<span style="color: #990000;">&quot;0&quot;</span> ease=<span style="color: #990000;">&quot;linear&quot;</span> spread=<span style="color: #990000;">&quot;*0&quot;</span> label=<span style="color: #990000;">&quot;begin&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
			            <span style="color: #000000; font-weight: bold;">&lt;</span>Keyframe <span style="color: #004993;">position</span>=<span style="color: #990000;">&quot;1&quot;</span> ease=<span style="color: #990000;">&quot;linear&quot;</span> spread=<span style="color: #990000;">&quot;*0&quot;</span> label=<span style="color: #990000;">&quot;end&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
			          <span style="color: #000000; font-weight: bold;">&lt;/</span>KeyframeContainer<span style="color: #000000; font-weight: bold;">&gt;</span>
			        <span style="color: #000000; font-weight: bold;">&lt;/</span>ParticleTweenController<span style="color: #000000; font-weight: bold;">&gt;</span>
			      <span style="color: #000000; font-weight: bold;">&lt;/</span>ParticlePhysicsController<span style="color: #000000; font-weight: bold;">&gt;</span>
			      <span style="color: #000000; font-weight: bold;">&lt;</span>ParticleTweenController duration=<span style="color: #990000;">&quot;0&quot;</span> property=<span style="color: #990000;">&quot;alpha&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			        <span style="color: #000000; font-weight: bold;">&lt;</span>KeyframeContainer tweenClass=<span style="color: #990000;">&quot;BasicTween&quot;</span> precision=<span style="color: #990000;">&quot;2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			          <span style="color: #000000; font-weight: bold;">&lt;</span>Keyframe <span style="color: #004993;">position</span>=<span style="color: #990000;">&quot;0&quot;</span> ease=<span style="color: #990000;">&quot;linear&quot;</span> <span style="color: #004993;">value</span>=<span style="color: #990000;">&quot;0.1&quot;</span> spread=<span style="color: #990000;">&quot;*0.8&quot;</span> label=<span style="color: #990000;">&quot;begin&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
			          <span style="color: #000000; font-weight: bold;">&lt;</span>Keyframe <span style="color: #004993;">position</span>=<span style="color: #990000;">&quot;1&quot;</span> ease=<span style="color: #990000;">&quot;linear&quot;</span> spread=<span style="color: #990000;">&quot;*0&quot;</span> label=<span style="color: #990000;">&quot;end&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
			        <span style="color: #000000; font-weight: bold;">&lt;/</span>KeyframeContainer<span style="color: #000000; font-weight: bold;">&gt;</span>
			      <span style="color: #000000; font-weight: bold;">&lt;/</span>ParticleTweenController<span style="color: #000000; font-weight: bold;">&gt;</span>
			      <span style="color: #000000; font-weight: bold;">&lt;</span>ParticleTweenController duration=<span style="color: #990000;">&quot;0&quot;</span> property=<span style="color: #990000;">&quot;scale&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			        <span style="color: #000000; font-weight: bold;">&lt;</span>KeyframeContainer tweenClass=<span style="color: #990000;">&quot;BasicTween&quot;</span> precision=<span style="color: #990000;">&quot;2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			          <span style="color: #000000; font-weight: bold;">&lt;</span>Keyframe <span style="color: #004993;">position</span>=<span style="color: #990000;">&quot;0&quot;</span> ease=<span style="color: #990000;">&quot;linear&quot;</span> <span style="color: #004993;">value</span>=<span style="color: #990000;">&quot;0.3&quot;</span> spread=<span style="color: #990000;">&quot;*0.5&quot;</span> label=<span style="color: #990000;">&quot;begin&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
			          <span style="color: #000000; font-weight: bold;">&lt;</span>Keyframe <span style="color: #004993;">position</span>=<span style="color: #990000;">&quot;1&quot;</span> ease=<span style="color: #990000;">&quot;linear&quot;</span> <span style="color: #004993;">value</span>=<span style="color: #990000;">&quot;0&quot;</span> spread=<span style="color: #990000;">&quot;*0&quot;</span> label=<span style="color: #990000;">&quot;end&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
			        <span style="color: #000000; font-weight: bold;">&lt;/</span>KeyframeContainer<span style="color: #000000; font-weight: bold;">&gt;</span>
			      <span style="color: #000000; font-weight: bold;">&lt;/</span>ParticleTweenController<span style="color: #000000; font-weight: bold;">&gt;</span>
			      <span style="color: #000000; font-weight: bold;">&lt;</span>ParticlePhysicsController duration=<span style="color: #990000;">&quot;0&quot;</span> flip=<span style="color: #990000;">&quot;true&quot;</span> useAngle=<span style="color: #990000;">&quot;true&quot;</span> property=<span style="color: #990000;">&quot;y&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			        <span style="color: #000000; font-weight: bold;">&lt;</span>ParticleTweenController duration=<span style="color: #990000;">&quot;0&quot;</span> property=<span style="color: #990000;">&quot;velocity&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			          <span style="color: #000000; font-weight: bold;">&lt;</span>KeyframeContainer tweenClass=<span style="color: #990000;">&quot;BasicTween&quot;</span> precision=<span style="color: #990000;">&quot;1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			            <span style="color: #000000; font-weight: bold;">&lt;</span>Keyframe <span style="color: #004993;">position</span>=<span style="color: #990000;">&quot;0&quot;</span> ease=<span style="color: #990000;">&quot;linear&quot;</span> <span style="color: #004993;">value</span>=<span style="color: #990000;">&quot;3&quot;</span> spread=<span style="color: #990000;">&quot;*0&quot;</span> label=<span style="color: #990000;">&quot;begin&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
			            <span style="color: #000000; font-weight: bold;">&lt;</span>Keyframe <span style="color: #004993;">position</span>=<span style="color: #990000;">&quot;1&quot;</span> ease=<span style="color: #990000;">&quot;linear&quot;</span> spread=<span style="color: #990000;">&quot;*0&quot;</span> label=<span style="color: #990000;">&quot;end&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
			          <span style="color: #000000; font-weight: bold;">&lt;/</span>KeyframeContainer<span style="color: #000000; font-weight: bold;">&gt;</span>
			        <span style="color: #000000; font-weight: bold;">&lt;/</span>ParticleTweenController<span style="color: #000000; font-weight: bold;">&gt;</span>
			        <span style="color: #000000; font-weight: bold;">&lt;</span>ParticleTweenController duration=<span style="color: #990000;">&quot;0&quot;</span> property=<span style="color: #990000;">&quot;acceleration&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			          <span style="color: #000000; font-weight: bold;">&lt;</span>KeyframeContainer tweenClass=<span style="color: #990000;">&quot;BasicTween&quot;</span> precision=<span style="color: #990000;">&quot;2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			            <span style="color: #000000; font-weight: bold;">&lt;</span>Keyframe <span style="color: #004993;">position</span>=<span style="color: #990000;">&quot;0&quot;</span> ease=<span style="color: #990000;">&quot;linear&quot;</span> spread=<span style="color: #990000;">&quot;*0&quot;</span> label=<span style="color: #990000;">&quot;begin&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
			            <span style="color: #000000; font-weight: bold;">&lt;</span>Keyframe <span style="color: #004993;">position</span>=<span style="color: #990000;">&quot;1&quot;</span> ease=<span style="color: #990000;">&quot;linear&quot;</span> spread=<span style="color: #990000;">&quot;*0&quot;</span> label=<span style="color: #990000;">&quot;end&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
			          <span style="color: #000000; font-weight: bold;">&lt;/</span>KeyframeContainer<span style="color: #000000; font-weight: bold;">&gt;</span>
			        <span style="color: #000000; font-weight: bold;">&lt;/</span>ParticleTweenController<span style="color: #000000; font-weight: bold;">&gt;</span>
			        <span style="color: #000000; font-weight: bold;">&lt;</span>ParticleTweenController duration=<span style="color: #990000;">&quot;0&quot;</span> property=<span style="color: #990000;">&quot;friction&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			          <span style="color: #000000; font-weight: bold;">&lt;</span>KeyframeContainer tweenClass=<span style="color: #990000;">&quot;BasicTween&quot;</span> precision=<span style="color: #990000;">&quot;2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
			            <span style="color: #000000; font-weight: bold;">&lt;</span>Keyframe <span style="color: #004993;">position</span>=<span style="color: #990000;">&quot;0&quot;</span> ease=<span style="color: #990000;">&quot;linear&quot;</span> spread=<span style="color: #990000;">&quot;*0&quot;</span> label=<span style="color: #990000;">&quot;begin&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
			            <span style="color: #000000; font-weight: bold;">&lt;</span>Keyframe <span style="color: #004993;">position</span>=<span style="color: #990000;">&quot;1&quot;</span> ease=<span style="color: #990000;">&quot;linear&quot;</span> spread=<span style="color: #990000;">&quot;*0&quot;</span> label=<span style="color: #990000;">&quot;end&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span>
			          <span style="color: #000000; font-weight: bold;">&lt;/</span>KeyframeContainer<span style="color: #000000; font-weight: bold;">&gt;</span>
			        <span style="color: #000000; font-weight: bold;">&lt;/</span>ParticleTweenController<span style="color: #000000; font-weight: bold;">&gt;</span>
			      <span style="color: #000000; font-weight: bold;">&lt;/</span>ParticlePhysicsController<span style="color: #000000; font-weight: bold;">&gt;</span>
			    <span style="color: #000000; font-weight: bold;">&lt;/</span>ParticleController<span style="color: #000000; font-weight: bold;">&gt;</span>
			  <span style="color: #000000; font-weight: bold;">&lt;/</span>Controllers<span style="color: #000000; font-weight: bold;">&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;/</span>IDEEmitter<span style="color: #000000; font-weight: bold;">&gt;</span>;
			particle_emitter.fromXML<span style="color: #000000;">&#40;</span>emmx<span style="color: #000000;">&#41;</span>;
			particle_emitter.<span style="color: #004993;">start</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> key_down<span style="color: #000000;">&#40;</span>event<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">KeyboardEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #0033ff; font-weight: bold;">switch</span> <span style="color: #000000;">&#40;</span>event.<span style="color: #004993;">keyCode</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">39</span> <span style="color: #000000; font-weight: bold;">:</span>
					rear_motor_added.SetMotorSpeed<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">10</span><span style="color: #000000;">&#41;</span>;
					front_motor_added.SetMotorSpeed<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">10</span><span style="color: #000000;">&#41;</span>;
					<span style="color: #0033ff; font-weight: bold;">break</span>;
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">37</span> <span style="color: #000000; font-weight: bold;">:</span>
					rear_motor_added.SetMotorSpeed<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">10</span><span style="color: #000000;">&#41;</span>;
					front_motor_added.SetMotorSpeed<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">10</span><span style="color: #000000;">&#41;</span>;
					<span style="color: #0033ff; font-weight: bold;">break</span>;
			<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">&#125;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> debug_draw<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> m_sprite<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span>;
			m_sprite = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>m_sprite<span style="color: #000000;">&#41;</span>;
			<span style="color: #6699cc; font-weight: bold;">var</span> dbgDraw<span style="color: #000000; font-weight: bold;">:</span>b2DebugDraw = <span style="color: #0033ff; font-weight: bold;">new</span> b2DebugDraw<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #6699cc; font-weight: bold;">var</span> dbgSprite<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			m_sprite.<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>dbgSprite<span style="color: #000000;">&#41;</span>;
			dbgDraw.SetSprite<span style="color: #000000;">&#40;</span>m_sprite<span style="color: #000000;">&#41;</span>;
			dbgDraw.SetDrawScale<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">30</span><span style="color: #000000;">&#41;</span>;
			dbgDraw.SetFillAlpha<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0.5</span><span style="color: #000000;">&#41;</span>;
			dbgDraw.SetLineThickness<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span>;
			dbgDraw.SetFlags<span style="color: #000000;">&#40;</span>b2DebugDraw.e_shapeBit<span style="color: #000000;">&#41;</span>;
			world.SetDebugDraw<span style="color: #000000;">&#40;</span>dbgDraw<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> update<span style="color: #000000;">&#40;</span>e <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			world.Step<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">30</span>,<span style="color: #000000; font-weight:bold;">10</span>,<span style="color: #000000; font-weight:bold;">10</span><span style="color: #000000;">&#41;</span>;
			world.ClearForces<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			world.DrawDebugData<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> bb<span style="color: #000000; font-weight: bold;">:</span>b2Body = world.GetBodyList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; bb; bb = bb.GetNext<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
				<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>bb.GetUserData<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
					particle_emitter.<span style="color: #004993;">x</span>=bb.GetPosition<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.<span style="color: #004993;">x</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000; font-weight:bold;">30</span>;
					particle_emitter.<span style="color: #004993;">y</span>=bb.GetPosition<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.<span style="color: #004993;">y</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000; font-weight:bold;">30</span>;
				<span style="color: #000000;">&#125;</span>
			<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>As you can see, the partigen code is very small, the most of the code is the particle XML itself.</p>
<p>And this is the result: I wanted fake bodies to spread from the car&#8217;s body.</p>
<p><embed src="/wp-content/uploads/2010/02/partigen.swf" allowscriptaccess="always" menu="false" quality="high" width="500" height="200" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></p>
<p>Move the car with left/right arrow keys and enjoy.</p>
<p><strong>Final considerations</strong></p>
<p><a href="http://desuade.com/partigen" target = "_blank">Partigen 2</a> is the most complete tool to create particle effects with Flash IDE and API, in a couple of minutes you will be able to create amazing effects, saving hours of trial and error.</p>
<p>Desuade is so confident that you&#8217;ll fall even more in love with Partigen 2, it comes with a <strong>100% satisfaction, 60 day money-back guarantee</strong>. A single license costs <strong>$97</strong>, and it&#8217;s positively a must-have.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.emanueleferonato.com/2010/02/08/create-incredible-particle-effects-with-partigen-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Create amazing Flash slideshows with CU3ER</title>
		<link>http://www.emanueleferonato.com/2009/12/01/create-amazing-flash-slideshows-with-cu3er/</link>
		<comments>http://www.emanueleferonato.com/2009/12/01/create-amazing-flash-slideshows-with-cu3er/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 07:54:49 +0000</pubDate>
		<dc:creator>Emanuele Feronato</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=2018</guid>
		<description><![CDATA[If you are looking for a fresh, original, XML customizable and free image slider, you should check out CU3ER. Powered by Papervision3D, CU3ER an image slider initially conceived to create 3D transitions between slides, turned out to be a convenient and multifunction solution that can be applied in a range of website building areas, from [...]]]></description>
			<content:encoded><![CDATA[<p>If you are looking for a fresh, original, XML customizable and <strong>free</strong> image slider, you should check out <a href="http://www.progressivered.com/cu3er/" target = "_blank"><strong>CU3ER</strong></a>.</p>
<p>Powered by Papervision3D, CU3ER an image slider initially conceived to create 3D transitions between slides, turned out to be a convenient and multifunction solution that can be applied in a range of website building areas, from content slider to feature slider and image &#038; banner rotator.</p>
<p>I played with it a bit and starting from the built in example and following the <a target = "_blank" href="http://www.progressivered.com/cu3er/docs/">docs</a> I was able to create an interesting commented source code to help you all getting started:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;utf-8&quot;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cu3er<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
     <span style="color: #808080; font-style: italic;">&lt;!-- first, define the settings --&gt;</span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;settings<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #808080; font-style: italic;">&lt;!-- set autoplay if you want the slideshow to... autoplay --&gt;</span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;auto_play<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
               <span style="color: #808080; font-style: italic;">&lt;!-- the &quot;loading&quot; symbol and the time between a picture and another --&gt;</span>
               <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;defaults</span> <span style="color: #000066;">symbol</span>=<span style="color: #ff0000;">&quot;circular&quot;</span> <span style="color: #000066;">time</span>=<span style="color: #ff0000;">&quot;4&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span> 
               <span style="color: #808080; font-style: italic;">&lt;!-- symbol position, size and color --&gt;</span>
               <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;tweenIn</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">&quot;500&quot;</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">&quot;20&quot;</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">&quot;35&quot;</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">&quot;35&quot;</span> <span style="color: #000066;">tint</span>=<span style="color: #ff0000;">&quot;0xFFFFFF&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span> 
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/auto_play<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
          <span style="color: #808080; font-style: italic;">&lt;!-- defining the look of the caption text --&gt;</span>
     	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
     	    <span style="color: #808080; font-style: italic;">&lt;!-- font family and size --&gt;</span>
     	    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;defaults</span> <span style="color: #000066;">heading_font</span>=<span style="color: #ff0000;">&quot;Verdana&quot;</span> heading_text_size = <span style="color: #ff0000;">&quot;12&quot;</span> <span style="color: #000066;">paragraph_font</span>=<span style="color: #ff0000;">&quot;Verdana&quot;</span> paragraph_text_size = <span style="color: #ff0000;">&quot;11&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
              <span style="color: #808080; font-style: italic;">&lt;!-- description box itself --&gt;</span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;tweenIn</span> <span style="color: #000066;">tint</span>=<span style="color: #ff0000;">&quot;0x000000&quot;</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">&quot;240&quot;</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">&quot;0.5&quot;</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">&quot;520&quot;</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">&quot;80&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #808080; font-style: italic;">&lt;!-- &quot;prev&quot; button --&gt;</span>
         	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;prev_button<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
         	     <span style="color: #808080; font-style: italic;">&lt;!-- corner styles --&gt;</span>
     		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;defaults</span> <span style="color: #000066;">round_corners</span>=<span style="color: #ff0000;">&quot;25,0,25,0&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
     		<span style="color: #808080; font-style: italic;">&lt;!-- rollover effect --&gt;</span>
     		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;tweenOver</span> <span style="color: #000066;">tint</span>=<span style="color: #ff0000;">&quot;0xFFFFFF&quot;</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">&quot;0.5&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
     		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;tweenOut</span> <span style="color: #000066;">tint</span>=<span style="color: #ff0000;">&quot;0x000000&quot;</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">&quot;-50&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
     	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/prev_button<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>	
         	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;prev_symbol<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
         	     <span style="color: #808080; font-style: italic;">&lt;!-- &quot;prev&quot; symbol (the arrow) --&gt;</span>
     		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;defaults</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;8&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span> 
     	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/prev_symbol<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>	
     	<span style="color: #808080; font-style: italic;">&lt;!-- &quot;next&quot; button... same thing as &quot;prev&quot; --&gt;</span>
         	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;next_button<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
     		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;defaults</span> <span style="color: #000066;">round_corners</span>=<span style="color: #ff0000;">&quot;0,25,0,25&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>			
     		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;tweenOver</span> <span style="color: #000066;">tint</span>=<span style="color: #ff0000;">&quot;0xFFFFFF&quot;</span> <span style="color: #000066;">alpha</span>=<span style="color: #ff0000;">&quot;0.5&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
     		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;tweenOut</span> <span style="color: #000066;">tint</span>=<span style="color: #ff0000;">&quot;0x000000&quot;</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">&quot;570&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
     	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/next_button<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #808080; font-style: italic;">&lt;!-- &quot;next&quot; symbol... same thing as &quot;prev&quot; --&gt;</span>
         	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;next_symbol<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
     		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;defaults</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;8&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span> 
     	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/next_symbol<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>	
&nbsp;
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/settings<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>  
     <span style="color: #808080; font-style: italic;">&lt;!-- defining the slides --&gt;</span>  
     <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;slides<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #808080; font-style: italic;">&lt;!-- 1st slide --&gt;</span>  
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;slide<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
               <span style="color: #808080; font-style: italic;">&lt;!-- image url --&gt;</span> 
               <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>images/slide_1.jpg<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
               <span style="color: #808080; font-style: italic;">&lt;!-- image link --&gt;</span> 
               <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;link</span> <span style="color: #000066;">target</span>=<span style="color: #ff0000;">&quot;_blank&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>http://www.google.com/<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/link<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
               <span style="color: #808080; font-style: italic;">&lt;!-- image caption --&gt;</span>         
               <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>  
                    <span style="color: #808080; font-style: italic;">&lt;!-- title --&gt;</span>     
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;heading<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>This is my heading text<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/heading<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
                    <span style="color: #808080; font-style: italic;">&lt;!-- description --&gt;</span>  
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;paragraph<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Paragraph text goes here!<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/paragraph<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>  
               <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>  
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/slide<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #808080; font-style: italic;">&lt;!-- transition --&gt;</span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;transition</span> <span style="color: #000066;">num</span>=<span style="color: #ff0000;">&quot;3&quot;</span> <span style="color: #000066;">slicing</span>=<span style="color: #ff0000;">&quot;vertical&quot;</span> <span style="color: #000066;">direction</span>=<span style="color: #ff0000;">&quot;down&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;slide<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
               <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>images/slide_2.jpg<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/slide<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>		
          <span style="color: #808080; font-style: italic;">&lt;!-- transition --&gt;</span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;transition</span> <span style="color: #000066;">num</span>=<span style="color: #ff0000;">&quot;3&quot;</span> <span style="color: #000066;">slicing</span>=<span style="color: #ff0000;">&quot;vertical&quot;</span> <span style="color: #000066;">direction</span>=<span style="color: #ff0000;">&quot;down&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;slide<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
               <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>images/slide_3.jpg<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/slide<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #808080; font-style: italic;">&lt;!-- transition --&gt;</span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;transition</span> <span style="color: #000066;">num</span>=<span style="color: #ff0000;">&quot;4&quot;</span> <span style="color: #000066;">direction</span>=<span style="color: #ff0000;">&quot;right&quot;</span> <span style="color: #000066;">shader</span>=<span style="color: #ff0000;">&quot;flat&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;slide<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
               <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>images/slide_4.jpg<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/slide<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #808080; font-style: italic;">&lt;!-- transition --&gt;</span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;transition</span> <span style="color: #000066;">num</span>=<span style="color: #ff0000;">&quot;4&quot;</span> <span style="color: #000066;">direction</span>=<span style="color: #ff0000;">&quot;left&quot;</span> <span style="color: #000066;">shader</span>=<span style="color: #ff0000;">&quot;flat&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;slide<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
               <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>images/slide_5.jpg<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/slide<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #808080; font-style: italic;">&lt;!-- transition --&gt;</span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;transition</span> <span style="color: #000066;">num</span>=<span style="color: #ff0000;">&quot;4&quot;</span> <span style="color: #000066;">direction</span>=<span style="color: #ff0000;">&quot;right&quot;</span> <span style="color: #000066;">shader</span>=<span style="color: #ff0000;">&quot;none&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
     <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/slides<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/cu3er<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>And this is the result:<span id="more-2018"></span></p>
<p><iframe width = "100%" height = "320" src="http://www.emanueleferonato.com/stuff/cu3er/index.html" frameborder="0"></iframe></p>
<p>I&#8217;ll definitively use it in a creative way on this blog during next days&#8230; check out <a href="http://www.progressivered.com/cu3er/" target = "_blank"><strong>CU3ER</strong></a>!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.emanueleferonato.com/2009/12/01/create-amazing-flash-slideshows-with-cu3er/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Flash Decompiler Trillix review</title>
		<link>http://www.emanueleferonato.com/2009/08/13/flash-decompiler-trillix-review/</link>
		<comments>http://www.emanueleferonato.com/2009/08/13/flash-decompiler-trillix-review/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 14:53:44 +0000</pubDate>
		<dc:creator>Emanuele Feronato</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1526</guid>
		<description><![CDATA[When you compile a Flash project, you know you create a swf file. Such file is created according to the SWF File Format Specification so you can create your IDE and develop your Flash projects without using the official Adobe Flash CS4 package. Since you can compile your own swf file, there is also a [...]]]></description>
			<content:encoded><![CDATA[<p>When you compile a Flash project, you know you create a <code>swf</code> file.</p>
<p>Such file is created according to the <a href="http://www.adobe.com/devnet/swf/" target = "_blank">SWF File Format Specification</a> so you can create your IDE and develop your Flash projects without using the official Adobe Flash CS4 package.</p>
<p>Since you can compile your own <code>swf</code> file, there is also a way to decompile it.</p>
<p><a href="http://www.flash-decompiler.com/" target = "_blank"><strong>Flash Decompiler Trillix</strong></a> is the most advanced tool to convert <code>swf</code> to <code>fla</code>, with full support of Flash 10 and AS3.</p>
<p><strong>Legal and ethical dilemma</strong></p>
<p>As you must know, different Countries have different laws about copyrights. Even <a href="http://en.wikipedia.org/wiki/Reverse_engineering#Legality" target = "_blank">Wikipedia</a> does not provide enough information about reverse engineering legality.</p>
<p>On the ethical side, you should respect developers&#8217; work and don&#8217;t try to decompile their projects and &#8220;get inspired&#8221; from their code or use their graphics.</p>
<p>But it would be a big hypocrisy saying I&#8217;d never take a look to someone else&#8217;s secrets. If I could access to <a href="http://en.wikipedia.org/wiki/Coca-Cola_formula" target = "_blank">Coca-Cola formula</a> or <a href="http://en.wikipedia.org/wiki/PageRank" target = "_blank">Google&#8217;s PageRank algorithm</a>, I would.</p>
<p>Definitively.<span id="more-1526"></span></p>
<p><strong>My personal experience</strong></p>
<p>As some of you know, I am the co-founder of a web company&#8230; you know&#8230; hosting, web apps, web sites, SEO and all those things you normally can&#8217;t talk about with women.</p>
<p>Recently we acquired a new customer with a Flash site. A well designed Flash site, I have to say. The problem was the company behind the project did not survive the economy breakdown and closed some months ago.</p>
<p>The customer needed some minor changes in the site and renewing the domain (and changing the hosting) but he never got a reply at the emails he sent to the old company owners.</p>
<p>That&#8217;s what happen when you rely on cheap companies (hint)</p>
<p>So we made two proposals, at two (very) different prices</p>
<p>1 &#8211; Redesigning the site making it as close as possible to the original one</p>
<p>2 &#8211; Decompiling the site and making the required changes</p>
<p>You can imagine the choice and finally I am ready to start the review</p>
<p><strong>Decompiling test</strong></p>
<p>I am testing this tool on the movie you can see at <a href="http://www.emanueleferonato.com/2009/08/12/pure-as3-magnifying-effect-using-displacement-map-filter/">Pure AS3 magnifying effect using Displacement Map Filter</a>.</p>
<p>The interface is just brilliant:</p>
<p><img src="/images/trillix.jpg" alt="" /></p>
<p>you can preview the movie, look at its properties and browsing its assets at the same time.</p>
<p>You can export single images as well as chuncks of codes, but the most interesting feature is the conversion from <code>swf</code> to <code>fla</code>.</p>
<p>And that&#8217;s what I did</p>
<p>Do you remember my original library?</p>
<p><img src="/images/as3displace.jpg" alt="" /></p>
<p>well, the one created by Flash Decompiler Trillix is even more organized&#8230;</p>
<p><img src="/images/trillix2.jpg" alt="" /></p>
<p>but the most interesting test is performed on the scripts:</p>
<p>this is the original one:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Sprite</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Bitmap</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">BitmapData</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.filters</span>.<span style="color: #004993;">DisplacementMapFilter</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.geom</span>.<span style="color: #004993;">Point</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">Event</span>;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> as3displace extends <span style="color: #004993;">Sprite</span> <span style="color: #000000;">&#123;</span>
		<span style="color: #009900;">// creating a new Bitmap variable</span>
		<span style="color: #6699cc; font-weight: bold;">var</span> the_bitmap<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Bitmap</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Bitmap</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #009900;">// creating a variable to store &quot;malecon&quot; image.</span>
		<span style="color: #009900;">// notice you MUST specify width and height or you'll get an error</span>
		<span style="color: #009900;">// 1136: Incorrect number of arguments.  Expected 2.</span>
		<span style="color: #6699cc; font-weight: bold;">var</span> the_image=<span style="color: #0033ff; font-weight: bold;">new</span> malecon<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">500</span>,<span style="color: #000000; font-weight:bold;">373</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #009900;">// creating a variable to store the &quot;displace_movie&quot; movieclip</span>
		<span style="color: #6699cc; font-weight: bold;">var</span> the_displace<span style="color: #000000; font-weight: bold;">:</span>displace_movie=<span style="color: #0033ff; font-weight: bold;">new</span> displace_movie<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #009900;">// creating a point at the upper left corner</span>
		<span style="color: #6699cc; font-weight: bold;">var</span> starting_point<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Point</span>=<span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Point</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span>,<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #009900;">// creating a 100x100 bitmap data, that will contain the gradient movieclip</span>
		<span style="color: #6699cc; font-weight: bold;">var</span> displacement_map<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">BitmapData</span>=<span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">BitmapData</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">100</span>,<span style="color: #000000; font-weight:bold;">100</span>,<span style="color: #0033ff; font-weight: bold;">true</span>,0x808080<span style="color: #000000;">&#41;</span>;
		<span style="color: #009900;">// creating the displacement map filter</span>
		<span style="color: #6699cc; font-weight: bold;">var</span> displacement_filter<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">DisplacementMapFilter</span>=<span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">DisplacementMapFilter</span><span style="color: #000000;">&#40;</span>displacement_map,starting_point,<span style="color: #000000; font-weight:bold;">1</span>,<span style="color: #000000; font-weight:bold;">2</span>,<span style="color: #000000; font-weight:bold;">50</span>,<span style="color: #000000; font-weight:bold;">50</span>,<span style="color: #990000;">&quot;color&quot;</span>,0x000000,<span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> as3displace<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #009900;">// assigning the &quot;the_image&quot; data (the photo) as bitmapData of &quot;the_bitmap&quot; variable</span>
			the_bitmap.<span style="color: #004993;">bitmapData</span>=the_image;
			<span style="color: #009900;">// in the displacement map, draw (copy) the content of &quot;the_displace&quot; movieclip</span>
			<span style="color: #009900;">// (the gradient sphere)</span>
			displacement_map.<span style="color: #004993;">draw</span><span style="color: #000000;">&#40;</span>the_displace<span style="color: #000000;">&#41;</span>;
			<span style="color: #009900;">// placing &quot;the_bitmap&quot; on the stage</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>the_bitmap<span style="color: #000000;">&#41;</span>;
			<span style="color: #009900;">// listener that triggers at every frame</span>
			<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">ENTER_FRAME</span>, onFrame<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> onFrame<span style="color: #000000;">&#40;</span>e<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #009900;">// changing the starting point of the displacement map filter according to mouse position</span>
			starting_point.<span style="color: #004993;">x</span>=mouseX<span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">50</span>;
			starting_point.<span style="color: #004993;">y</span>=mouseY<span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">50</span>;
			displacement_filter.<span style="color: #004993;">mapPoint</span>=starting_point;
			<span style="color: #009900;">// applying the displacement filter to &quot;the_bitmap&quot; (the photo)</span>
			the_bitmap.<span style="color: #004993;">filters</span>=<span style="color: #000000;">&#91;</span>displacement_filter<span style="color: #000000;">&#93;</span>;
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>and this is the one generated by Flash Decompiler Trillix</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> 
<span style="color: #000000;">&#123;</span>
    <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #000000; font-weight: bold;">*</span>;
    <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #000000; font-weight: bold;">*</span>;
    <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.filters</span>.<span style="color: #000000; font-weight: bold;">*</span>;
    <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.geom</span>.<span style="color: #000000; font-weight: bold;">*</span>;
&nbsp;
    <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> as3displace extends <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Sprite</span>
    <span style="color: #000000;">&#123;</span>
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> as3displace<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #0033ff; font-weight: bold;">this</span>.the_bitmap = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Bitmap</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #0033ff; font-weight: bold;">this</span>.the_image = <span style="color: #0033ff; font-weight: bold;">new</span> malecon<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">500</span>, <span style="color: #000000; font-weight:bold;">373</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #0033ff; font-weight: bold;">this</span>.the_displace = <span style="color: #0033ff; font-weight: bold;">new</span> displace_movie<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #0033ff; font-weight: bold;">this</span>.starting_point = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">flash.geom</span>.<span style="color: #004993;">Point</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span>, <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #0033ff; font-weight: bold;">this</span>.displacement_map = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">BitmapData</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">100</span>, <span style="color: #000000; font-weight:bold;">100</span>, <span style="color: #0033ff; font-weight: bold;">true</span>, <span style="color: #000000; font-weight:bold;">8421504</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #0033ff; font-weight: bold;">this</span>.displacement_filter = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">flash.filters</span>.<span style="color: #004993;">DisplacementMapFilter</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span>.displacement_map, <span style="color: #0033ff; font-weight: bold;">this</span>.starting_point, <span style="color: #000000; font-weight:bold;">1</span>, <span style="color: #000000; font-weight:bold;">2</span>, <span style="color: #000000; font-weight:bold;">50</span>, <span style="color: #000000; font-weight:bold;">50</span>, <span style="color: #990000;">&quot;color&quot;</span>, <span style="color: #000000; font-weight:bold;">0</span>, <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #0033ff; font-weight: bold;">super</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #0033ff; font-weight: bold;">this</span>.the_bitmap.<span style="color: #004993;">bitmapData</span> = <span style="color: #0033ff; font-weight: bold;">this</span>.the_image;
            <span style="color: #0033ff; font-weight: bold;">this</span>.displacement_map.<span style="color: #004993;">draw</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span>.the_displace<span style="color: #000000;">&#41;</span>;
            <span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span>.the_bitmap<span style="color: #000000;">&#41;</span>;
            <span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">flash.events</span>.<span style="color: #004993;">Event</span>.<span style="color: #004993;">ENTER_FRAME</span>, <span style="color: #0033ff; font-weight: bold;">this</span>.onFrame<span style="color: #000000;">&#41;</span>;
            <span style="color: #0033ff; font-weight: bold;">return</span>;
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> onFrame<span style="color: #000000;">&#40;</span>arg1<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">flash.events</span>.<span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:*</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #0033ff; font-weight: bold;">this</span>.starting_point.<span style="color: #004993;">x</span> = <span style="color: #004993;">mouseX</span> <span style="color: #000000; font-weight: bold;">-</span> <span style="color: #000000; font-weight:bold;">50</span>;
            <span style="color: #0033ff; font-weight: bold;">this</span>.starting_point.<span style="color: #004993;">y</span> = <span style="color: #004993;">mouseY</span> <span style="color: #000000; font-weight: bold;">-</span> <span style="color: #000000; font-weight:bold;">50</span>;
            <span style="color: #0033ff; font-weight: bold;">this</span>.displacement_filter.<span style="color: #004993;">mapPoint</span> = <span style="color: #0033ff; font-weight: bold;">this</span>.starting_point;
            <span style="color: #0033ff; font-weight: bold;">this</span>.the_bitmap.<span style="color: #004993;">filters</span> = <span style="color: #000000;">&#91;</span><span style="color: #0033ff; font-weight: bold;">this</span>.displacement_filter<span style="color: #000000;">&#93;</span>;
            <span style="color: #0033ff; font-weight: bold;">return</span>;
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #6699cc; font-weight: bold;">var</span> displacement_filter<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">flash.filters</span>.<span style="color: #004993;">DisplacementMapFilter</span>;
&nbsp;
        <span style="color: #6699cc; font-weight: bold;">var</span> the_displace<span style="color: #000000; font-weight: bold;">:</span>displace_movie;
&nbsp;
        <span style="color: #6699cc; font-weight: bold;">var</span> the_image<span style="color: #000000; font-weight: bold;">:*</span>;
&nbsp;
        <span style="color: #6699cc; font-weight: bold;">var</span> starting_point<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">flash.geom</span>.<span style="color: #004993;">Point</span>;
&nbsp;
        <span style="color: #6699cc; font-weight: bold;">var</span> displacement_map<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">flash.display</span>.<span style="color: #004993;">BitmapData</span>;
&nbsp;
        <span style="color: #6699cc; font-weight: bold;">var</span> the_bitmap<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Bitmap</span>;
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>It&#8217;s a bit different, but it works the same way</p>
<p><strong>Final considerations</strong></p>
<p>A personal license costs $79.95, both for PC and Mac OS, and all in all is a must-have if you are a Flash developer. Besides strange cases like the web company one I discussed before, it&#8217;s really a tool that can save you hours and hours should your <code>fla</code> file get damaged or lost.</p>
<p>Really recommended. For more information and purchase options, go to <a href="http://www.flash-decompiler.com/" target = "_blank">www.flash-decompiler.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.emanueleferonato.com/2009/08/13/flash-decompiler-trillix-review/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Centralize your Flash gaming life with GamerSafe</title>
		<link>http://www.emanueleferonato.com/2009/07/09/centralize-your-flash-gaming-life-with-gamersafe/</link>
		<comments>http://www.emanueleferonato.com/2009/07/09/centralize-your-flash-gaming-life-with-gamersafe/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 10:17:05 +0000</pubDate>
		<dc:creator>Emanuele Feronato</dc:creator>
				<category><![CDATA[Game design]]></category>
		<category><![CDATA[Monetize]]></category>
		<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1416</guid>
		<description><![CDATA[I have to say, I spent more than a couple of minutes to find a title for this post. I wanted to write something like &#8220;[do stuff] with GamerSafe&#8221; but there are so many things you can make with it&#8230; in the end I gave up and used the official &#8220;Centralize your Flash gaming life&#8221;. [...]]]></description>
			<content:encoded><![CDATA[<p>I have to say, I spent more than a couple of minutes to find a title for this post. I wanted to write something like &#8220;[do stuff] with GamerSafe&#8221; but there are so many things you can make with it&#8230; in the end I gave up and used the official &#8220;Centralize your Flash gaming life&#8221;. Shame on me.</p>
<p>Let me talk about <a href="https://www.gamersafe.com/" target = "_blank"><strong>GamerSafe</strong></a></p>
<p><a href="https://www.gamersafe.com/" target = "_blank"><img src="/images/gamersafe.jpg" alt="GamerSafe" /></a></p>
<p>The service allows players to enrich their gaming experience and developers and publishers to earn money out of it.</p>
<p>Let&#8217;s see its features in detail</p>
<p><strong>PLAYERS</strong></p>
<p><a href="https://www.gamersafe.com/" target = "_blank">GamerSafe</a> is a free service for players looking for a better gaming experience. The most important feature allows you to save games, highscores and achievements in a cross-site way. This means you can play a game on Kongregate, save it and continue playing on Newgrounds. All the achievements will be kept in one place, so you are free to play anywhere and be sure your hard-gained rewards bill be saved no matter where you are playing.</p>
<p>Completing tasks and quests will make you earn GamerPoints you can spend in shops to get new items and rewards. Moreover, you can buy GamerGold with real money and use them to unlock exclusive content that will lead to more achievements.</p>
<p>If you think players play games for pure fun no matter the achievements, maybe you should consider the <a target = "_blank" href="http://www.computerandvideogames.com/article.php?id=212484">2.5 billion Xbox Achievements unlocked</a>.</p>
<p><strong>DEVELOPERS</strong></p>
<p>Developers can add all players features in their game, giving players a reason more to play their games and getting more gameplays. They can also earn money when a player purchases items with GamerGold, with a 60% revenue share. Higher than the average one.</p>
<p>Moreover, developers can automatically split the revenue share with co-authors or sponsors.</p>
<p><strong>PUBLISHERS</strong></p>
<p>Publishers earn 10% of all transactions made by games played on their sites, but the really important feature is having a unique system handling points and achievements should reduce the gap between the ordinary arcade site and the achievement-enabled site like Kongregate.</p>
<p>I thought a video could give you a better idea about the system I am playing <a href="http://www.yoarcade.net/action/swordlessninja_content.html" target = "_blank">Swordless Ninja</a>, I purchased an item with my GamerPoints and if you have a little patience (normally I play better but&#8230; you know&#8230; the camera&#8230;) you&#8217;ll see me unlocking an achievement.</p>
<p><object width="520" height="417"><param name="movie" value="http://www.youtube.com/v/ndczUudaEg0&#038;hl=it&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/ndczUudaEg0&#038;hl=it&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="520" height="417"></embed></object></p>
<p>That&#8217;s all at the moment, but I will try the API in my next game in order to make some tutorials and share my experience with you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.emanueleferonato.com/2009/07/09/centralize-your-flash-gaming-life-with-gamersafe/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Create a Flash game in minutes with PlayCrafter</title>
		<link>http://www.emanueleferonato.com/2009/06/23/create-a-flash-game-in-minutes-with-playcrafter/</link>
		<comments>http://www.emanueleferonato.com/2009/06/23/create-a-flash-game-in-minutes-with-playcrafter/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 10:22:43 +0000</pubDate>
		<dc:creator>Emanuele Feronato</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Game design]]></category>
		<category><![CDATA[Monetize]]></category>
		<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1382</guid>
		<description><![CDATA[Today I am going to talk about a revolutionary way to make quality Flash games: PlayCrafter. I must admit I am overhelmed by the enormous amount of options of this tool, but I&#8217;ll try to be as much clean as I can in my review. Tired of making online games? Make a game online First, [...]]]></description>
			<content:encoded><![CDATA[<p>Today I am going to talk about a revolutionary way to make quality Flash games: <strong><a href="http://www.playcrafter.com/#invitedBy=17007" target = "_blank">PlayCrafter</a></strong>.</p>
<p><a href="http://www.playcrafter.com/#invitedBy=17007" target = "_blank"><img src="/images/playcrafter.jpg" alt="PlayCrafter" /></a></p>
<p>I must admit I am overhelmed by the enormous amount of options of this tool, but I&#8217;ll try to be as much clean as I can in my review.</p>
<p><strong>Tired of making online games? Make a game online</strong></p>
<p>First, <a href="http://www.playcrafter.com/#invitedBy=17007" target = "_blank">PlayCrafter</a> is an online tool. You don&#8217;t need to install any software in your computer. And this is the first great feature, because this means you don&#8217;t even need a computer to make a Flash game, you can just sit in an internet cafè and make your game in a matter of minutes.</p>
<p><strong>The power of drag &#038; drop</strong></p>
<p>In <a href="http://www.playcrafter.com/#invitedBy=17007" target = "_blank">PlayCrafter</a>, you don&#8217;t need to write a single line of code. You just drag and drop elements to the stage, designing your level in a few clicks.</p>
<p>Any element has its own features, so a turret will automatically fire, a car will skid, a space trooper will jump and fire bouncing bombs, and so on.</p>
<p>The engine that handle physics is the famous Box2D so expect accurate physics simulation.</p>
<p>New elements are added frequently so you&#8217;ll never run out of ideas.</p>
<p>You can even edit your element or import your own graphics.</p>
<p><strong>The Community</strong></p>
<p>There is a quite big community behind <a href="http://www.playcrafter.com/#invitedBy=17007" target = "_blank">PlayCrafter</a>. You can play, rate and even <strong>edit</strong> games made by other players.</p>
<p>When you game receives a good feedback from the community, you can export your Flash game and publish it on game portals</p>
<p><strong>The price</strong></p>
<p><a href="http://www.playcrafter.com/#invitedBy=17007" target = "_blank">PlayCrafter</a> is free to use, but you can pay a monthly fee ($4.95) to upgrade your account to &#8220;Premium&#8221; and unlock exclusive features such as raising the limit of levels to 100 and exporting the games to Flash portals.</p>
<p>Moreover, some assets in the game cost an a mount of Pips, the <a href="http://www.playcrafter.com/#invitedBy=17007" target = "_blank">PlayCrafter</a>&#8216;s currency. You can buy Pips with real money or you can have for free if your refer users.</p>
<p><strong>The limits</strong></p>
<p>At the moment, the most important limits are the fixed stage size and the lack of scrolling. In my opinion, if PlayCrafter guys do not add more and more assets this will cause a large number of games with no difference among them.</p>
<p><strong>Monetization</strong></p>
<p>I am going to test the monetization of this tool very soon, meanwhile play <a href="http://www.kongregate.com/games/PlayCrafter/matcheroo" target = "_blank">Matcheroo</a> to see a nice game made with this tool.</p>
<p><strong>Final considerations</strong></p>
<p>I strongly suggest to try <a href="http://www.playcrafter.com/#invitedBy=17007" target = "_blank">PlayCrafter</a>  even if you are an experienced developer&#8230; you know&#8230; at school or at work you can&#8217;t install Flash&#8230; so why don&#8217;t you make a game between a task and another?</p>
<p>Expect a game made with this tool very soon&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.emanueleferonato.com/2009/06/23/create-a-flash-game-in-minutes-with-playcrafter/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Apply amazing filters to your photos with Virtual Photographer</title>
		<link>http://www.emanueleferonato.com/2009/04/29/apply-amazing-filters-to-your-photos-with-virtual-photographer/</link>
		<comments>http://www.emanueleferonato.com/2009/04/29/apply-amazing-filters-to-your-photos-with-virtual-photographer/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 11:28:47 +0000</pubDate>
		<dc:creator>Emanuele Feronato</dc:creator>
				<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1198</guid>
		<description><![CDATA[If you are looking for a software that lets you instantly apply high quality, professional photographic styles to your digital images with just one click, then optikVerve Labs &#8216; virtualPhotographer is the software you need. This free package comes in two versions: as a Photoshop plugin or as a standalone software. I tested the PS [...]]]></description>
			<content:encoded><![CDATA[<p>If you are looking for a software that lets you instantly apply high quality, professional photographic styles to your digital images with just one click, then <a href="http://www.optikvervelabs.com/" target = "_blank">optikVerve Labs </a>&#8216; virtualPhotographer is the software you need.</p>
<p>This <strong>free</strong> package comes in two versions: as a Photoshop plugin or as a standalone software.</p>
<p>I tested the PS plugin and that&#8217;s what I think about it:</p>
<p>First, on the official site you will find virtualPhotographer is compatible with Photoshop CS3 and older</p>
<p><img src="/images/virtp01.jpg" alt="" /></p>
<p>But I successfully installed (and used) it on my <a href="http://www.emanueleferonato.com/2009/04/19/adobe-cs4-master-collection/">CS4 Master Collection</a> version.<span id="more-1198"></span></p>
<p>This is a clearly unretouched digital photo:</p>
<p><img src="/images/virtp02.jpg" alt="" /></p>
<p>and this is what you see when you launch the plugin</p>
<p><img src="/images/virtp03.jpg" alt="" /></p>
<p>Now you can work with more than 200 preset effect with just one click or creating (and saving) your own ones adjusting several parameters.</p>
<p>That&#8217;s what I got with one click:</p>
<p>This is &#8220;mountain&#8221; effect, one of my favourites</p>
<p><img src="/images/virtp04.jpg" alt="" /></p>
<p>Do you need some dramatic black and white? This is &#8220;Hollywood&#8221;</p>
<p><img src="/images/virtp05.jpg" alt="" /></p>
<p>Compare it with the standard &#8220;desaturate&#8221; adjustment people use to get a B/W image&#8230; </p>
<p><img src="/images/virtp06.jpg" alt="" /></p>
<p>no more playing with curves to get a decent B/W image&#8230;</p>
<p>Do you need a vintage image? &#8220;Less tungsten&#8221; is the one you need</p>
<p><img src="/images/virtp07.jpg" alt="" /></p>
<p>And I could continue for hours&#8230; so go to <a href="http://www.optikvervelabs.com/" target = "_blank">www.optikvervelabs.com</a> and download this amazing plugin.</p>
<p>Satisfaction guaranteed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.emanueleferonato.com/2009/04/29/apply-amazing-filters-to-your-photos-with-virtual-photographer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
