I am developing an app in AS3 which utilizes the starling particle extension but I am have some trouble not looping it.
I created a new class in an objects package called particle which has the below code in it.
mParticleSystem = mParticleSystems.shift();
mParticleSystems.push(mParticleSystem);
mParticleSystem.emitterX = 320;
mParticleSystem.emitterY = 240;
mParticleSystem.start();
addChild(mParticleSystem);
Starling.juggler.add(mParticleSystem);
I call this class in my main project by
particle = new Particle();
this.addChild(particle);
Everything works perfectly except I am unable to stop the juggler. I have tried adding an event listener onto the mParticleSystem and call a function to remove but the event doesn't fire. Any guidance is appreciated.