but you can add scripts to sprites on the fly w/  something like:

y= new (script "newScript")
sprite(me.spriteNum).scriptInstanceList.add(y)

where newScript holds the unique behaviors that you want to add....

but, w/out hand written code, the scripts won't be dependent on each other

-e

Irv Kalb wrote:

Only one. There is just a single "ancestor" keyword.

You can really "nest" ancestor scripts, but an ancestor script can set its own ancestor, etc. But it sounds like you are looking for multiple inheritance - and Lingo does not allow that.

Irv

At 4:24 PM +0000 10/28/02, Jamie Dyer wrote:

Is it possible to have more than 1 ancestor script?

e.g.

me.ancestor1 = new(script "blah")
me.ancestor2 = new(script "blah2")

I know that you can nest ancestor scripts but this is not what I want. What I want to do it to have a library of scripts and then add them to other scripts as and when needed.

Cheers

JamieD


--

_  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _


m u t a n t
            m e d i a      >     solutions for success


Evan Adelman | 917.916.7378 | 598 Broadway  NY NY 10012
[EMAIL PROTECTED] <mailto:evan@;mutantmedia.com> | www.mutantmedia.com
<http://www.mutantmedia.com>



[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