I find that if I seal a water stain with BIN shellac (l like 2 coats) , I sand it really well with fine paper, then spot roll (w/ mini roller) acrylic primer, then spot roll ceiling paint, then full coat ceiling paint- I do not have a problem with flashing. maybe it's overkill but it doesn't take much time- make sure you roll so texture stays the same.