receiving a callback or chance to override display.remove or displayObject:removeSelf

I’m using the ParticleCandy library that stores a particle emitter into a display group. When the scene exits, the view is removed, which means remove is called on all the objects in the scene. This removes the emitter, even though i’d like to use it again.

Does anyone know how to get a callback when an object is removed so that I can intercept the remove and not actually remove it?

Alternately, is there a way to tell if something is a valid display object (not removed) so that I can do something different if i notice its been deleted? [import]uid: 122310 topic_id: 30565 reply_id: 330565[/import]

If you are using Corona Storyboard, use the :enterScene and :createScene methods to start or create your particle stuff, as well as the :exitScene and :destroyScene methods provided to stop or destroy your particle stuff.

You should *always* remove your particle stuff manually (using Particles.CleanUp(), for example) before a scene is purged. Removing particle stuff and emitters without using the proper Particle Candy commands (by :removeSelf(), for example) might cause memory leaks and unwanted side effects.

Also refer to the Corona Storyboard API reference and the Particle Candy code sample “Sample Storyboard” (included) that demonstrates how to use Particle Candy together with Storyboard. [import]uid: 10504 topic_id: 30565 reply_id: 123169[/import]

If you are using Corona Storyboard, use the :enterScene and :createScene methods to start or create your particle stuff, as well as the :exitScene and :destroyScene methods provided to stop or destroy your particle stuff.

You should *always* remove your particle stuff manually (using Particles.CleanUp(), for example) before a scene is purged. Removing particle stuff and emitters without using the proper Particle Candy commands (by :removeSelf(), for example) might cause memory leaks and unwanted side effects.

Also refer to the Corona Storyboard API reference and the Particle Candy code sample “Sample Storyboard” (included) that demonstrates how to use Particle Candy together with Storyboard. [import]uid: 10504 topic_id: 30565 reply_id: 123169[/import]