Many heterokonts are unicellular flagellates, and most others produce flagellated cells at some point in their lifecycles, for instance as gametes or zoospores.
Mastigonemes are manufactured from glycoproteins in the cell's endoplasmic reticulum before being transported to the anterior flagella's surface.