It's regrettable that there's no good replacement for it, but Flash had deep by-design security issues that there was no way to fix (in addition to the garden-variety security bugs that Adobe seemed too incompetent or unwilling to fix). Flash had to go.