added Flex.get_source API method