View Full Version : writing to a txt file?
Aaron Burgess
April 30th, 2002, 08:37 PM
I've got all these flash books, yet not one of them tells me if it's possible to write to a txt file. They show how to read from a txt file using loadVariables(), but not the reverse. I'm guessing it can be done.
upuaut8
April 30th, 2002, 11:04 PM
I believe that it can be. I'm working on that idea myself as I have a web site that does not have any database and needs to store some information for things like a questbook. If I discover anything I'll let you know.
eyezberg
April 30th, 2002, 11:24 PM
easiest thing in the world using php!
check the beta-chatroom (available on flashkit, called lyonsChat i believe), it's using a simple txt, updated with every post..
eyezberg.free.fr/chat/eyezChat.html (http://eyezberg.free.fr/chat/eyezChat.html)
upuaut8
April 30th, 2002, 11:25 PM
thanks man.. I've been looking for this for a few days now.
eyezberg
April 30th, 2002, 11:39 PM
You online, Upu?!
Original site is here: www.flashbuilder.ch/ (http://www.flashbuilder.ch/)
upuaut8
April 30th, 2002, 11:57 PM
I am online. :)
ilyaslamasse
May 1st, 2002, 06:22 AM
I think it's possible with undocumented AS functions. Something like fscommand("save","file.txt") but I'm not sure at all how to use that.
pom 0]
eyezberg
May 1st, 2002, 02:27 PM
Depends if it's on or offline..i think..
Aaron Burgess
May 1st, 2002, 05:29 PM
Okay, atleast it can be done. I currently have a free chat-room, but I want to make my own, so I can add a little display telling people how many are in the room, before they log on.
ilyaslamasse
May 1st, 2002, 05:48 PM
So why do you want to write to a text file for ?
pom 0]
Aaron Burgess
May 1st, 2002, 06:18 PM
Well for a start, I'd have to write to a file, so the messages can be displayed on the screen for everyone on their computer to see. After all, Flash can't directly send variables to another flash file on another computer. That's what the txt file is for.
The chatroom would open up on a seperate browser window, when users click the link on. I want another flash prog to keep track of how many people are in the chatroom. So when they goto my ezboard, before they open up the chatroom to see who's in there, they can see it straight away.
Trust me, I make sense to myself. :)
ilyaslamasse
May 1st, 2002, 06:45 PM
OK, OK...
pom 0]
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.