He doesn't flip-flop- because we have to assume that he actually holds both positions simultaneously.  He's Schrödinger Candidate.  But you can't find his exact policy until after he's elected and open the box.