REALLY simple code not working wtf >_<

Simple as this I’m testing a little bit of code, and its doing nothing on my MC, is there something really obvious I’m missing.

onClipEvent(enterFrame){
 _root.timer+=1
 if(_root.timer == 20){
trace("Duping")
duplicateMovieClip(_root.splash,"spray"+_root.num,_root.getNextHighestDepth());
_root.timer = 0
}
g=eval("spray"+_root.num);
g._x = _root.foot.pt1._x
g._y=_root.foot.pt1._y
}

Thanks in advance,

PS there are no errors being flagged.