> In Lingo, there are three different types of scripts: Movie, Parent,
> and Behavior. Any "handlers" put into a Movie script are globally
> available.
>
> Parent scripts and Behavior scripts are the templates used for
> creating objects, so the scope of handlers (methods) in Parent
> scripts and Behavior scripts is restricted to the current script. If
> you use a parent script, you must explicitly create an object by
> calling it's "new" method.
Just a note, you can also do it like this without the new method:
e.g. script("myParentScript").pName = "Kurt"
Behavior scripts are attached by the
> programmer by dragging from the castlib to a sprite in the score.
> Instantiation is done automatically for you when the play head
> reaches the sprite span - and the behavior is eliminated
> automatically for you when the play head leaves the sprite span.
>
> As for Public and Private, (I don't know what Protected means), in
> Lingo, all methods are Public. It has been discussed here many times
> that it would be very nice to have a Private method. A good
> suggestion is to have some naming convention to identify the
> differences between methods intended to be public vs private, e.g.
>
> on mDoThis me --- public method, starts with an "m"
>
> on imDoThis me -- internal method, starts with an "i"
I often use some lines just to clearify it for myself
--------PUBLIC-------------
on mDoThis me
end
on mGetCurrentState me
end
---------------------------
--------PRIVATE-------------
on init me
end
on clearText me
end
---------------------------
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]