Adding functions to a dynamic MC

Hello.
i were trying to add onRollOver to a movieclip that i loaded with loadMovie().
But i were unable to give the MC functions.
How would i add functions to a external MC?
I did like this (Wrote from top of my head, sry for syntax error)

 ActionScript Code:
 [FONT=Courier New][LEFT]container.[COLOR=#0000ff]loadMovie[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]"dummy.swf"[/COLOR][COLOR=#000000])[/COLOR];

container.[COLOR=#0000ff]onRollOver[/COLOR] = [COLOR=#000000]function[/COLOR] COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]trace[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]
[/LEFT]
[/FONT]

The onRollOver function do not work,but the movie gets loaded, any ideas on how to work around it?