Use resource event to flashes