Groups | Blog | Home
all groups > macromedia mobile and devices flashlite > february 2005 >

macromedia mobile and devices flashlite : sending data



jenslofberg
2/4/2005 10:08:05 AM
Hi
I have a very simple task: I would like to send 2 variables from flash to a
server. Im trying this:

loadVariables("http://www.yamsplayground.com?action=start", 0);

And I dont get any repons...

Im working on a Nokia 7610

thanks
jens
ecma32
2/4/2005 10:59:13 AM
hi,

it is not possible to send the data to the server in flashlite 1.1.
For that u need some third party application tool like symbian.

jenslofberg
2/4/2005 12:48:21 PM
hi
But Nokia 7610 is running on symbian ???

thanks
jenslofberg
2/4/2005 12:48:25 PM
hi
But Nokia 7610 is running on symbian ???

thanks
jenslofberg
2/4/2005 12:48:28 PM
hi
But Nokia 7610 is running on symbian ???

thanks
vgslag
2/4/2005 12:53:03 PM
Of course you can send variables.

According to the CDK loadVariables will only RETRIEVE them, not send them.

Look up getURL() ... you can specify a GET or POST in that to send vars to a
page.

G
CAD Monkey
2/4/2005 1:11:16 PM
jenslofberg,
Without knowing what it is you are trying to achieve, it is hard to give a
precice answer,
It is possible to send variables to a server via loadVariables, however for
interactivity you generally
need to point to a script see below as an example.

loadVariables("http://www.yamsplayground.com/ServerSideScript.asp?action=start",
"_level0");
however, it all depends on what you are sending and what is expected to happen.
If you can give a more clear definition of what is supposed to happen, then it
may be possible to advise you in detail
Hope this helps
Paul
jenslofberg
2/4/2005 1:50:21 PM
Hi you all
Description:
I have a jukebox in the the phone where you choose a video
I would like to send the choice (video="5") to the server
The server then sends this info to the flash (MX2004) on the server that will
show that video on a screen

I tried get url... but in my Nokia 7610 testphone it opens the browser windo
and the flash players disapears

Thanks
jens
Marcell Lelkes
2/4/2005 2:01:12 PM
You can format your loadVariables query to include your vars like CAD Monkey
wrote.
E.g.:
loadVariables("http://www.myserver.com/myscript.php?var1=" add var1 add
"&var2=" add var2, "/");

Then, your server-side script can process the GET variables var1 and var2.
Paul Lamonby
2/4/2005 2:02:48 PM
Hi Jens, Yes it is possible to send data to a server from FlashLite1.1, but
you need to use 'POST' in your loadVariables function.
loadVariables('http://www.yamsplayground.com?video=5', '/', 'POST');
jenslofberg
2/4/2005 3:25:58 PM
jenslofberg
2/4/2005 4:07:35 PM
exactly

AddThis Social Bookmark Button