CrazyRaven
09-27-2005, 06:22 PM
I'm trying to find a way to do something very simple... I want the client swf to trigger a function on the FCS and return a value. Now, I'm not a stupid guy, but everywhere I've looked I get examples that make no sense...
I think I've found 2 key ingredients... netConnection.call and client.call... but no real clear way of understanding how they work
I would assume that you from the client you:
thisvariable = nc.call(functionname);
and on the server in the main.asc you:
function functionname(){
return somevalue;
}
but there seems to be some need for:
Client.call(functionInClientSWF, "argumentvalue")
Can anyone give me an example of from a SWF client, calling a function on the FCS that returns a value to the client... say the application.userList.length
PLEASE HELP!!!
I think I've found 2 key ingredients... netConnection.call and client.call... but no real clear way of understanding how they work
I would assume that you from the client you:
thisvariable = nc.call(functionname);
and on the server in the main.asc you:
function functionname(){
return somevalue;
}
but there seems to be some need for:
Client.call(functionInClientSWF, "argumentvalue")
Can anyone give me an example of from a SWF client, calling a function on the FCS that returns a value to the client... say the application.userList.length
PLEASE HELP!!!