<p>I have an application written in java, and I want to add a flash front end to it. The flash front end will run on the same computer as the java app in the stand alone flash player. I need two way communication between the two parts, and have no idea how to even start going about this. I suppose I could open a  socket between the two programs, but I feel that there must be an easier way. Is there a nice part of the api in actionscript 3.0 that will allow me to access java methods directly, or will I have to resort to sockets? I am relatively new to flash, by the way, so any good guides would be much appreciated!</p>

<p>Thanks</p>

[{'answer_id': 77630, 'author': 'Aeon', 'author_id': 13289, 'author_profile': 'https://Stackoverflow.com/users/13289', 'pm_score': 4, 'selected': True, 'text': '<p><a href="http://en.wikipedia.org/wiki/Action_Message_Format" rel="nofollow noreferrer">AMF</a> is a messaging protocol commonly used to talk between flash and a backend system. There\'re several Java implementations, but I haven\'t used any of them so can\'t tell you which is best.</p>\n\n<ul>\n<li><a href="http://labs.adobe.com/technologies/blazeds/" rel="nofollow noreferrer">Blaze DS</a></li>\n<li><a href="http://www.osflash.org/red5" rel="nofollow noreferrer">Red5</a></li>\n<li><a href="http://www.graniteds.org/" rel="nofollow noreferrer">Granite DS</a></li>\n</ul>\n\n<p>Flash can also talk plain old XML, SOAP or REST to the backend, so depending on your codebase that might be easier.</p>\n'}, {'answer_id': 78113, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>MERAPI is a bridge framework for communication between Java and Flash.</p>\n'}, {'answer_id': 81916, 'author': 'Stu Thompson', 'author_id': 2961, 'author_profile': 'https://Stackoverflow.com/users/2961', 'pm_score': 2, 'selected': False, 'text': '<p>There is also <strong><a href="http://sourceforge.net/projects/openamf/" rel="nofollow noreferrer">OpenAMF</a></strong>.  It is <em>very</em> mature, stable, simple and lightweight relative to Blaze, Red5 and Granite.  </p>\n\n<p><strong>BUT</strong>, it is also dated (AMF0 protocol only) and the project is no longer active.  Lots of people are still using it out in the wild.  And the documentation is borderline non-existent.  </p>\n'}, {'answer_id': 204371, 'author': 'baronDodd', 'author_id': 28198, 'author_profile': 'https://Stackoverflow.com/users/28198', 'pm_score': 1, 'selected': False, 'text': "<p>Granite DS is a good solution, it will allow you to set up services to communicate not only to POJO's but to EJB3 session beans also. It comes with a GAS code generator for converting your java beans into as3 equivalents and also data push to the client using the gravity side project.</p>\n"}, {'answer_id': 229340, 'author': 'user30684', 'author_id': 30684, 'author_profile': 'https://Stackoverflow.com/users/30684', 'pm_score': 0, 'selected': False, 'text': '<p>I agree on Granite DS. It was easy to setup and get going. </p>\n\n<p>I have used it to talk directly with a EJB3 bean communicating with thrift generated objects.</p>\n'}]
['https://Stackoverflow.com/questions/77598', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']