<?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>visualcondition blog - flash &#38; actionscript</title>
	<atom:link href="http://blog.visualcondition.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.visualcondition.com</link>
	<description>Andrew Fitzgerald</description>
	<lastBuildDate>Tue, 15 Jun 2010 00:06:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Desuade Partigen 2.5 AS3 Flash Particle Effect Engine Released</title>
		<link>http://blog.visualcondition.com/2010/06/14/desuade-partigen-2-5-as3-flash-particle-effect-engine-released/</link>
		<comments>http://blog.visualcondition.com/2010/06/14/desuade-partigen-2-5-as3-flash-particle-effect-engine-released/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 00:06:08 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Partigen]]></category>
		<category><![CDATA[as3 effects]]></category>
		<category><![CDATA[flash effects]]></category>
		<category><![CDATA[flash particle effects]]></category>
		<category><![CDATA[particle effects]]></category>
		<category><![CDATA[partigen]]></category>

		<guid isPermaLink="false">http://blog.visualcondition.com/?p=141</guid>
		<description><![CDATA[So if you&#8217;re not already aware, Desuade Partigen is the de-facto standard in Flash particle effects engines. Hopefully you did, because it&#8217;s been around for 4 years. Well today, Partigen 2.5 has been announced and offers some of the most impressive updates you could every ask for.

I&#8217;ll just pull the list from the official blog [...]]]></description>
			<content:encoded><![CDATA[<p>So if you&#8217;re not already aware, Desuade Partigen is the de-facto standard in Flash particle effects engines. Hopefully you did, because it&#8217;s been around for 4 years. Well today, Partigen 2.5 has been announced and offers some of the most impressive updates you could every ask for.</p>

<p>I&#8217;ll just pull the list from the official blog post:</p>

<ul>
    <li>pixel renderer and pixel-based effects</li>
    <li>tremendously improved performance and memory management with new object pooling for particles, particle sources, and tweens</li>
    <li>support for particle filters and XML filter support</li>
    <li>renderers start/stop automagically without needing to do it manually anymore</li>
    <li>caching particles as bitmaps</li>
    <li>more rendering options such as predraw, removeAllParticles(), and clear()</li>
    <li>improved custom Random class</li>
    <li>prefetching allows you to start emitters as if the effect has already been running for a while</li>
    <li>XML support for renderers</li>
    <li>BitmapCanvas class allows for super easy use and duplication of Bitmap/PixelRenderers</li>
    <li>blendmode support for particles</li>
    <li>groupBitmaping to improve performance on particles with a high groupAmount</li>
    <li>particles can now be any class, without having to extend Particle</li>
    <li>all the improvements in the Desuade Motion Package</li>
    <li>plus over 50 bug fixes, tweaks, changes, and minor enhancements</li>
</ul>

<p><em>By now</em>, you can tell this is huge and a lot of time has gone into it. If you&#8217;re interested, you can checkout the full changelog here: <a href="http://github.com/andrewfitz/desuade/blob/master/changelog.txt" target="_blank">http://github.com/andrewfitz/desuade/blob/master/changelog.txt</a></p>

<p>Of course the entire AS3 particle system library is available for free under the MIT license, and you can grab your copy now here: <a href="http://desuade.com/partigen/download" target="_blank">http://desuade.com/partigen/download</a></p>

<p>Enjoy, and be sure to spread the good word <img src='http://blog.visualcondition.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.visualcondition.com/2010/06/14/desuade-partigen-2-5-as3-flash-particle-effect-engine-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Personal Development Blog</title>
		<link>http://blog.visualcondition.com/2010/04/21/new-personal-development-blog-2/</link>
		<comments>http://blog.visualcondition.com/2010/04/21/new-personal-development-blog-2/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 18:24:34 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://blog.visualcondition.com/?p=139</guid>
		<description><![CDATA[This is just a quick post to let you know I&#8217;ve started a new blog (totally unrelated to Flash or programming) on personal development for young men. If you&#8217;re a man that&#8217;s interested in learning to be the best you can be at entrepenuership, women, lifestyle, and yourself, then I urge you to take a [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a quick post to let you know I&#8217;ve started a new blog (totally unrelated to Flash or programming) on personal development for young men. If you&#8217;re a man that&#8217;s interested in learning to be the best you can be at entrepenuership, women, lifestyle, and yourself, then I urge you to take a look at it now:</p>

<p><a href="http://thepolyman.com/">http://thepolyman.com/</a></p>

<p>I find it interesting many programmers are really into learning and growing and getting to be a better person, and the amount of them that start personal development projects. It makes sense I suppose. So if you&#8217;re one of them, be sure to subscribe and let me know what you think!</p>

<p>If not, then happy coding and designing!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.visualcondition.com/2010/04/21/new-personal-development-blog-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe CS5 Icons &amp; Logos (Plus Flash CS5 Splash Screen)</title>
		<link>http://blog.visualcondition.com/2010/04/12/adobe-cs5-icons-logos-plus-flash-cs5-splash-screen/</link>
		<comments>http://blog.visualcondition.com/2010/04/12/adobe-cs5-icons-logos-plus-flash-cs5-splash-screen/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 18:56:01 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[cs5]]></category>
		<category><![CDATA[flash cs5]]></category>

		<guid isPermaLink="false">http://blog.visualcondition.com/?p=130</guid>
		<description><![CDATA[So in my last post, I mentioned the new icon for Flash, so I thought I&#8217;d share the major new CS5 icons and a little bonus screenshot of the Flash CS5 splash screen. There was some talk about the design process of the new icons all over the web, but not we can finally show [...]]]></description>
			<content:encoded><![CDATA[<p>So in my <a href="http://blog.visualcondition.com/2010/04/12/adobe-flash-cs5-released-top-2-features/" target="_blank">last post</a>, I mentioned the new icon for Flash, so I thought I&#8217;d share the major new CS5 icons and a little bonus screenshot of the Flash CS5 splash screen. There was some talk about the design process of the new icons all over the web, but not we can finally show them off!</p>

<p>So here&#8217;s the new logos:</p>

<p><span id="more-130"></span></p>

<p><img class="alignnone size-full wp-image-131" title="adobe-cs5-logos" src="http://blog.visualcondition.com/wp-content/adobe-cs5-logos-.jpg" alt="Adobe CS5 Logos and Icons" width="539" height="424" /></p>

<p>So, here&#8217;s the cool new Flash Creative Suite 5 (CS5) intro screen:</p>

<p><img class="alignnone size-full wp-image-132" title="Flash CS5 Splash Screen Screenshot" src="http://blog.visualcondition.com/wp-content/Flash-CS5-Splash-Screen-Screenshot.jpg" alt="Flash CS5 Splash Screen Screenshot" width="650" height="320" /></p>

<p>Pretty awesome eh? Oh, and the best part is, it doesn&#8217;t force itself on top of every other window while it loads. Nice!</p>

<p>Here&#8217;s a double extra bonus just for you:</p>

<p><img class="alignnone size-full wp-image-133" title="Adobe Flash CS5 Dock Icon" src="http://blog.visualcondition.com/wp-content/Adobe-Flash-CS5-Dock-Icon.jpg" alt="Adobe Flash CS5 Dock Icon" width="165" height="143" /></p>

<p>Oh the novelty of new icons and logos, it&#8217;s a geeky designer thing I suppose <img src='http://blog.visualcondition.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.visualcondition.com/2010/04/12/adobe-cs5-icons-logos-plus-flash-cs5-splash-screen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adobe Flash CS5 Released &#8211; Top 2 Features</title>
		<link>http://blog.visualcondition.com/2010/04/12/adobe-flash-cs5-released-top-2-features/</link>
		<comments>http://blog.visualcondition.com/2010/04/12/adobe-flash-cs5-released-top-2-features/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 18:17:18 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[creative suite 5]]></category>
		<category><![CDATA[cs5]]></category>

		<guid isPermaLink="false">http://blog.visualcondition.com/?p=127</guid>
		<description><![CDATA[Finally! The NDA embargo has been lifted for Flash CS5 as the Adobe Creative Suite 5 has been announced today. Some pretty exciting things coming to the Flash IDE that you can read all about here: http://www.adobe.com/products/flash/whatsnew/

So what&#8217;s new? Basically, the biggest new features are:


    Super improved text layout engine
   [...]]]></description>
			<content:encoded><![CDATA[<p>Finally! The NDA embargo has been lifted for Flash CS5 as the Adobe Creative Suite 5 has been announced today. Some pretty exciting things coming to the Flash IDE that you can read all about here: <a href="http://www.adobe.com/products/flash/whatsnew/">http://www.adobe.com/products/flash/whatsnew/</a></p>

<p>So what&#8217;s new? Basically, the biggest new features are:</p>

<ul>
    <li>Super improved text layout engine</li>
    <li>Code snippets panel (woo boy?)</li>
    <li>Improved AS editor with code hinting (finally)</li>
    <li>XML-based fla format (yay for git/svn)</li>
    <li>Other little misc things like integration, deco tools, video and bones enhancements</li>
</ul>

<p>Probably the biggest news are the <strong>new text engine</strong> and the <strong>xml based fla format</strong>. I see these 2 features as really the biggest improvements in CS5, though interestingly enough, I think this is the first release without a corresponding major player release (ie: Flash Player 11), though FP 10.1 is targeted. I was really hoping for some AS3 improvements/performance increases, but we&#8217;ll see if that comes in the 10.1 Flash Player.</p>

<p>I&#8217;ve used the beta for a bit, and really dig the new splash screen and logo designs of the entire CS5 suite. It&#8217;s a bit less buggy, but the same window system is still there &#8211; love it or hate it. Seems to run great on 10.6.3 on my Macbook Air, so I&#8217;m digging it.</p>

<p>What do you think, CS5 win or fail?</p>

<p><strong>Update: </strong><a href="http://blog.visualcondition.com/2010/04/12/adobe-cs5-icons-logos-plus-flash-cs5-splash-screen/">New logos, screenshot, and icon of Flash CS5</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.visualcondition.com/2010/04/12/adobe-flash-cs5-released-top-2-features/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HTML5 Video &#8211; The Adobe Flash Killer?</title>
		<link>http://blog.visualcondition.com/2010/01/25/html5-video-the-adobe-flash-killer/</link>
		<comments>http://blog.visualcondition.com/2010/01/25/html5-video-the-adobe-flash-killer/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 17:53:03 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[flash video]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.visualcondition.com/2010/01/25/html5-video-the-adobe-flash-killer/</guid>
		<description><![CDATA[Hardly.

All this buzz about HTML5 video and how it&#8217;s the end of Flash and Adobe&#8217;s grasp on video is slipping because of it is utter nonsense.

While of course HTML5 video is going to take a dent from the market share, it&#8217;s still in it&#8217;s infancy and won&#8217;t be a major play for at least a [...]]]></description>
			<content:encoded><![CDATA[<p>Hardly.</p>

<p>All this buzz about HTML5 video and how it&#8217;s the end of Flash and Adobe&#8217;s grasp on video is slipping because of it is utter nonsense.</p>

<p>While of course HTML5 video is going to take a dent from the market share, it&#8217;s still in it&#8217;s infancy and won&#8217;t be a major play for at least a year or two. More people have Flash installed than browsers than can fully support it.</p>

<p>I see it more as a compliment than a competitor, after all, Adobe supports open standards. Also remember how many sites stream flvs, and as far as I know, HTML5 can&#8217;t. Let&#8217;s not even go into codec issues either.</p>

<p>Flash is here to stay, maybe its use will evolve to something different in 5 years, but it&#8217;s not going anywhere soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.visualcondition.com/2010/01/25/html5-video-the-adobe-flash-killer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Desuade Partigen 2 Auto-Color-Update Video</title>
		<link>http://blog.visualcondition.com/2009/11/11/desuade-partigen-2-auto-color-update-video/</link>
		<comments>http://blog.visualcondition.com/2009/11/11/desuade-partigen-2-auto-color-update-video/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 00:27:30 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Partigen]]></category>

		<guid isPermaLink="false">http://blog.visualcondition.com/?p=121</guid>
		<description><![CDATA[Here&#8217;s a sneak peak preview of the Partigen 2 interface, showing off the sexy preview pane that updates the background automagically based on the current document:

http://bit.ly/ckTTK

It&#8217;s the attention to the small little details like this that makes using software like this so enjoyable, don&#8217;t you think?
]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a sneak peak preview of the Partigen 2 interface, showing off the sexy preview pane that updates the background automagically based on the current document:</p>

<p><a href="http://bit.ly/ckTTK">http://bit.ly/ckTTK</a></p>

<p>It&#8217;s the attention to the small little details like this that makes using software like <a href="http://desuade.com/partigen">this</a> so enjoyable, don&#8217;t you think?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.visualcondition.com/2009/11/11/desuade-partigen-2-auto-color-update-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://bit.ly/ckTTK" length="1275194" type="video/quicktime" />
		</item>
		<item>
		<title>Desuade Partigen 2 Smoke Flash Particle Effect</title>
		<link>http://blog.visualcondition.com/2009/08/19/desuade-partigen-2-smoke-flash-particle-effect/</link>
		<comments>http://blog.visualcondition.com/2009/08/19/desuade-partigen-2-smoke-flash-particle-effect/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 17:35:56 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Partigen]]></category>
<category>actionscript</category><category>Desuade</category><category>dmp</category><category>flash</category><category>partigen</category>
		<guid isPermaLink="false">http://blog.visualcondition.com/?p=116</guid>
		<description><![CDATA[Here&#8217;s a little demo using Partigen 2 (AS3) and the BitmapRenderer to create a high performance version of a realtime particle smoke effect in Flash.

It&#8217;s running at only 10 eps with a groupAmount of 2, and about 3 bitmap objects. Performance is very good and the result is fantastic.




<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_pgsmoketest_952036907"
			class="flashmovie"
			width="550"
			height="400">
	<param name="movie" value="/wp-content/uploads/pgsmoketest.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/wp-content/uploads/pgsmoketest.swf"
			name="fm_pgsmoketest_952036907"
			width="550"
			height="400">
	<!--<![endif]-->
		




	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>

As [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a little demo using Partigen 2 (AS3) and the BitmapRenderer to create a high performance version of a realtime particle smoke effect in Flash.</p>

<p>It&#8217;s running at only 10 eps with a groupAmount of 2, and about 3 bitmap objects. Performance is very good and the result is fantastic.</p>

<p><span id="more-116"></span></p>


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_pgsmoketest_797181237"
			class="flashmovie"
			width="550"
			height="400">
	<param name="movie" value="/wp-content/uploads/pgsmoketest.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/wp-content/uploads/pgsmoketest.swf"
			name="fm_pgsmoketest_797181237"
			width="550"
			height="400">
	<!--<![endif]-->
		

<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>


	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>

<p>As you can tell, Partigen 2 provides a very efficient way to create realtime particle effects in Flash, and the result is pretty realistic compared to the majority of the other engines out there.</p>

<p>Oh, and the SWF is less than 64k&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.visualcondition.com/2009/08/19/desuade-partigen-2-smoke-flash-particle-effect/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Partigen 2 AS3 &amp; Papervision3D Demo</title>
		<link>http://blog.visualcondition.com/2009/07/10/partigen-2-as3-papervision3d-demo/</link>
		<comments>http://blog.visualcondition.com/2009/07/10/partigen-2-as3-papervision3d-demo/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 07:48:10 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.visualcondition.com/?p=111</guid>
		<description><![CDATA[Desuade Partigen 2 Beta 2 has been out for about a week (silently), with an improved API, and on the heels of the DMP demo, I thought I&#8217;d see how hard it would to integrate Partigen with Papervision 3D.

Note: For the color to work, you need to download the Bleeding Edge build or checkout the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://desuade.com/developer/">Desuade Partigen 2 Beta 2</a> has been out for about a week (silently), with an improved API, and on the heels of the DMP demo, I thought I&#8217;d see how hard it would to integrate Partigen with Papervision 3D.</p>

<p>Note: <em>For the color to work, you need to download the Bleeding Edge build or checkout the latest copy from SVN/GIT (unless there&#8217;s a build available after Beta 2)</em></p>

<p>I was delighted to find out that it was actually pretty easy, with very little workaround. The workaround isn&#8217;t bad or hackish, luckily due to the design of both packages, but hopefully there will be a native renderer for PV3D for Partigen in the future.</p>

<p>Demo after the break, read on!</p>

<p><span id="more-111"></span>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_ExamplePartigen3D_838822445"
			class="flashmovie"
			width="550"
			height="400">
	<param name="movie" value="/wp-content/uploads/ExamplePartigen3D.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/wp-content/uploads/ExamplePartigen3D.swf"
			name="fm_ExamplePartigen3D_838822445"
			width="550"
			height="400">
	<!--<![endif]-->
		

<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>


	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>

<p>The code is pretty straight-forward and commented.
<code></p>

<p>package {</p>

<pre><code>import flash.display.Sprite;
import flash.events.Event;

import org.papervision3d.objects.primitives.Plane;
import org.papervision3d.objects.primitives.Cube;
import org.papervision3d.materials.*;
import org.papervision3d.materials.utils.*;
import org.papervision3d.view.BasicView;

import com.desuade.partigen.*;
import com.desuade.partigen.emitters.*;
import com.desuade.partigen.particles.*;
import com.desuade.partigen.events.*;
import com.desuade.partigen.renderers.*;
import com.desuade.debugging.*;

public class ExamplePartigen3D extends BasicView {

    public function ExamplePartigen3D() {
        super();

        //loads debug codes
        Debug.load(new DebugCodesPartigen());
        //Debug.level = 60000;
        //Debug.enabled = true;

        //adds a rendere for pv3d
        stage.addEventListener(Event.ENTER_FRAME, render);

        var em:Emitter = new Emitter(); //create a Partigen emitter
        em.eps = 10; //set the emissions per second
        em.life.value = 2; //set the life
        em.particle = CubeParticle; //set the particle class to the class defined in this package
        em.renderer = new NullRenderer(); //pv3d is the renderer, so we use a NullRenderer
        var emcp = em.controllers.particle; //this ist just a shortcut to cut down on code
        emcp.addTween('cx'); //adds a tween for the particles
        emcp.cx.keyframes.end.value = -1000; //sets the end value range to -1000 to 1000
        emcp.cx.keyframes.end.spread = 1000; // ^^^^^
        emcp.addTween('cy');
        emcp.cy.keyframes.end.value = -1000;
        emcp.cy.keyframes.end.spread = 1000;
        emcp.addTween('cz');
        emcp.cz.keyframes.end.value = -1000;
        emcp.cz.keyframes.end.spread = 1000;
        emcp.addTween('rx');
        emcp.rx.keyframes.begin.spread = 200;
        emcp.rx.keyframes.end.value = 820;
        emcp.addTween('ry');
        emcp.ry.keyframes.begin.spread = 200;
        emcp.ry.keyframes.end.value = 320;
        emcp.addColorTween('fc');
        emcp.fc.keyframes.begin.value = 0xcccccc; //sets a random beginning color
        emcp.fc.keyframes.begin.spread = 0xaaaaaa;
        em.addEventListener(ParticleEvent.BORN, addcube); //since we're using pv3d to render, we need to manually add and remove
        em.addEventListener(ParticleEvent.DIED, remcube);
        em.start(); //start the emitter
    } 

    //adds the particle to the pv3d scene
    private function addcube($o):void {
        scene.addChild($o.data.particle.cuby);
    }

    //removes the particle to the pv3d scene
    private function remcube($o):void {
        scene.removeChild($o.data.particle.cuby);
    }

    //renders the scene
    private function render(event:Event):void {
        singleRender();
    }

}
</code></pre>

<p>}</p>

<p>import com.desuade.partigen.particles.<em>;
import org.papervision3d.objects.primitives.Plane;
import org.papervision3d.objects.primitives.Cube;
import org.papervision3d.materials.</em>;
import org.papervision3d.materials.utils.*;
import org.papervision3d.view.BasicView;</p>

<p>dynamic class CubeParticle extends Particle {</p>

<pre><code>public var cuby:Cube;
public var material:ColorMaterial;

public function CubeParticle() {
    super();

    //create a pv3d material
    material = new ColorMaterial();
    material.doubleSided = true;
    material.fillColor = 0xFF0000;
    material.fillAlpha = 1.0;
    var ml:MaterialsList = new MaterialsList();
    ml.addMaterial(material, 'all');
    cuby = new Cube(ml, 100, 100, 100); //make a new pv3d cube
}

//these are just getter setters for the PV3D object

public function get cx():Number{
    return cuby.x;
}
public function set cx(value:Number):void {
    cuby.x = value;
}

public function get cy():Number{
    return cuby.y;
}
public function set cy(value:Number):void {
    cuby.y = value;
}

public function get cz():Number{
    return cuby.z;
}
public function set cz(value:Number):void {
    cuby.z = value;
}

public function get fc():Number{
    return material.fillColor;
}
public function set fc(value:Number):void {
    material.fillColor = value;
}

public function get rx():Number{
    return cuby.rotationX;
}
public function set rx(value:Number):void {
    cuby.rotationX = value;
}

public function get ry():Number{
    return cuby.rotationY;
}
public function set ry(value:Number):void {
    cuby.rotationY = value;
}
</code></pre>

<p>}</p>

<p></code></p>

<p>Basically we&#8217;re extending a PV3D scene and creating an emitter. We configure the emitter and set up some events for dealing with PV3D and set the renderer to NullRenderer.</p>

<p>As an internal class (at the bottom) we extend the Partigen Particle class, and add getters/setters to deal with the PV3D cube.</p>

<p>And that&#8217;s a very basic example of Partigen 2 and PV3D in AS3, just introducing the power of both APIs. I&#8217;ll think of a demo that really pushes the limits, and is actually impressive&#8230; as I know spinning cubes aren&#8217;t really useful <img src='http://blog.visualcondition.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.visualcondition.com/2009/07/10/partigen-2-as3-papervision3d-demo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Papervision3D and Desuade Motion Package Example [updated]</title>
		<link>http://blog.visualcondition.com/2009/06/26/papervision3d-and-desuade-motion-package-example/</link>
		<comments>http://blog.visualcondition.com/2009/06/26/papervision3d-and-desuade-motion-package-example/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 05:41:36 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>
<category>actionscript</category><category>dmp</category><category>flash</category>
		<guid isPermaLink="false">http://blog.visualcondition.com/?p=101</guid>
		<description><![CDATA[With Desuade releasing Beta1 of the Motion Package, I thought I&#8217;d do a little example showing how easy it is to use and integrate with PV3D.

Read more to see the demo&#8230;




<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_ExampleDMP_1455903124"
			class="flashmovie"
			width="550"
			height="400">
	<param name="movie" value="/wp-content/uploads/ExampleDMP.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/wp-content/uploads/ExampleDMP.swf"
			name="fm_ExampleDMP_1455903124"
			width="550"
			height="400">
	<!--<![endif]-->
		




	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>

The example uses the basic physics class in the package to control rotation as it builds up real [...]]]></description>
			<content:encoded><![CDATA[<p>With Desuade releasing Beta1 of the <a href="http://desuade.com/dmp">Motion Package</a>, I thought I&#8217;d do a little example showing how easy it is to use and integrate with PV3D.</p>

<p>Read more to see the demo&#8230;</p>

<p><span id="more-101"></span></p>


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_ExampleDMP_1508196256"
			class="flashmovie"
			width="550"
			height="400">
	<param name="movie" value="/wp-content/uploads/ExampleDMP.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/wp-content/uploads/ExampleDMP.swf"
			name="fm_ExampleDMP_1508196256"
			width="550"
			height="400">
	<!--<![endif]-->
		

<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>


	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>

<p>The example uses the basic physics class in the package to control rotation as it builds up real momentum, uses color tweening to change the color of ColorMaterial, and uses a MotionController to make a complex Z tween which brings the cube closer to the camera.</p>

<p><code>
package {</p>

<pre><code>import flash.display.Sprite;
import flash.events.Event;

import org.papervision3d.objects.primitives.Plane;
import org.papervision3d.objects.primitives.Cube;
import org.papervision3d.materials.*;
import org.papervision3d.materials.utils.*;
import org.papervision3d.view.BasicView;

import com.desuade.motion.*;
import com.desuade.motion.tweens.*;
import com.desuade.motion.physics.*;
import com.desuade.motion.controllers.*;
import com.desuade.motion.eases.*;
import com.desuade.motion.events.*;
import com.desuade.debugging.*


public class ExampleDMP extends BasicView {

    private var plane:Cube;

    public var yrp:BasicPhysics;
    public var xrt:Tween;
    public var mct:ColorTween;
    public var zvc:MotionController;

    public function ExampleDMP() {

        super();

        Debug.load(new DebugCodesMotion());
        //Debug.level = 60000;
        Debug.enabled = true;

        var material:ColorMaterial = new ColorMaterial();
        material.doubleSided = true;
        material.fillColor = 0xFF0000;
        material.fillAlpha = 1.0;
        var ml:MaterialsList = new MaterialsList();
        ml.addMaterial(material, 'all');
        plane = new Cube(ml, 300, 300, 300);
        scene.addChild(plane);
        stage.addEventListener(Event.ENTER_FRAME, render);

        //DMP code
        xrt = new Tween({target:plane, property:'rotationZ', delay:0, value:'1000', duration:20, ease:Bounce.easeOut});
        xrt.start();

        zvc = new MotionController(plane, 'z', 10);
        zvc.keyframes.end.value = null;
        zvc.keyframes.end.ease = Bounce.easeOut;
        zvc.keyframes.add(new Keyframe(.3, -400, Sine.easeOut));
        zvc.keyframes.add(new Keyframe(.7, 3000, Elastic.easeOut));
        zvc.start();

        mct = new ColorTween({target:material, property:'fillColor', delay:2, value:"CCCCCC", ease:Cubic.easeOut, duration:10})
        mct.start();
        yrp = new BasicPhysics({target:plane, property:'rotationY', velocity:0, acceleration:.02});
        yrp.start();

        yrp.addEventListener(PhysicsEvent.UPDATED, valuecheck);
        function valuecheck(u:Object):void {
            var va = u.data.basicPhysics.target[u.data.basicPhysics.property];
            if(va &gt;= 1000){
                u.data.basicPhysics.acceleration = -Math.abs(u.data.basicPhysics.acceleration);
            } else if(va &lt;= 0) {
                u.data.basicPhysics.acceleration = Math.abs(u.data.basicPhysics.acceleration);
            }
        }
        //end dmp

    } 

    private function render(event:Event):void {
        singleRender();
    }

}
</code></pre>

<p>}
</code></p>

<p>Being able to use physics and tweening motion, along with powerful sequencing and color tweening all in one package is super convenient, and the performance is super smooth.</p>

<p><em>This has been updated for Beta 2 with the new syntax</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.visualcondition.com/2009/06/26/papervision3d-and-desuade-motion-package-example/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>New Desuade SIte, Motion Package and Partigen 2 Beta</title>
		<link>http://blog.visualcondition.com/2009/06/24/new-desuade-site-motion-package-and-partigen-2-beta/</link>
		<comments>http://blog.visualcondition.com/2009/06/24/new-desuade-site-motion-package-and-partigen-2-beta/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 16:30:12 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[desuade]]></category>
		<category><![CDATA[dmp]]></category>
		<category><![CDATA[partigen]]></category>

		<guid isPermaLink="false">http://blog.visualcondition.com/2009/06/24/new-desuade-site-motion-package-and-partigen-2-beta/</guid>
		<description><![CDATA[http://desuade.com/

There&#8217;s a brand new website up for Desuade and it&#8217;s pretty sexy. Along with the new site, a new product is up: Desuade Motion Package (http://desuade.com/dmp).

The DMP is a free open source AS3 library that offers tweening, physics, sequencing, and a brilliant idea of ValueControllers &#8211; which basically are a code version of Flash CS4 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://desuade.com/">http://desuade.com/</a></p>

<p>There&#8217;s a brand new website up for Desuade and it&#8217;s pretty sexy. Along with the new site, a new product is up: Desuade Motion Package (<a href="http://desuade.com/dmp">http://desuade.com/dmp</a>).</p>

<p>The DMP is a free open source AS3 library that offers tweening, physics, sequencing, and a brilliant idea of ValueControllers &#8211; which basically are a code version of Flash CS4 motion editor.</p>

<p>Also up, a little behind the scenes, is the long awaited beta for Partigen 2 – in AS3! Not much information is provided, but a download is available from the Developer Zone (<a href="http://desuade.com/developer">http://desuade.com/developer</a>)</p>

<p>Go download &#8216;em all now and try it out!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.visualcondition.com/2009/06/24/new-desuade-site-motion-package-and-partigen-2-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.142 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-08-12 11:28:26 -->
<!-- Compression = gzip -->