Am 16.06.2005 um 22:40 schrieb Cole Tierney:
Hi,
I'm working on a project that needs to go movie some
"existing_movie". The problem is that this "existing_movie" calls
clearglobals a couple times and tromps on my global space. I could
get access to "existing_movie" and toss a reference to
gMySpecialPlist into a temp variable and restore it after
clearglobals. But ideally, I'd like a solution that does not touch
the code in "existing_movie".
I think the timeOutList might be a safe place (I don't think that
gets zapped). I was also considering an off screen MIAW to hold
some of my props in static movie script, but I think a timeout
object would be cleaner.
Has anyone tried anything similar?
yes. create a script and use it as an uninstantiated container for
your 'globals'
x = new(#script)
x.name = "myGlobalSpace"
x.scripttext = "property gGlobalList"
(script "myGlobalSpace").gGlobalList = [:]
(script "myGlobalSpace").gGlobalList[#myGlobal] = "protected"
clearglobals
put (script "myGlobalSpace").gGlobalList.myGlobal
-- "protected"
the only way to "clear" it is to call 'recompile all scripts'.
---------------------------
|||
a¿ex
[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!]