User:SOTO/Forum Archive/The Reference Desk/@comment-72.241.208.125-20130313210047/@comment-26975268-20130314222631

I think it's meant to be Tim being inserted into the Doctor's memories, in his place. But, to answer the question, the flash doesn't come from any episode and, as CzechOut said, was made specifically for the episode.