I don't think flirting is cheating, as long as everyone involved knows the boundaries. But that's what works for me personally. If I was with someone who was uncomfortable with that, I would alter my behaviour.
I think anything you need to hide... kissing, sexual contact, inappropriate messages (as in, sexual or secret) or emotional connections that go beyond friendship... would be cheating.