In a flaming cocktail, the alcohol gives off vapors which rise upward, off the drink, where they can then be ignited. These work slightly differently, based on the type of alcohol used.