In order to have a PHP script executed (and not opened in a window) through ActionScript use loadVars.sendAndLoad(url, your_data, method) instead of loadVars.send(url). In this way the opening of a new window isn't necessary.
example:
Actionscript:
-
// create a new LoadVars instance
-
var c_lv:LoadVars = new LoadVars();
-
-
// populate it with some data
-
c_lv.bericht = input_bericht.text;
-
c_lv.email = input_mail.text;
-
-
// offer the data to the PHP mail handler and execute it!
-
c_lv.sendAndLoad("sendForm.php", c_lv, "POST");
Tags: ActionScript 2.0, PHP