Nothing. Flash Fire is triggered by being attacked with a fire move, not by burning. Flash Fire wouldn't stop the burn from happening, but Flash Fire is only on fire types, and being a fire type stops the burn.What happens when a Flash Fire Pokémon has a Flame Orb als hold item?
If you Traced Flash Fire and your Porygon2 was holding a Flame Orb, it'd get burned.