Here is an example:
Script B accesses 2 variables in Script A and changes them and Update function in A is endlessly executing the function with changed arguments.
ScriptA
static var value1:int;
static var value2:int;
function Update(){
MyFunction(value1, value2);
}
function MyFunction(v1:int,v2:int) {
Do something here...
}
ScriptB
function OnMouseDown(){
ScriptA.value1 = 10;
ScriptB.value2 = 20;
}