Frogger Hittesting

Im making a sorta frogger game, and i need to know some things first. When my frogger (frogger) gets hit by a truck, (truck1) i need it to play from the 2nd frame within the frogger movie clip. I also need a wall code, so frogger cant get out. If someone could help me it would be greatly appreciated. Thank you for your time.