Can Flash SWF communicate with Java applet, and vice versa, in any way?

后端 未结 2 1331
一整个雨季
一整个雨季 2021-01-27 03:02

I know Flash can use ExternalInterface to call Javascript functions but I don\'t know if it can call applet also like that. Maybe it can be done by SWF -> JS -> Applet, and back

相关标签:
2条回答
  • 2021-01-27 03:56

    Yes. Sockets. Your Java applet can open a server socket, probably a HTTP socket, and Flash/Flex can post content to the socket. Your applet will have to be signed by a known CA to be trusted, but once that's done you can pretty much do what you want.

    0 讨论(0)
  • 2021-01-27 03:59

    Applets can communicate with JS, and JS can control applets. See these examples of Java/JavaScript interaction.

    0 讨论(0)
提交回复
热议问题