USERNAME:
PASSWORD:
Save Info!
Logging in…
This topic is 1 page long.
[ Profile | Posts | Contact ]
Posted at: 11/9/09 10:14 AM
Sign-Up: 06/13/07
Posts: 1,013
Hi. I'm using .txt files in my root directory for saving and loading data, using this awesome AS tut: http://www.newgrounds.com/bbs/topic/2988 29
I was wondering if it's possible to CREATE and later edit the data in these files using AS2. Thanks in advance.
Awesome turret game in the making, featuring 85 uniqe turrets: News post
Posted at: 11/9/09 10:58 AM
Sign-Up: 11/02/05
Posts: 11,418
Why - no.
#ngprogramming at irc.freenode.net haXe | Keel imperative | Spyro! | Thru you
Posted at: 11/9/09 11:08 AM
so it's only possible to read from txt files? that's it? not even edit its content?
Posted at: 11/9/09 11:12 AM
Sign-Up: 02/21/06
Posts: 28
Make a php script that makes a txt file. Then make you flash load that page in some way such as load vars.
<?php //set up file access $fp = fopen("newTxtFile.txt" , "x+"); //?open the text file fputs($fp , "Text that will be saved in txt file once made"); //close the file fclose($fp); ?>
Is TomFulp Gay? VOTE NOW!
Posted at: 11/9/09 11:46 AM
i dont really know php, where exactly can i enter that code, can it go in the flash file? If not, can I make a 'run script' file, that flash will run, something like, run:
domain.com/subfolder/createTxtFile.php
and furthermore, can I specify the name of the text file when running this file (it's probably wrong how I wrote this):
domain.com/subfolder/createTxtFile.php?n ame="text file name"
Posted at: 11/9/09 11:57 AM
Sign-Up: 05/07/05
Posts: 6,661
That tutorial is 4 years old, just so you know
- Matt, Rustyarcade.com
Posted at: 11/9/09 12:21 PM
then care to direct me to a more advanced one, instead of acting like a snobby bitch?
Posted at: 11/11/09 05:53 AM
Sign-Up: 04/06/08
Posts: 30
From what I know it's not possible to create external files directly from Flash, due to safety restrictions imposed on the tool
All times are Eastern Standard Time (GMT -5) | Current Time: 07:09 PM
<< Back