unregisterScript? 2004-02-04 - By Neto
Back Only way I see is to create a wrapper script to do the registering work for you. I did that in my current project, and it works rather well.
-- -- Original Message -- -- From: "Brian Robbins" <brian-l@(protected)> To: <dir3d-l@(protected)> Sent: Wednesday, February 04, 2004 6:30 PM Subject: [Dir3d-l] unregisterScript?
> I've got to be missing something here. > > I have a series of models each controlled by a parent script. My parent > script calls registerScript on it's model to trap the #animationEnded > event. > > This part works great, however my problem comes when I later want to > clean up my parent scripts. There isn't an unregisterScript function, > so how can I get the model to forget about the registerScript event, and > thus forget about my object? Calling unregisterAllEvents() successfully > clears out all of the events and decrements the reference count on my > objects, but I only want to clear out the events associated with this > model. > > It appears that deleting the model doesn't even clear it out, as the > reference count for my object does not get decremented when the model is > deleted. > > Has anybody else noticed this before? What method do you use to > "unregisterScript" so that your parent scripts can be properly cleaned > up? > > Brian Robbins > Senior Creative Technologist, Fuel Industries > <http://www.FuelIndustries.com> > > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ > Dir3d-l mailing list > Dir3d-l@(protected) > http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l >
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|