At 10:17 -0500 18/12/01, Brian Romanko wrote:
>Damn...took less time then I thought.  In short, please disregard my
>message.  I'm not quite sure why, but if I add the behavior to the
>scriptInstanceList in a beginSprite handler of the frame script (sprite
>0), any attached behaviors no longer work.  I changed it to enterFrame
>with a flag to only do it once, and both were in the scriptInstanceList.
>My guess is that if you mess with the scriptInstanceList before the
>sprite is on stage, attached behaviors never get added to the
>scriptInstanceList (true?).

I've seen the same.
Also I found it necessary to make sure that the extra instance 
removed itself from the scriptList at endSprite.
AFAIR this was necessary in order to free the scriptChannel further 
down the score.

I am using this technique to route keydown-events into LDMs.

jakob

[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!]

Reply via email to