Flex and AIR integration