Actually, the flash platform is largely open source. The AIR framework (along with the rest of Flex) is open source. See http://opensource.adobe.com/wiki/display/flexsdk/Get+Source+...
The AIR compiler is also open source. The only thing that isn't open source in the stack is the flash player runtime, which executes the resulting SWF file. However, the SWF file format is open.