This would go on the root timeline actions.

OnEnterFrame is placed on frames
onClipEvent is place on mc's

You also want to makes sure the path is correct, as mentioned above, if AE is inside CD, this will work fine. If both are seperate at the root level, remove the CD from CD.AE