Do you want to attach a behavior to a sprite? Do you want the movie 
to do it for you? If so, try:

on startMovie me

   newScript = script("testScript").new()
   sprite(1).scriptInstanceList.append(newScript)

end

This code will
1) make a new script instance from the behavior member called "testScript"
2) append the script instance to the scripts that sprite 1 already has

-A.



>At 03:54 28.01.2002 -0500, hoanglinh wrote:
>>Hello,
>>I'm a becomer and my English is not well. I have got a
>>question that I want to use the statement to set a behavior
>>into a sprite or much more. I tried to use the "sendsprite"
>>and "sendallsprites" statement but unsuccessfull. Somebody
>>help me???
>
>hoanglinh,
>
>ken pratt already posted a pointer to a (fairly advanced) lingo 
>element which may (or may not) meet your needs.
>
>If, however, your question aimed at something else: please describe 
>the task you whish to achieve with more details.
>(I may be wrong but I have the feeling you mean something really basic.)
>
>best regards
>daniel plaenitz
>
>[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!]

[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