K
Kululu17
Guest
Hi - quick question about what is considered "local". If you declare a local variable in a script, and then that script calls a second script, can you access and change the variable from the first script within the second script? I know var is local, but I thought that when you use a script it is considered local to the object calling it as well... but it doesn't explain in depth in the manual.
So to make the question more general:
Start with Object A, which calls Script B, which then calls Script C.
What is local to what in this example? Can you use "var", or do you have to make it an instance variable? If you make an instance variable within a script, is it "deleted" afterwards like a "var", or does it clutter up your memory?
Thanks!
So to make the question more general:
Start with Object A, which calls Script B, which then calls Script C.
What is local to what in this example? Can you use "var", or do you have to make it an instance variable? If you make an instance variable within a script, is it "deleted" afterwards like a "var", or does it clutter up your memory?
Thanks!