Currently I have a command line OSX executable that I am compiling in xcode. I'm wondering if there is a way to call functions / interact with a flash or flex project. I found some 开发者_StackOverflow中文版information about a flex c++ bridge, but apparently it is only for windows.
Can this be done with air?
I don't know of any way to call C functions directly, but AIR has a "native process API" for "communicating with native processes using standard input and output", which can work with a command line executables.
You can also use native extensions
you need to use adobe Air
check this
Lynda.com AIR 2 with Flash and Flex Essential Training
http://www.lynda.com/home/DisplayCourseNoTabs.aspx?lpk2=68629
精彩评论