<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: So long and thanks for all the particles&#8230;</title>
	<atom:link href="http://sebleedelisle.com/2008/06/so-long-and-thanks-for-all-the-particles/feed/" rel="self" type="application/rss+xml" />
	<link>http://sebleedelisle.com/2008/06/so-long-and-thanks-for-all-the-particles/</link>
	<description>Actionscript Games, Physics and Papervision3D</description>
	<lastBuildDate>Sun, 14 Mar 2010 17:42:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dannepop</title>
		<link>http://sebleedelisle.com/2008/06/so-long-and-thanks-for-all-the-particles/comment-page-1/#comment-2115</link>
		<dc:creator>dannepop</dc:creator>
		<pubDate>Mon, 14 Dec 2009 10:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=187#comment-2115</guid>
		<description>Hi, I´ve tried several ways to iterate through the array but I can´t get it to work.
Here´s the code were it updates Particles:
function updateParticles():void {
	var particle:Particle;

	// if there are more than 500 particles delete the first one in the array... 
	while (particles.length&gt;500) {
		particle=particles.shift();

		particle.disable();

		if (! spareParticles[particle.spriteClass]) {
			spareParticles[particle.spriteClass] = new Array();
		}

		spareParticles[particle.spriteClass].push(particle);
	}

	// go through the array of particles... 
	for (var i:int = 0; i&lt;particles.length; i++) {
		//... and update each one
		particle=particles[i];
		particle.update();
		if (particle.clip.width&lt;2) {
			particle.disable();
		}
	}
}

