Groups | Blog | Home
all groups > macromedia flash flashcom > november 2005 >

macromedia flash flashcom : send a variable from flash to flashcom


draven000
11/25/2005 9:19:57 PM
Hi All,

I'm trying to send a variable from my flash project to the flash comm server.
In my main.asc file, I use some remoting code to update a table in a database,
but need a variable from the client application

The client application has a uid variable..but I can't figure out how to
"trace" this on the server side.
Any help would be appreciated.

D
JayCharles
11/25/2005 9:32:22 PM
There's lots of ways to do it... here's one:

on the server side:

Client.Prototype.sendClientVar= function(myVar){
//execute your code here
trace("Incoming value is " + myVar);
}

on the client side:

nameOfMyNetconnection.call("sendClientVar", null, "Hello Server");


martin_godart
11/30/2005 1:35:22 PM
hi jay

Sorry for my english, iam frensh.
I ave a quite same problem, I want to share my variable like you share an
object. But It doesn't worck so, if you find a way for exchange the variable
thanck to put your code.

I f I find a way to do that ( may be this after noon) because I meet someone,
I promise to put the code.


AddThis Social Bookmark Button