I need to know how to write a text file using Actionscript without using a server. This swf will run from a cd and must be able to write to the user's computer.
write what u want in the text box then click on Save, then click on clear ( or even close the file then run it again ) , when u click on Load, it'll load what you wrote again
You cannot do that with the SWF... You will need to use third party projector tools such as Zinc or SWF Studio to create EXE file and then use that to create a text file...
Sometimes this will not a efficient way.
Using getURL command call a external DOS BAT file with passing parameters to it.
eg: getURL("script1.bat parameter1 parameter2 parameter3)
Inside BAT file use $1, $2, $3 for capture parameter1, parameter2, parameter3 values.
Then inside bat file to write to external text file you can use
likewise you can write.
If you want you can replace this BAT file with VB generated exe or some other language generated exe file.
BR Dushan
0
noir20754Author Commented:
Dushan911, I have tried your method and it seems like it should work, however there are two problems. As typed, I cannot figure where you intend to close string and none of my guesses have been correct; please type the getURL command exactly. Second, when I run it without sending any arguments, a box pops up asking me whether I wish to let the file run. This is merely WIndows virus protection, but would be annoying and confusing to my end users. Is there a way to avoid this (perhaps by using fscommand)?
0
Question has a verified solution.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
You better use sharedObjects, it's so simple
I've made you a FLA file , download it from:
www.pylon-group.com/temp/sharedObjects.fla
write what u want in the text box then click on Save, then click on clear ( or even close the file then run it again ) , when u click on Load, it'll load what you wrote again
Rebards,
Ramy