Flex vs. Flash CS3

what’s the difference between using Flex or Flash CS3 to develop AS3 projects?