Global functions exist in movie scripts.

Sorry, you couldn't declare them in Lingo.ini (if only, unfortunately 
there'd be a security problem).  However you could reference external casts 
and link them in dynamically or import the script text.

So to make a movie script, which is a script whose handlers (there can be 
more than one defined), have the cast window open, and do ctrl-0 (zero), or 
have the cast window open and choose Window | Script from the menu.  To 
double check, click the little blue 'i' icon, for script cast member 
properties, and make sure it reads "Movie script".

Any given function is first attempted to be delivered to the sprite, then 
to the castmember, then to the frame script, then to the movie script.

You can have multiple movie scripts.

There can only be one given function (idle, exitFrame, startMovie) per 
program.  If you have multiple movie scripts with multiple idle handlers, 
only the first one encountered will be called.

- Tab


At 11:35 AM 7/25/01 +1000, Brendon wrote:
>hi,
>
>How do i make a global (or would it be public? i'm not sure of terminology)
>function in director?  As i'd prefer to encapulate often typed code.  Could
>i store these functions in lingo.ini for quick mods?
>
>Cheers
>
>Brendon


[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!]

Reply via email to