Ants and flies will be attracted to a food source usually, though ants can be found on nearly all trees at some point in the growing season. if they are in abundance, perhaps another sap feeding insect has supplied them an easy meal. look for aphids or scale insects, both produce and exudate rich in nutrition for ants and flys.