Flirting is cheating, there is no cheating without flirting first, it is the first step.
She is channeling her sexual energy out of the relationship and into another man.
If a woman does this, let her know your feelings about this behavior, and if it happens again end the relationship and don't look back. It is not worth it.