Collision detection in a game

Hi guys. Need help with a small project im working on.
Basically im trying to check for collisions succesfully and make the character move to a certain position when colliding with something.

Link: http://truimagz.com/hosting/Public/testarea.html
Link to fla: http://truimagz.com/hosting/Public/testarea.fla

If you need to check the collisions on th fla, go to the background mc and then to the 2nd frame and check the as for the 2nd frame. I have had like 100 attempts to get it working so any help would be sooo greatfully appreciated.

All i need isfor someone to look at the script and tell me what im doing wrong.

Thanks.