Oatmeal there are so many "it depends" in answer to your question. When in doubt follow Sandy's rules.
In my opinion you draw the line with being friends at providing any type of support, either emotional or financial. My recommended standard is "friendly co-worker". If it would be over the line for a friendly co-worker, then it is over the line for your WAS.
Generally trying to "be friends" is not a good idea unless it benefits your kids, simply because most people do not have the self discipline to cease their pursuit / moping / "little comments" etc. In addition, it can stick you in limbo forever as your WAS will probably be getting what they need from you so why change anything?
Acc
Married 18, Together 20, Now Divorced M: 48, W: 50, D: 18, S: 16, D: 12 Bomb Dropped (EA, D): 7/13/11 Start Reconcile: 8/15/11 Bomb Dropped (EA, D): 5/1/2014 (Divorced) In a New Relationship: 3/2015