How to Serialize Flex Scripts