Two male flies that have had their hydrocarbon-producing cells removed
Flies that cannot make a type of pheromone are "sexually irresistible" to other flies - regardless of gender.
Scientists bred fruitflies that were unable to secrete hydrocarbon signalling chemicals.
They report in the journal Nature that hydrocarbon-free male flies attempt to copulate with each other.
In fact, when these chemical signals are removed, flies are completely unable to recognise gender or species barriers.
Joel Levine, a neuroscientist from the University of Toronto at Mississauga in Canada, led the team that carried out the research.
"The big question we wanted to ask was: how does a fly recognise another fly?" he told BBC News.
His team bred their experimental flies using a transgene.
This is a gene which is inserted into the fly genome and contains a specific set of instructions - in this case to kill the cells that secrete hydrocarbons.
The pheromone-secreting cells expressed a fluorescent protein
The scientists marked the target cells, called oenocytes, with a fluorescent dye. This meant they could easily verify that all of the cells had been destroyed.
They were then able to find out how other flies responded to the "manipulated" or hydrocarbon-free flies.
"Normal males found flies without the cells more attractive - whether they were male or female," said Dr Levine.
"Males also prefer females that don't have the cells."
Nicolas Gompel, a biologist from the Institute of Developmental Biology in Marseille, France, commented: "This result contradicts the widespread belief that pheromones are required to initiate courtship."
Dr Gompel is an expert in insect evolution and behaviour and was not involved in this study.
"[It] suggests that other sensory inputs such as vision may be a trigger for mating," he added.
The scientists found that flies without the hydrocarbon-secreting cells were also attractive to other species of fruitfly.
"But we found that we could resurrect the species recognition using just one compound," explained Dr Levine.
"This would stave off advances from other species."
The manipulated flies provided a sort of blank canvas to allow the scientists to test the role played by each chemical - and how the chemical signals interacted.
"We found that one compound - one that males transfer on to females when they copulate - kept other males away," said Dr Levine.
"It's the male's way of sort of protecting his investment."
But females were able to offset this repellent by producing another single compound. When mixed with the male chemical, this produced a type of fly aphrodisiac.
"So she can make her own stuff to reduce the effect of his stuff," said Dr Levine.
"The effect of a compound very much depends on what other compounds are around."
The researchers think that, without these chemicals, a fly would be attractive to every other fly.
The hydrocarbons, they say "superimpose sexual identity" on to each fly.
This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.