Search code examples
phpxmlactionscript-3actionscript-2flash-cs3

How to avoid the annoying new line generated at SendAndLoad();


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??


Solution

  • Weird...

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

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