Better understanding of onSetFocus

Hello, fellow flash users! :beer:

I was wondering if some of you guys could help me get a better understanding of the onSetFocus handler. Please, have a look on this code:


var escuta:Object = new Object();
escuta.onSetFocus = function(oldFocus, newFocus) {
    oldFocus._name = oldFocus._name+"fundo";
    newFocus._name = newFocus._name+"fundo";
    newFocus.onEnterFrame = _global.movf;
    oldFocus.onEnterFrame = _global.movb;
}
Selection.addListener(escuta);

What I want is that flash plays an animation for the “old” movieclip and that also plays an animation for the “new” one. These movieclips arent those that had focus, thats why I renamed them. But, it doesnt work, and I really cant see why. So, could you help me out? Thanks!