Flint Particle System Forum - Fireworks on demand 2011-12-11T11:25:25+00:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher Fireworks on demand http://flintparticles.org/forum/comments.php?DiscussionID=494&Focus=1659#Comment_1659 2011-07-01T11:55:44+01:00 2011-12-11T11:25:25+00:00 dcipollo http://flintparticles.org/forum/account.php?u=491 Hi, I'm using the Fireworks example but I don't want it to repeat. So I took out the restart. /*emitter.addEventListener( EmitterEvent.EMITTER_EMPTY, restart, false, 0, true );*/ Then I ...
I'm using the Fireworks example but I don't want it to repeat. So I took out the restart.

/*emitter.addEventListener( EmitterEvent.EMITTER_EMPTY, restart, false, 0, true );*/

Then I call a fireworks explosion on two other frames

emitter.x = 500;
emitter.y = 20;
emitter.start();

Do I need anything more than this to stop the system.

emitter.stop();
renderer.removeEmitter( emitter );
removeChild( renderer );

emitter = null;
renderer = null;

Thanks alot.]]>
Fireworks on demand http://flintparticles.org/forum/comments.php?DiscussionID=494&Focus=1669#Comment_1669 2011-07-15T17:46:24+01:00 2011-12-11T11:25:25+00:00 Richard http://flintparticles.org/forum/account.php?u=1 No, that should be all you need.