Jeremy wrote:
> 
> When creating dynamic sprites with puppet = true and setting the member
> and all, is there a way to then assign a script to the sprite so that I
> can give it rollover and mouse behaviors?

Write the rollover and mouse behaviors as parent scripts and apply them thusly:

  sprite(x).scriptinstancelist = 
[new(script"rolloverParent"),new(script"mouseyStuffParent")]

or

 sprite(x).scriptinstancelist.add(new(script"rolloverParent")
 sprite(x).scriptinstancelist.add(new(script"mouseyStuffParent")

Same result, the latter's more flexible, the former's more exact.
Watch you don't apply a script twice if you use .add, it can lead to very weird 
behaviour and it's hard to find.

G'night.

-- 
Carl West   [EMAIL PROTECTED]   http://eisen.home.attbi.com

I have no superfluous leisure; my stay must be stolen out
of other affairs; but I will attend you awhile.
           - Isabella, Measure for Measure, Act 3 Scene 1
-
[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