package{
import flash.display.Sprite;
publicclass Main extends Sprite{
public function Main(){
function1();
function2();
}
function function1():void{
function2();
}
function function2():void{
if(arguments.caller == function1)
trace("function2 called from function1");
else
trace("function2 not called from function1");
}
}
}
// function2 not called from function1
// function2 not called from function1