Hi, Just a quick summary of the analogy between Lingo and OOP concepts.
1) Parent script and Behavior both are classes whose instances can be created. 2) Constructors: On new me - parent. On beginSprite me - behavior. 3) Initialization of member variables: parameters passed to "on new me, x, y" - parent. GPDL - behavior. 4) Both parent and behavior can have member functions in the form of handlers [custom as well as event] . 5) Object creation: x = new(script "parent") - parent. Attaching the behavior manually to the sprite. - behavior. HTH, - Sandy. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Genevieve Young Sent: Tuesday, December 04, 2001 7:40 PM To: [EMAIL PROTECTED] Subject: Re: <lingo-l> parent scripts vs event handlers Thank you Irv for your detailed reply. However, does this mean: i. a behavior is a class? [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!]
