Instance names and functions

im trying to use a function in a timeline to identify a symbol and do some stuff with it.

on the movie clip
[color=Red]onClipEvent (load) {

[color=Black]on the timeline
[color=Blue]function test (name) {

this is not working. I basically want to have about 30 movie clips that all try to use the function “test”
i do not want to put the function on the movie clip.
i’ve tried some different things, such as eval, but can’t get anything to work.

please help