James Newton wrote

>> Is there any difference between
>> on beginSprite me
>> and on new me?
 
> The difference between the two is that when "on new()" is called, none of
> the properties set in the getPropertyDescriptionList() handler are
> available.

The other difference is the order in which they are called - when you have
more than one behaviour on a sprite, all the #new handlers of all the
behaviours get called before the #beginSprite handlers get called. (This can
be an advantage since you can initialise some properties using the #new
handler, then do some calculations on #beginSprite without worrying whether
the other behaviours have been initialised or not.)

Luke


[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