When you are putting your clothes or other items in the attic or basement for storage, putting a few sugar cubes to absorb moisture will keep your clothes and materials from getting that musty smell.
Another great idea is to place a bar of perfumed soap with the stored clothes. Then they will have a beautiful aroma when you bring them out from storage.