Function error [AS 2]

I wrote a function on the main timeline that contains a onClipEvent(load) command. A bunch of movie clip symbols call up this function. When I test run, Flash says that onClipEvent(load) may only be used in a move clip. The code is not directly on a movie clip, but it is indirectly on one!