I/men have and should have a general rule on this topic.
Dating a friend's former girl is fair game as long as a declaration of "open season" has been called by the original male of the circle making the declaration. It is to be assumed that after a mourning period has passed, that said individual would allow the former lady friend to return to the sea or potentials. At said time, this individual shall make a declaration to the men of his clan and state, "anyone that may be interested in said lady is welcome to venture into that area, for the good of the species". Declaring "fair game", if you will.
Now human nature DOES, occasionally come into play. There are "those individuals" that have narcissistic personalities and aren't capable of comprehending the concept of general welfare of the people. They tend to keep anything they at one point could claim as their own as always theirs, and this counts for relationships as well.
EDIT: I should add that the situation I speak of would occur after a relationship has ended. Any issue with your friends flirting with your girl WHILE you date her isn't really the topic.
It would be considered unkind and probably dishonorable to not honor this person's wishes, particularly if you classify them as "friend". For this reason, it would be best for you to pass on any potential relations with your friends former lady in this situation. There are after all, plenty of other women out there.
It has been said that people in certain circles sometimes find life mates within their own social groups after another relationship has ended. This is far more common than some would realize, particularly those living in cities. Keeping in short, sometimes, new prospectives are scarce.
Know the code, live the code, honor the code. It's the man code. I don't know how the women's code works, being as I ain't one, but I would expect that there must be some reference regarding this topic.