Flex client programming example.