Ok, well I have spent the last 45 minutes reading old threads about sendAndLoad, but cannot seem to figure it out. I am doing it twice. The first time, I don't really want to sent anything, but only receive a couple variables which I am pullin from a database. The second time, I only send variables and do not receive any. The second time works just fine. Here is the AS code and the PHP code that I use to try and receive variables.
Code:function receiveVariables () { var_text.text = "loading"; varsIn.onLoad = function (success) { if(success) { background.gotoAndStop(this.color); if(!this.owner) { save._visible = false; } var_text.text = this.color; } } varsOut.sendAndLoad("../sendColor.php", varsIn, "POST"); }I appreciate any help. This is really getting to me.PHP Code:mysql_connect($_server,$_user,$_password);
@mysql_select_db($_database) or die( "Unable to select database");
//color will actually retrieve $_frame, but to simplify things I changed it to 1
echo "color=1";
mysql_close();




Reply With Quote