More than flirt with (3,2)
I believe the answer is:
hit on
(Other definitions for hit on that I've seen before include "Serendipitously find" , "Discover; single out" , "Discovered suddenly or, in modern slang, made advances towards" , "Discover, think of" , "try a pass?" .)