The only way i know of to do that is by turning it off before you go into flash.
Some applications are not compatable with Aero like CS2 and that turns it off automatically. But i dont know of a way to do this per-program basis like a switch.
I do not accept support questions via EMail, PM, IM or my G+ page!
Phone: LG Optimus G Pro
Running: Stock JB from LG with Nova Launcher