简体   繁体   中英

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

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, I don't know. Since I have no idea how to do applets, I would also appreciate at least some pseudo code. Thanks.

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM