Recently I have discovered that I need to remove all
instances of the keyframePlayer modifier in a stopMovie function,
or else when my projector is closed an error message appears.
An on stopMovie handler is a good place to put Lingo that
performs cleanup tasks--such as closing resource files, clearing
global variables, erasing fields, and disposing of objects--when
the movie is finished.
I come from a Flash background, and am just now starting to
learn about how memory is handled. Do I need to delete objects and
clear variables in the stopMovie function as well? Is there a rule
of thumb to follow? I am not getting an error when I close the
projector now… am I safe?
all these objects can be killed where they were created
locally and unless you're using global variables, don't need to be
killed in the on stopMovie handler... the clearGlobals() is a
catchall that will do the trick.