how do i write a variable to a text file so that i can open it again next time the flash script is run using this code:
loadVariablesNum ("text.txt", 0);
or, if that's not possible, how do i embed my flash movie in an html site and then pass a variable from html to flash and back???
What version of flash is this intended for? If its MX, you might want to look at sharedObjects. Maybe you could elaborate on what you are trying to do, besides just the loaidng of a variable. What will the variable do?
Flash MX currently has no out of box option for directly writing to text files. However like I said, does the text file need to be used by anyone else, or is it merely for saving user specific text for retrieval upon subsequent visits to the site? If so, use sharedObjects instead. Also where will the text files reside, the server? the client computer?
Well then you need some sort of server-side scripting language, hands down. Or like I said you can use sharedObjects to store user variables, like a flash cookie, which can be modified and retrieved in flash.
Bookmarks