Tom Richardson wrote:
> If I use "clearGlobals" to clear my globals,  how can I not clear a
> hand full of globals?
> 
> Is there a different way for me to set vars other than globals?

Use objects properties, that's the object or behavior side of OOP in Lingo.
You will greatly benefit of that programming style.

Search also the keyword "global" in DIRECT-L archives. 
It must be there a lot of interesting things.
Among them, a original method by Glenn M. Picher (1997):
"'Movie globals', available now! (Was: Don't kill the global!; Was: JT wants your Top 
10)"

Or, maybe better, by the same Author:
"Cool way to store 'private' variables (was: Undoc'd Feature)"
Here's a part of what he says:

"...
In other words, you can attach any sort of value to the script
of a castmember. Add a dummy script with just a property variable
declaration. Voila, 'private' castemember variables which don't
pollute the global name space! (You can find out quite a bit more
about this technique by searching for threads called "Eureka!"
and "Script object" in the Direct-L archive from a couple of
years ago.)

Note that 'recompile all scripts' sets all properties back
to void values; and note that clearGlobals *doesn't* reset these
private castmember 'script object' variables. They aren't stored
with the castmember when you save the movie, of course.
..."

Hope this helps,

Franco

IFC Programming Consultant
http://www.chnexus.com/main.htm
mailto:[EMAIL PROTECTED]
[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