I want to know how to call a method in a java/class file from within my flash program so that I can navigate through files easier, and then h开发者_C百科ave it return a string or integer. Is there any way to do this?
You'll need to have a separate Java applet and route communication through some appropriate Javascript glue using ExternalInterface
on the Flash side and netscape.javascript.JSObject
on the Java side. (The latter appears to provide some degree of cross-browser support despite its name).
ExternalInterface is one option, as Henning mentions.
If you're planning to use AIR, have a look at the Merapi project. Also, with AIR 2.x you can try NativeProcess.
If you're thinking about basic Java on the server side, either try basic Socket communication (as3 supports XML and binary Sockets). For larger scopes have a look at Blaze DS and/or Spring Flex.
HTH
精彩评论