[Flashr] how to use destroy() function?
Kelvin Luck
kelvin at kelvinluck.com
Tue Apr 25 18:38:00 EDT 2006
Hi,
Are you talking about FlashrResponse.destroy()?
This function is only useful where you have several different
FlashrResponse instances (or instances of subclasses of FlashrResponse)
in your application doing different tasks... I don't think this is a
particularly normal scenario but it is one I have found myself sometimes.
If you are in this situation and try deleting one of your FlashrResponse
instances when you have finished with it you may be in for a surprise...
It still seems to be around somewhere responding to Flashr events! The
destroy method is something I added in to the class to explicitly stop
it from listening to Flashr events which stops this ghostly behaviour.
You will still need to remove any references to the instance so that the
Flash garbage collector can clean it up properly...
Basically, the destroy function is one that I don't imagine will be used
very often but which is useful in certain situations...
Hope that helps,
Kelvin :)
Spiros Gerokostas wrote:
> how to use destroy() function? any good example?
More information about the Flashr
mailing list