Added possibility to Flex to work with https