There is another possibility. Juices from the plant, honeydew, turns black due to a fungus. The flies are there to lap up the sugar laden substance. Those appear to be house flies and they do not eat plants. Their mouthparts essentially are similar to sponges. They lick or lap up their food.