Targeting timelines

This should would right?

 
a.b.c.d.onRollOver = function () {
_root.e.f.gotoAndPlay ("over");
_root.e.g.gotoAndPlay ("done");
}

I need to change what a button does at certain keyframes, namely rolling over it animates different things nested inside of different movie clips at different times. I thought this should work but it doesn’t seem to be doing anything…