Created onFlashToggle().