ok guys, i made some research and ive gone into this...
i now can read from a .txt file but still cannot write on it :s ...... this is the code i got so far:
PHP:
Flash:Code:<?php $mytxt =$_POST['hsdata']; $myfile = "text.txt"; $fh = fopen($myfile,'w'); fwrite($fh, $mytxt); fclose ($fh); ?>
TimeLine - First Frame:
Button1 :Code:loadText = new LoadVars(); loadText.onData = function(raw) { Field2.text = raw }; loadText.load("text.txt");
may you tell me what is wrong here?Code:on (click) { var outLV = new LoadVars(); var inLV = new LoadVars(); function sendData() { outLV.hsdata = Field1.text; outLV.sendAndLoad("host.php",inLV,"POST"); } }
I didnt tried to use it on an html path...
is it needed to be on http:// path or c:\ is enough?
Thanks:
Duarte V.




Reply With Quote
