Unfortunately Ric Flair has a documented bad temper with backstage incidents. He started an altercation with Eric Bischoff earlier this year (a legit but very short shoving match with threats thrown back and forth).
The back story is that Flair's had a problem with Mick Foley ever since his first book. It stems from comments made during the time Flair served as WCW booker and did not see Mick's potential to be a top guy. The ironic thing is Flair has publicly said that he 'never read' Foley's book and his entire grudge is based on here say. Foley basically said 'Flair didn't see much in me and didn't use me effectively'. Since Flair himself will admit this, there really shouldn't be much of a problem here.
Yet in his own book, Flair felt compelled 'return the favor' and bash Foley as both a performer and as a person. He even made it a focal point of his media campaign on talk shows and radio gigs. Since you normally don't find someone from with-in a company publicly attacking a fellow co-worker on that level without getting permission from the other guy and having a planned follow up storyline to make money off it, Foley was rightfully pissed. It's as if Flair was using the spotlight to carry out a grudge (with no payoff for Foley, only damage).
This caused a temporary riff between Mick Foley & WWE. That riff has since been healed....but the animosity between the two is legit. Foley has said he was willing to work an angle with Flair although he doesn't respect him as a person.
What happened at Raw was not staged, but an example of two people in the same company who don't like each other crossing paths after a long absence. That Flair 'threw a punch' is kind of sad.