View Full Version : >>Help << Sending data to a local txt file.
talk2me
05-19-2005, 05:30 AM
:) I am trying to creat a flash alarm clock, Where in the user inputs the time and date and I need to write it to a txt file ( pls. don't tell me to use ASP bla.. bla.. ). I need a simple method!! (using txt file). I know how to load variables using loadVariable function. But i am feeling difficulty in sending using send function!.
Pls. help!!!!
farafiro
05-19-2005, 06:20 AM
talk2me
welcome to the forums
//the text file's name is "myText.txt"
/*the text in the text field should start with a variable and
must have no spaces between the var name and the equal sign, i.e
myTextVar=blah blah bla
*/
//all goes in the first frame
var myVar:LoadVars = new LoadVars()
myVar.load("myText.txt")
myVar.onLoad = function(done){
if(done){
myTextField.text = this.myTextVar
}
}
farafiro
05-19-2005, 10:44 AM
talk2me
did you try this b4 PMing me
talk2me
05-19-2005, 10:52 AM
Yes i tried but nothing happening ,
What should the text instance name be?
DOES THIS CODE SEND DATA TO A TXT FILE???
farafiro
05-19-2005, 11:00 AM
u can't do this
talk2me
05-19-2005, 11:02 AM
Can't i send data to a text file??
farafiro
05-19-2005, 11:04 AM
nop
talk2me
05-19-2005, 11:05 AM
Then how can i use send fuction to send to a txt file or html file???
farafiro
05-19-2005, 11:13 AM
u should have a server to do this
deadbeat
05-19-2005, 05:19 PM
You need a server side script like PHP or ASP...Flash can't write to a text file on its own...
K.
farafiro
05-23-2005, 06:04 AM
or u may get a third party program to do this
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.