Platform based game help needed

i am trying to make my first platform based game i want to detect the curves on ground movieclip to make my character react accordingly. can somebody help me here.