Jumped the gun, figuratively speaking. I think Jeff Owens advice for folks is good though.
In the most basic sense, and assuming that no one is armed, the advice is relatively good. That being said, if you have any training, not just gun training, you must recognize that each situation is different and that you should be ready to take advantage of any opening that may occur. For example, if you are close to the shooter but his back is to you, do you run or do you attack and try to disable him. What, if in the same situation, he has a firearm malfunction or needs to reload? Do you use that opportunity to run or attack?
What if you're hiding and from your position you notice an opportunity to relatively safely attack because the shooter is distracted, has a malfunction or needs to reload?
Add to the mix an armed person who can respond with their firearm, what is the best tactics? Do they have only the single magazine in their firearm or do they have an extra one? How one responds must be based on multiple factors and one must be able to maintain critical thinking skills in order to maximize the potential to disable the shooter and save lives.