Hi, I'm not sure what kind of flies you are dealing with, but there's not much you can do to keep flying insects away from your plants. If they are really bothering you, I'd try to catch a few and then get them identified to see exactly what they are. They could be good insects that are just trying to pollinate your plants. You could have your local extension service identify them or take them to a local garden center.