At 1:13 PM -0400 9/24/02, Tab Julius wrote:
>At 12:52 PM 9/24/02, Howdy-Tzi wrote:
>No it won't. I misremembered. This is the code you want:
>
>>   sprite(nSpriteNum).scriptInstanceList = []
>>
>>setScriptList is for *adding* behaviors. It doesn't work for clearing them!
>
>
>Also I don't believe it works for score recording either, which was 
>in the original request.  However, I did notice in at least previous 
>versions of Director (not sure if it holds true in D8.5 or not) that 
>if I set the script instance list to empty, like you do here, it 
>made it impossible to add new scripts.  That is, you could add them, 
>but they wouldn't take effect.  The original list was referenced. 
>Once I figured out what was going on, I got around it by 
>hand-deleting them.  In other words, keeping the original list 
>container but deleting each of the contents.  It seemed that 
>assigning a new container made it impossible to apply new scripts 
>afterwards and have them work.


Too bad about the scoreRecording. I may give it try and report my 
results, just to be sure. I've inherited a bunch of unfinished 
projects that need some reorganization. Be nice to scoot through the 
score an clear out all the behaviour refs in one fell swoop.

-- 
Cole
[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