For a Flaming B-52, the top layer is ignited, producing a blue flame.
Triple Sec at room temperature will not ignite easily, so it should be warmed up beforehand or topped with an additional layer of a dark overproof rum with 65-85% alcohol by volume.