>If Director does store a list of currently available handlers, then I
>daresay it does it badly.
I like the research! Can you do a test where there are lots and lots
of sprites, but that only a few have the handler? Compare that
against there only being those few sprites.
One of the nice things about sendallsprites is that you don't have to
keep track of the sprite channels. If you have to move them around
they still work. With hard wired numbers you would have to update
your lists. One possible solution to that could be this:
frame script:
on exitframe
global spritestosendto
if voidp(spritestosendto) then
spritetosendto = []
sendallsprites #areyouin
end if
repeat with a = 1 to count(spritestosendto)
sendsprite(spritestosendto[a],#somethingmeaningful)
end repeat
go the frame
end
and on the sprite:
on somethingmeaningful
do whatever
end
on areyouin
global spritestosendto
append spritestosendto,the currentspritenum
end
Something like that anyway. This way you can move the sprites around
in the channels, and it should still work (assuming that you did a
clearglobals to void the variable that contains the list of sprites).
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/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!]