Collision Hit test help

hello im new to the site im making a Balloon game in flash 8 what i want to know is the code so when the Balloon or Circle hits a wall or curve it stops at the wall instead of bouncing off.Thanks