Hello,
I am trying to have CVI talk to flash.
So far, I have flash talking to CVI:
in y flash code, I have:
fscommand("flashMessage", "Hi CVI!, this is flash talking");
and in CVI:
/* the callback */
HRESULT CVICALLBACK foo (CAObjHandle caServerObjHandle,
void *caCallbackData,
char *command,
char *args)
{
SetCtrlVal(panelHandle, PANEL_STRING, args);
return 0;
}
/* this code is located in the main function, it install the FS callback */
if ( (status = ShockwaveFlashObjects__IShockwaveFlashEventsRegOnFSCommand (flashHandle, foo, NULL, 1, NULL)) != 0)
ReportAppAutomationError(status);
This works fine.
Now I would like to have it the other way arround: CVI sending messages to flash?
How do I do this?
I think i know what i should write in flash (from http://www.flashfanatiker.de/blog/archives/000032.html )
but I have no idea of what I should write in CVI.
Thank you for your help.