I have a script that goes something like this (though this is an example just to illustrate my question, and isn't really doing anything)
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
on run {}
do_function1()
do_function2()
end run
on do_function1()
set x to <font color = blue>1</font>
end do_function1
on do_function2()
set final_result to x + <font color = blue>1</font>
display dialog final_result
end do_function2
</font>[/code]
Now if you actually ran that script you would notice that x is undefined in do_function2(). Does anyone know how too keep the variable x so that it is available in any sub process?