Thursday, June 16, 2005, 9:40:58 PM, Cole wrote:
CT> Has anyone tried anything similar?
Or, something I used to do before I moved away from using globals completely,
was to use properties of a script cast member.
Eg, have a script cast member called "globals".
In that script, you define a property for each 'global' var you want, eg:
-------- script("globals") --------------
property myVar, myOthervar, myThirdVar
-----------------------------------------
Then, at any other point in your movie, you can refer to it like this:
script("globals").myVar = 100
put script("globals").myVar
Or to make it prettier and faster, you could create a reference to the script
cast member before using it, like this
globals = script("globals")
globals.myVar = 100
put globals.myVar
- Ben
_______________________
duck(at)robotduck.com
www.robotduck.com
[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!]