I am looking for a way to store data I would want from a flash game of mine. I could just manipulate a highscore table but i was looking for the specific function to maybe try and create my own
thanks
-JBPresents
what exactly are you looking for ?
well i have a large amount of data i would like to output to a file so i can access it later and extrapolate useful information from pattern correlation
so i need a large file to continously write information too from multiple sources at once
I am thinking about just outputting to php and then to a database from the php file
however i don’t know any simple methods of writing to a php file
var ldvar:LoadVars=new LoadVars();
ldvar.variablename=value;
ldvar.sendAndLoad(“htttp://yoursite.com/datahandler.php”,ldvar,“POST”);
ldvar.onLoad=function(success:Boolean)
{
if(success)
{
trace(“sent successfully”);
}
}
//****************************
//in php
$variable=$_POST[‘variablename’];
$fp=fopen(“data.txt”,“w+”);
fwrite($fp,$variable);
fclose($fp);
//---------------------------
try it… and remember to keep swf and php file under same domain while trying out
Thanks Sparkdemon I’ll let you know how it turns out