If they are small flies (bigger then gnats) then I find, one of the electric bats fun, exercise and effective.
Select as Best AnswerUndo Best Answer
If its fruit flies, use a small bowl with Cider vinegar with some dish soap dissolved in it. Flies try to drink(?) It and get sucked in b/c of lack of surface tension. Works remarkably well.