Execute onEnterFrame

ok, should this work or am i barking up the wrong tree?

onEnterFrame = traceMe("test")

traceMe = function(param){
[indent]trace(param)
[/indent]}

if that won’t work then would someone explain how you get something to exectue a predefined function and pass a variable…