the firefly is a soft-bodied beetle related to the glowworm and has the ability to fly. both male and female fireflies have luminescent tails known as light organs. these organs are located at the end of the abdomen from which the flashes of light is mainly used as a mating signal.