Re: [Flashcoders] survival off eventlisteners on class instance redeclaration?

2007-06-02 Thread eka
Hello :) The event listener is registered in a collection (array or other data object) in the instance ( you use the event model of the AS3 framework in Flex ? or the event model in the mx AS2 library ?) If you destroy the instance your registration is canceled because the collection is a

[Flashcoders] survival off eventlisteners on class instance redeclaration?

2007-06-01 Thread Latcho
Hi list, IfI attach e new instance of a class to a *var myClass*=new friendlyClass() and then attach an eventlistener to it classHello.*addEventLister*(greeting,sayHello) now say that, after a while I want to overwrite the myClass variable with a new and fresh instance of the same