We did this with ExternalInterface when talking to C#, so you should be able to to do it with C++.
Basically, ExternalInterface expects blocks of xml in a certain structure that has the handler name and any arguments you're passing to it. I think Flash then converts it and calls the handler for you with those arguments. In the other direction, I believe Flash serializes the command, and you have to deserialize it on the C++ side, but i wasn't writing that bit so I can't quite remember (this was about two years ago).

Try this: http://www.ifbin.com/news/2005/08/fl...e-example.html