What am I doing wrong with this function?

on the timeline of the movie you are trying to trace put
trace(this)