> how is it possible to check in which sprite a certain castmember is
located.
Untested.
on makeThemInvisible List_of_CastMembersName_to_Check
if not listP(List_of_CastMembersName_to_Check) then
alert "Need a valid list as parameter."
return VOID
end if
repeat with i = 1 to the lastChannel
repeat with j = 1 to count(List_of_CastMembersName_to_Check)
set spriteMemberName = sprite(i).member.name
set theMember = getat(List_of_CastMembersName_to_Check, j)
if spriteMemberName = theMember then
-- we have a match, so make them invisible.
put "Member" && theMember && "is on channel" && i
sprite(i).visible = FALSE
end if
end repeat
end repeat
end
-- to call this handler
makeThemInvisible (List_of_CastMembers)
Hope I was able to make your day.
cheers,
John Erazo
[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!]