The first thing I'd fix is make it go from 1 to 30.

There is no sprite 0, and it's quite possible that accessing sprite 0 would 
cause it to crash.

Fix that, and then see what happens.

- Tab

At 07:53 PM 9/9/00 -0700, David Parker wrote:
>I am not finding much help with the "setscriptlist()" method.
>
>I have a bunch of text members I can bring to the stage, and I want to
>attach the same behavior to all of them. This behavior will take the name of
>the castmember and assume there is a marker in the movie with that name. It
>will be sort of a dynamic table of contents. I need a few simple examples of
>setscriptlist to see if I can pull this off.
>
>So far the most dramatic thing I have been able to acomplish with the script
>was to crash Director. B^)
>
>   pmymovie = gcurrentarea[1]
>   repeat with i = 0 to 30
>     pmy = i
>     pmytarget = sprite(i).member.name
>--    sprite(i).setscriptlist([[(member("GoMyMarker"),[#my: pmy, #mytarget:
>pmytarget, #mymovie: pmymovie]]])
>   end repeat
>
>
>[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!]


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

Reply via email to