[FlashCS3/AS2] How do I put a rollover on a dynamically created movieclip?

Hi all,

How do I put a rollover on a dynamically created movieclip?

I have several movieclips being placed inside a container movieclip and I need them to have onRollOver, onRollOut and onRelease events. The way I usually target and do this…

_root.mcContainerName.mcName.onRollOver = function() {
_root.mcContainerName*.mcName.*gotoAndStop(“over”);
}

…does not seem to work for whatever reason. However, if I put a named instance of the movieclip on the stage myself and target it in exactly the same way (with similar syntax), the rollover works fine.

Can anyone tell me how I can get around this? Thanks in advance.