I do what Aryia says. I open my containers and let the flying ones into a net. I usually do this every other day for a while.
And they might not really be fruit flies. I think Orin or someone else mentioned something getting into cultures. This sometimes happens to me when I re-use lids too...