Sure, something like this (untested) (you don't say which castlib,
so I'll assume castlib 1 "Internal"):
on stopMovie
nMembers = the number of members in castlib 1
repeat with i = 1 to nMembers
if member(i).type = #sound then
erase member i
end if
end repeat
end
Or, if you are creating sound members on the fly and want them
cleared out at the end of the movie, then every time you create one,
you add it to a global list of members. Then at the end of the
movie, just run down your list and delete those specific ones.
Irv
At 1:57 PM -0400 4/19/01, Allard, Simon wrote:
>Hi,
>
>I wonder if it's possible to erase a member type.
>I need to erase all the sounds member in the cast, when the movie stop
>playing.
>
--
Lingo / Director / Shockwave development for all occasions.
(Home-made Lingo cooked up fresh every day just for you.)
[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!]