Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 12-25-2007, 08:50 PM   #21
h00d
Registered User
 
Join Date: Dec 2007
Posts: 78
Default

If you are making remote calls for processor intensive operations you have to know that you are going to incur overhead encoding that information and making the call. A* is not beyond Actionscript. It is suggested several times in this thread, but I am going to go ahead and say implement it in Actionscript ... at least KNOW that it isn't going to work, because this seems to be a costly decision. There are also several methods for breaking up processor intense operations ... like breaking it up into several calls.

Happy Holidays! Merry Christmas!
h00d is offline   Reply With Quote
Old 12-26-2007, 01:09 PM   #22
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,858
Default

everyone here is giving one line answers like i normally do!

case A:
if you want to call a method on a java class you must be doing that over some kind of network connection to a web server.
the web server can run pretty much any servlet container (jboss, tomcat, orion, jetty) and the java web app should include any one of (red5, livecycle data services, web orb) remoting libraries.
you should return a simple types in the begining (Object[], string, boolean, number) or an object consiting of simple types all in the "public" namespace ("value object"/POJO). ideally no constructer args.
this class should map to an actionscript class with the same signature (the same properties) on the client side, and you need to either use registerRemoteAlias in code or in flex the remote alias meta data tag. to tell the flash player that this bunch of bytes serializes into a specific class.

case B:
instantiate a java class in actionscript - > rewrite
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 01-09-2008, 04:22 PM   #23
tsomerville
Registered User
 
Join Date: Jan 2008
Posts: 5
Default This might help, multiplayer java / actionscript 3.0 source code

If you want to see a very bare-bones way of sending requests back and forth from Actionscript Client to Java to any Actionscript Client, check out my project.

I'm offering my Java / Actionscript Game Server (JAGS 1.4) up to the world.

I can help you set it up and answer any questions (since the only documentation is inside the code).

Last summer, I pieced together all kinds of tutorials to get a working multiplayer game solution. Also have a java server up and running you can use to test things with.

See fireleg.com to play pong, or go to fireleg.com/jags.html to look at all the code.

Contact me at travis -at- fireleg.com for any assistance.
Good luck on your game!
tsomerville is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Calling Function in Imported AS3 SWF sooty ActionScript 3.0 10 02-02-2014 02:25 PM
If we use XML.onLoad in classes when it will run?? Shahzeb ActionScript 2.0 0 02-01-2006 11:17 AM
Reusable class ... ? xxlm ActionScript 2.0 3 01-18-2006 03:29 AM
call Java Class directly via Flash Remoting with CFMX Standard ? leftPeg Flash Remoting 0 04-19-2005 02:14 AM
Calling external functions from a class Vitaly ActionScript 2.0 1 06-07-2004 10:21 AM


All times are GMT. The time now is 12:20 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.