Deprecated: Function set_magic_quotes_runtime() is deprecated in /nfs/c01/h08/mnt/2939/domains/cidamon.com/html/blog/textpattern/lib/txplib_db.php on line 14
Cidamon: Blog: Extra line break in Dynamic text field (PHP and ActionScript)
Extra line break in Dynamic text field (PHP and ActionScript)
08 June, 2008

There is an extra line break problem that we faced while retrieving value from a PHP script to Flash ActionScript. It seems like an extra new line is inserted after every line command. Like:

Line 1

Line 2

Line 3

To avoid this problem, variables should be parsed from the PHP script using the following line of code:

str_replace("\r","",$variable)

Problem solved!!!

---

Comment