before putting the function, check if the var of interface is in the code,
if not (your code will not work), so put in line 1(can be in whatever line, but need to be above the functions):
var INTERFACE = _global.getCurrentInterface();
before putting the function, check if the var of interface is in the code,
if not (your code will not work), so put in line 1(can be in whatever line, but need to be above the functions):
var INTERFACE = _global.getCurrentInterface();