Similar to horse flies, yellow flies are also attracted towards dark moving objects and carbon dioxide, and this is how they locate a prey. Feeding Habits: Both male and female species of yellow flies feed on plant nectar and pollen for energy. But the female yellow flies also need a blood meal to develop eggs.