If you are making desktop application u need 3rd party flash software like mdm zinc or flashjester jugglor. it provides easy way to write on files. If you are developing web you need to use either php / asp which ever u know. If you know nothing better is doing in php. its easy and powerful. See below for sample php code. to send from flash you have to use sendToURL(request); in AS 3.0
$fileName = $_POST["filename"];
$xmlContents = $_POST["xmlcontents"];
$lastBackslashPos = strpos ($xmlContents, “\\”);
while($lastBackslashPos >0){
$xmlContents = substr($xmlContents,0,$lastBackslashPos)
.substr($xmlContents,$lastBackslashPos+1,strlen($xmlContents));
$lastBackslashPos = strpos ($xmlContents, “\\”);
}
$fh = fopen($fileName, “w”);
fwrite($fh, $xmlContents);
fclose($fh);
192 views
Usually answered in minutes!
×