Believe it or not, the best way to stay flexible is to strengthen your core muscles so that your leg and arm muscles do not have to overwork and shorten just to keep you upright.
Check PilatesStability Ball Exercise and Core Strengthening for more information.