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 property of the instance.
PS : you can use the event model in AS2 or AS3 or SSAS(JS) of my openSource
framework VEGAS : http://code.google.com/p/vegas/wiki/VegasTutorialsEvents
To install VEGAS : http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN
EKA+ :)
2007/6/1, Latcho [EMAIL PROTECTED]:
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
*myClass*=new friendlyClass()
now my question: will the eventlistener still work or do I have to
redeclare it again ?
Thanks,
Stijn aka Latcho
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com