SRD:Shot on the Run
From D&D Wiki
|This material is published under the OGL|
Shot on the Run [General]
When using the attack action with a ranged weapon, you can move both before and after the attack, provided that your total distance moved is not greater than your speed.