Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
unregisterScript?

unregisterScript?

2004-02-04       - By Brian Robbins

 Back
Reply:     1     2  

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