From the SRD: "For purposes of this spell, an attack includes any spell targeting a foe or whose area or effect includes a foe."Jack Simth said:Don't know about flour, but a rouge could also UMD a wand of Color Spray, Blindness/Deafness, Glitterdust, Pyrotechnics (You did bring a torch, right?), or Holy Smite; perhaps a scroll/staff of the higher level blinding effects.
You could make a case that Pyrotechnics wouldn't cancel invisibility, but the other spells definitely cancel it.