onChanged onKillFocus problem

can anyone provide a concrete ex. of onKillFocus or onChanged calling an outside funtion? I’ve been totally unable to do this following the examples included with MX

Thanks All!!

myText.onSetFocus = function () {
myText.backgroundColor = yellow; //need to assign a hex coded color to the var ‘yellow’ before!

myText.onKillFocus = function (){
input = Number (input); //input txt is treated as string by default!
if input < 10{
myText.backgroundColor = black; //or do whatever
myText.backgroundColor = green; //likewise…

notes: you need to set myText.backgroundColor = true; before you use this;
define colors like yellow = 0xFFFF00;