A perfect collision code where you can react with all different shapes of objects is very complicated. Especially if your going for rounded objects and slopes. However if you are just after rectangluar objects (or objects almost rectangluar objects) you can just use a basic hitTest to do this.
If you are going to use rectangles then use this:
onClipEvent (enterFrame) {
if (this.hitTest(_root.table) {
// Make things happen when the table is hit.
}
}
However if the other is what you are after I dont suggest this for a first game.