setInterval question

I’m trying to delay a function which then sets the onEnterFrame of a clip

The colde I am trying will not work

var i=0;
var delayID=setInterval(setUp,100);

function setUp(){
clearInterval(delayID);
this.onEnterFrame=function(){trace(i++);};}

how can I fix this