[英]How to Mapp Classes in Java and Flex
i would like to ask you the following qeustion: 我想问你以下问题:
is ist Possible to user Java Classes in Action script like in the following example? 是否可以像下面的示例一样在Action脚本中使用Java类?
Java: Java:
MyClass.login("Username","Password"); MyClass.login(“ Username”,“ Password”);
ActionScript: 动作脚本:
MyClass.login("Username","Password"); MyClass.login(“ Username”,“ Password”);
I need to call the Class in Java to use the Class in Actionscript. 我需要在Java中调用Class才能在Actionscript中使用Class。 The Goal is to write in ActionScript MyClass.login("user","pw");
目标是用ActionScript MyClass.login(“ user”,“ pw”);编写代码; an the Java Class make the Action.
Java类进行操作。 Is that Possible?
那可能吗? I heard something of Remote Class Stuff but i dont think that's the right think.
我听到了一些远程课程资料,但我认为这不是正确的想法。
I'm working on a Red5 Server who will do the Login Stuff and gives only a User Value Object back which will be proffed if is null or not 我在Red5服务器上工作,该服务器将执行登录工作,并且仅返回一个用户值对象,如果该对象为null或不为null
syr for my bad english, Hope you understand it. 先生,我的英语不好,希望您能理解。
Yes, it is possible from ActionScript to call a method in Java. 是的,可以从ActionScript调用Java中的方法。 To connect both project you can use BlazeDS http://en.wikipedia.org/wiki/BlazeDS
要连接两个项目,您可以使用BlazeDS http://en.wikipedia.org/wiki/BlazeDS
Here you can find a manual which explain step by step how to do a small example : blazeDS example . 在这里,您可以找到一本手册,该手册逐步解释了如何做一个小示例: blazeDS示例 。
Hope this helps! 希望这可以帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.