Macromedia Flash Server - RE: RMI-Lobby HELP

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > September 2005 > RE: RMI-Lobby HELP





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author RE: RMI-Lobby HELP
Daniel Pedro

2005-09-28, 5:51 pm


Anybody know how to call a method ServerSide down ??????? on the client(swf) it would be nc.call("method",param1,param2); but this doesnt seem to work???? I can call up but not down... ?????

HELP...


This does not work... the client will connect to room the room will
connect to the lobby(not the other way around). These connections are
fixed. If a message needs to be sent from the lobby to the room we need
to treat the room as a client, right?
in the Lobby I should use:

[clientObject].call("functionName",null,param1,param2);
and in the room use:
nc.functionName=function(){}//but I think only non SSAS

or am I missing something? Is this possible? Still beginner here?


Stefan Richter <stefan-fMeCE+ULXElEfu+5ix1nRw@public.gmane.org> wrote:
In your case the lobby acts as a client to a room.

Therefore you may define

Client.prototype.functionName=function(para1, para2){
trace("Room's functionName has been called");
}

in your room's .asc file (note the capital C in client!).

Put this function outside any onConnect etc and you should be golden.

Stefan




> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of
> Daniel Pedro
> Sent: 28 September 2005 00:21
> To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> Subject: Re: [FlashComm] RMI-Lobby HELP
>
>
>
> Ok I am at a point now where I am not sure what I am doing
> wrong... I have a lobby calling a room by way of
> call("functionName",null,param1,param2);
>
> the problem is that everytime I get the same message
> "function (functionName) not found."
>
> I have tried nc.functionName=function(){}
> client.prototype.functionName=function(){}
> application.functionName=function(){}
> function functionName(){}
>
> I know my connection is good because I am reading from a
> proxied shared object.... so is there some secret to RMI on
> the serverside between connected instances? pulling my hair
> out...still a newbie..
>
> thanks all in advanced
> Dan
>
> ________________________________________
_______
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!
>
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm


________________________________________
_______
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm



________________________________________
_______
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com