Resistors in a circuit

IF you can guarantee that ONLY one LED at a time will be illuminated then you can indeed use a single resistor. However if there is ANY possibility of more than one LED being illuminated simultaneously then you need individual resistors.