Question: who played frederick in the sound of music
Answer: Nicholas Hammond ( born May 15 , 1950 ) is an American - Australian actor and writer who is perhaps best known for his roles as Friedrich von Trapp in the film The Sound of Music and as Peter Parker / Spider - Man on the television series The Amazing Spider - Man .