Question

i would like to ask you the following qeustion:

is ist Possible to user Java Classes in Action script like in the following example?

Java:

MyClass.login("Username","Password");

ActionScript:

MyClass.login("Username","Password");

I need to call the Class in Java to use the Class in Actionscript. The Goal is to write in ActionScript MyClass.login("user","pw"); an the Java Class make the Action. 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

syr for my bad english, Hope you understand it.

Was it helpful?

Solution

Yes, it is possible from ActionScript to call a method in Java. To connect both project you can use 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.

Hope this helps!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top