Need help with Pong AI

I am a beginner with AS3 an I am trying to make a basic Player vs CUP pong game. I have a document class and individual classes for Ball, Player and CPU. My problem is that I don’t know how to make CPU use the co-ordinates of the ball to move with respect to it as required to form the AI. The Ball, Player and CPU are all movie clips and I have drawn them on stage. Any help is very much appreciated.