Subj : Re: variables and scopes To : Stuart From : Igor Bukanov Date : Thu Sep 23 2004 09:26 pm Stuart wrote: > Igor, > > I forgot to add my key problem is, how can I modify my scopes so that the > script would update the variable in the application scope: > > rootCounter = Number(rootCounter) + Number(1) If you want to force numeric semantic of "+" then rootCounter = Number(rootCounter) + 1 is enough. > > Would I need to change the scopes so that they use setParent rather than > setPrototype? Yes, but do not forget to call .setPrototype(null) in that case. Regards, Igor .