LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

flash fscommand + CVI

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.




0 Kudos
Message 1 of 2
(3,016 Views)
Hi,
 
Why do not use ActiveX
here is an example
 

Using the Macromedia Shockwave Flash Player ActiveX Control in LabWindows/CVI

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=BC14007242F726F4E034080020E74861&p_...

Alexandre D

Message 2 of 2
(2,974 Views)