开发者

How do I communicate between C++ and Flash?

Is there any way I can have an integration between Flash AS and C++? Let's say I have created a socket using C++ and multi-casting it to several ip addresses.

On one of the IPs I am running a Flash clie开发者_开发百科nt. Can I receive the Multicast message (sent by MFC/C++ application) through my Flash application.

Or at least can I develop a Flash plugin (menu item) using C++?

The main objective is I just need to get my hands on anything that shows the communication/interaction between C++ and Flash.


Depends on what you would like to do. If you host the swf's in your application you can use the ExtenalInterface in flash via the ActiveX container. http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html

We are using that method in our project, check it out (open source): http://www.casparcg.com/

If you want to talk to swf's outside your application Sockets would do the job I guess. http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/Socket.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