I'm trying to create bridge between Java and ActionScript applications using Granite. I found many tutorials which guides how to build it through Flex, but is there any way to call Java services using Granite in ActionScript?

有帮助吗?

解决方案

Yes, it's called Web Services. You can't have AS called Java directly since they're not linked in any way, unless you use an Android deployment and modify the Java container, but that's another thing altogether. You need to remember that if you're using Flash, it's using the Client-Server methodology of doing things. They're 2 separate entities that need to communicate with each other using a certain protocol which is for the most part HTTP requests.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top