Last Action Hero
The first film to use this format was "Last Action Hero" (1993), and the last was "Surf's Up" (2007).