Although the story was supposed to be happening in Salem, Massachusetts, not much of the movie was actually filmed there. The opening scenes, when the camera is flying over what is supposed to be 17th century Salem, is the Pioneer Village, a living history museum in Salem's Forest River Park. Exteriors of Alison's house were shot at Ropes Mansion in Salem. Jacob Bailey High School is the old Phillips Elementary School in Salem (which closed a year before filming.) They just put up a new sign for filming. The phone number scene was shot in the Salem Common, a park large across the street from the elementary school in the heart of Salem. Exteriors for Max and Dani's house were shot along a dock on the ocean, at the end of a side street near Forest River Park. Interestingly, the whole right side of the house is literally on the ocean, but it was shot from an angle that makes it look like it's in the middle of town. Most other places, such as the Sanderson Museum, were shot on a studio lot in Los Angeles, California. Edit