Rajiv Ranjan <[EMAIL PROTECTED]> wrote:
> Is there anyway in lingo to record the script instace for that sprite?
> I have a sprite (dynamically created ).
> I use beginrecording for recording the postion etc for that sprite ,
> then i assign a runtime behaviour to that sprite.

Hi Rajiv,

Score recording creates sprites frame-by-frame.  Behaviors are added to an
entire sprite span.  This difference means that you can't add behaviors
inside the score recording session.  (Actually, you can: you can set the
scriptNum of the sprite, but this only allows you to add a single instance,
and it gives you no way or setting its parameters, so it is not a
fully-fledged behavior).

If you are using Director 8.x, you can use the setScriptList() method to add
behaviors permanently outside the score recording session.

Cheers,

James


[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