views:

18

answers:

2

Hi to all, Please is there any workarround to avoid the new line generated while sending data using SendAndLoad(); in AS2 ?

I send "00:00:12:36"

But php output:

00
:00
:12:36

Any help??

A: 

Weird...

var stripped:String = data.split("\r").concat(""); // or \n alternatively

removes it from actionscript, but you'd rather fix the php.

Theo.T
A: 

send:

escape("00:00:12:36")

and in PHP:

$myvar = urldecode($variableCameFromFlash);
Ervin