There is the Lingo 'erase' command, which will delete a castmember.

Director does not free up the space, though - it just marks it as unused 
and doesn't reclaim it until you do a "save as" or "save and compact".

At runtime, if you need to save the state, and are saving out the cast, I 
think saving it under a different name will cause the space to be reclaimed.

Or, you could just use the same castmember (or groups of castmembers) over 
and over.  There used to be a leak on the Mac related to this, but I 
believe it is gone in Director 7+.

- Tab

At 05:09 PM 10/25/01 +0100, Jamie Dyer wrote:
>Hi All,
>
>Is there a way to delete cast members when I no longer need them?
>
>I have a navigation system the is fairly deep and generated dynamically.
>At the moment I am creating new cast members every time a room is
>loaded, regardless of whether the user has already been in the room. If
>the users visits lots of rooms in a single session then there is going
>to be hundreds of cast member created. I have been looking for a way to
>dynamically delete cast members but have not found one yet. My only
>other alternative is to work out if I have enough cast members already
>created to construct a room and only generate new ones if I need to.
>This will be a lot more complicated than simply deleting cast members
>when a room is left, so I would prefer to delete them.
>
>Thank you
>
>JamieD
>
>[To remove yourself from this list, or to change to digest mode, go to
>http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
>email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
>Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to