frankmail007
07-26-2007, 03:54 AM
I'm writing a C++ testing program which uses flash activex component. My program will communicate with a swf by ExternalInterface just like IntrovertIM_CSharp example. Everything is fine except that SetReturnValue seems not working. Here is part of my code inside a callback which triggered by a call in action script:
CASCall* functionCall = CSerializer::decodeInvoke(event[_T("request")]);
m_flashInterface->SetReturnValue("<true />");
m_flashInterface is activex component wrapper.
This function is called which means a call from action script is successful. But the SetRetureValue seems not working. By the way, I'm using the same swf file as IntrovertIM_CSharp example. It works under C#. I don't know why this doesn't work under C++ and I have no clue how to debug it. Can anybody help? Thanks
CASCall* functionCall = CSerializer::decodeInvoke(event[_T("request")]);
m_flashInterface->SetReturnValue("<true />");
m_flashInterface is activex component wrapper.
This function is called which means a call from action script is successful. But the SetRetureValue seems not working. By the way, I'm using the same swf file as IntrovertIM_CSharp example. It works under C#. I don't know why this doesn't work under C++ and I have no clue how to debug it. Can anybody help? Thanks