How should I do?
Danne/</description>
		<content:encoded><![CDATA[<p>Hi, I´ve tried several ways to iterate through the array but I can´t get it to work.<br />
Here´s the code were it updates Particles:<br />
function updateParticles():void {<br />
	var particle:Particle;</p>
<p>	// if there are more than 500 particles delete the first one in the array&#8230;<br />
	while (particles.length&gt;500) {<br />
		particle=particles.shift();</p>
<p>		particle.disable();</p>
<p>		if (! spareParticles[particle.spriteClass]) {<br />
			spareParticles[particle.spriteClass] = new Array();<br />
		}</p>
<p>		spareParticles[particle.spriteClass].push(particle);<br />
	}</p>
<p>	// go through the array of particles&#8230;<br />
	for (var i:int = 0; i&lt;particles.length; i++) {<br />
		//&#8230; and update each one<br />
		particle=particles[i];<br />
		particle.update();<br />
		if (particle.clip.width&lt;2) {<br />
			particle.disable();<br />
		}<br />
	}<br />
}</p>
<p>How should I do?<br />
Danne/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seb Lee-Delisle</title>
		<link>http://sebleedelisle.com/2008/06/so-long-and-thanks-for-all-the-particles/comment-page-1/#comment-2004</link>
		<dc:creator>Seb Lee-Delisle</dc:creator>
		<pubDate>Thu, 10 Dec 2009 14:27:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=187#comment-2004</guid>
		<description>Hi Danne, I don&#039;t have the exact code in front of me but I suspect you just need to iterate through each particle in the array and removeChild on each one. Or just find the bit of code that deletes one particle and do it on all of them! 

Seb</description>
		<content:encoded><![CDATA[<p>Hi Danne, I don&#8217;t have the exact code in front of me but I suspect you just need to iterate through each particle in the array and removeChild on each one. Or just find the bit of code that deletes one particle and do it on all of them! </p>
<p>Seb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dannepop</title>
		<link>http://sebleedelisle.com/2008/06/so-long-and-thanks-for-all-the-particles/comment-page-1/#comment-1998</link>
		<dc:creator>dannepop</dc:creator>
		<pubDate>Thu, 10 Dec 2009 10:11:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=187#comment-1998</guid>
		<description>Sorry I mixed up the particles and the Papervision tutorials!

Now I got a question. How do I delete all the particles on a mouseout?
Is there a remove_all version in AS3?
I have made a remove EventListener and it works 
but there remain frozenparticles on stage when I do this.

Danne</description>
		<content:encoded><![CDATA[<p>Sorry I mixed up the particles and the Papervision tutorials!</p>
<p>Now I got a question. How do I delete all the particles on a mouseout?<br />
Is there a remove_all version in AS3?<br />
I have made a remove EventListener and it works<br />
but there remain frozenparticles on stage when I do this.</p>
<p>Danne</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dannepop</title>
		<link>http://sebleedelisle.com/2008/06/so-long-and-thanks-for-all-the-particles/comment-page-1/#comment-1828</link>
		<dc:creator>dannepop</dc:creator>
		<pubDate>Thu, 03 Dec 2009 13:25:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=187#comment-1828</guid>
		<description>I thought it had to be complied in Flex to work!
Sorry!
Danne/</description>
		<content:encoded><![CDATA[<p>I thought it had to be complied in Flex to work!<br />
Sorry!<br />
Danne/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seb Lee-Delisle</title>
		<link>http://sebleedelisle.com/2008/06/so-long-and-thanks-for-all-the-particles/comment-page-1/#comment-1825</link>
		<dc:creator>Seb Lee-Delisle</dc:creator>
		<pubDate>Thu, 03 Dec 2009 13:00:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=187#comment-1825</guid>
		<description>Hi Danne, it&#039;s just AS3 code now, so I&#039;m not sure what you&#039;re asking!</description>
		<content:encoded><![CDATA[<p>Hi Danne, it&#8217;s just AS3 code now, so I&#8217;m not sure what you&#8217;re asking!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danne</title>
		<link>http://sebleedelisle.com/2008/06/so-long-and-thanks-for-all-the-particles/comment-page-1/#comment-1804</link>
		<dc:creator>Danne</dc:creator>
		<pubDate>Wed, 02 Dec 2009 19:06:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=187#comment-1804</guid>
		<description>Is it possible to convert the Flexcode to common AS3 code?
Could use some hints to this!
Thanks for the lecture your are a great entertainer!
Had a lot of fun!</description>
		<content:encoded><![CDATA[<p>Is it possible to convert the Flexcode to common AS3 code?<br />
Could use some hints to this!<br />
Thanks for the lecture your are a great entertainer!<br />
Had a lot of fun!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seb Lee-Delisle</title>
		<link>http://sebleedelisle.com/2008/06/so-long-and-thanks-for-all-the-particles/comment-page-1/#comment-474</link>
		<dc:creator>Seb Lee-Delisle</dc:creator>
		<pubDate>Sat, 10 Jan 2009 20:37:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=187#comment-474</guid>
		<description>[...] first was a brand new Papervision session, and the second was a wave goodbye to the ever popular particle presentation, which I vowed would be the last time. The piano karaoke was a particular [...]</description>
		<content:encoded><![CDATA[<p>[...] first was a brand new Papervision session, and the second was a wave goodbye to the ever popular particle presentation, which I vowed would be the last time. The piano karaoke was a particular [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hydrotik &#124; flash development &#124; actionscript &#124; creative &#187; Blog Archive &#187; 11 Must Have Flash Resources and 11 Must Have Utilities For 2009</title>
		<link>http://sebleedelisle.com/2008/06/so-long-and-thanks-for-all-the-particles/comment-page-1/#comment-475</link>
		<dc:creator>hydrotik &#124; flash development &#124; actionscript &#124; creative &#187; Blog Archive &#187; 11 Must Have Flash Resources and 11 Must Have Utilities For 2009</dc:creator>
		<pubDate>Mon, 24 Nov 2008 01:03:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=187#comment-475</guid>
		<description>[...] This is perfect for particle engines as it&#8217;s used above. If you&#8217;ve seen one of Seb Lee-Delisle&#8217;s particle talks at a conference, then you&#8217;ve seen this in action with how he&#8217;s recycling [...]</description>
		<content:encoded><![CDATA[<p>[...] This is perfect for particle engines as it&#8217;s used above. If you&#8217;ve seen one of Seb Lee-Delisle&#8217;s particle talks at a conference, then you&#8217;ve seen this in action with how he&#8217;s recycling [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seb</title>
		<link>http://sebleedelisle.com/2008/06/so-long-and-thanks-for-all-the-particles/comment-page-1/#comment-467</link>
		<dc:creator>seb</dc:creator>
		<pubDate>Sun, 06 Jul 2008 12:11:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=187#comment-467</guid>
		<description>Hi Hector,

Of course you can use my code as you wish, I&#039;d be really keen to see what you do with it so let me know, and good luck!

Seb</description>
		<content:encoded><![CDATA[<p>Hi Hector,</p>
<p>Of course you can use my code as you wish, I&#8217;d be really keen to see what you do with it so let me know, and good luck!</p>
<p>Seb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hector Padilla</title>
		<link>http://sebleedelisle.com/2008/06/so-long-and-thanks-for-all-the-particles/comment-page-1/#comment-466</link>
		<dc:creator>Hector Padilla</dc:creator>
		<pubDate>Sun, 06 Jul 2008 03:50:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebleedelisle.com/?p=187#comment-466</guid>
		<description>sorry for the question, i noticed its the CC license. :-)
cheers!</description>
		<content:encoded><![CDATA[<p>sorry for the question, i noticed its the CC license. <img src='http://sebleedelisle.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
cheers!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
