onEnterFrame only runs once

I’m having a problem with an onEnterFrame event which only runs once and then stops. I’ve commented out all of the other actionscript in my movie, and it will still continue with that problem. I even copied and pasted this from another movie to a new one, and the problem still persists. So it must be a problem with the movie clip instances themself, as I’ve tried the onEnterFrame on two different timelines.

Thanks for any help I can get, I’m in a bit of a pickle on this one.

controller.onEnterFrame = test;
function test() {
 trace("problem");
}

lol

Is it a problem with that code?