Bill Numerick wrote
> Can anyone tell me how to remove a behavior with setScriptList? or is there
> a better way to do it with lingo? I'm looking through the D8.5 lingo book
> and I just can't seem to get setScriptList to work and was unable to find
> anything on it at directorU, director-online or in my other books (although
> most are for D7).
>
> Thanks for any help...hopefully its a quick thing.
usually you want to remove the instance of the behaviour from the
scriptInstanceList of the sprite - like this
sprite(i).scriptInstanceList.deleteOne(behaviourInstance)
or - to delete the first behaviour instance
sprite(i).scriptInstanceList.deleteAt(1)
Luke
[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!]