Flint Particle System Forum - Emitter running slow Thu, 23 Jun 2011 13:21:15 +0100 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Emitter running slow http://flintparticles.org/forum/comments.php?DiscussionID=196&Focus=752#Comment_752 http://flintparticles.org/forum/comments.php?DiscussionID=196&Focus=752#Comment_752 Wed, 08 Apr 2009 23:37:04 +0100 Kenny
This is the code I have on an EMITTER_EMPTY call back:

var emitter:Emitter2D = Emitter2D(e.target);
emitter.stop();
emitter.removeEventListener(EmitterEvent.EMITTER_EMPTY, next);

Thanks,
Kenny ]]>
Emitter running slow http://flintparticles.org/forum/comments.php?DiscussionID=196&Focus=755#Comment_755 http://flintparticles.org/forum/comments.php?DiscussionID=196&Focus=755#Comment_755 Thu, 09 Apr 2009 16:31:19 +0100 Kenny Emitter running slow http://flintparticles.org/forum/comments.php?DiscussionID=196&Focus=757#Comment_757 http://flintparticles.org/forum/comments.php?DiscussionID=196&Focus=757#Comment_757 Fri, 10 Apr 2009 12:52:52 +0100 Richard
emitter.stop();
emitter.removeEventListener(EmitterEvent.EMITTER_EMPTY, next);
renderer.removeEmitter( emitter );
emitter = null;


If you also want to dispose of the renderer you'd need to remove references to this too.

removeChild( renderer );
renderer = null;
]]>