Flex script