Behaviors can have ancestor scripts in the same way that parent scripts do. (Ancestor scripts are additional scripts whose handlers and properties a parent script can call on and use.)
For more information about the concept of ancestors and inheritance, see the Scripting Reference topics in the Director Help Panel.
To make a script an ancestor, do one of the following:
For example, the statement property ancestor declares that ancestor is a property.
For example, the following handler makes the script Common Behavior an ancestor of the behavior when Director first enters the sprite:
--Lingo syntax
on beginSprite
sprite(me.spriteNum).ancestor = script("Common Behavior").new()
end
This handler will let the behavior also use the handler in the script Common Behavior.