Fork me on GitHub
Not signed in (Sign In)

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

    • CommentAuthorluigicoria
    • CommentTimeApr 18th 2009
     
    Hi, i've made the exaple and it looks pretty good. Now i want to remove al the particles from memory when i change to another movie. how to do that?
    • CommentAuthorRichard
    • CommentTimeApr 20th 2009
     
    To clean up completely, you need to...

    // Stop the emitter
    emitter.stop();
    // Clear all the cached particles
    ParticleCreator2D( emitter.particleFactory ).clearAllParticles();
    // Remove references to the emitter
    renderer.removeEmitter( emitter );
    emitter = null;
    // Remove references to the renderer
    removeChild( renderer );
    renderer = null;