If we can't save/load to/from file, how can we use the INI object that has been ported to flash?
Printable View
If we can't save/load to/from file, how can we use the INI object that has been ported to flash?
The data is saved in a temporary file (I'm not sure where, but I think it might actually be a cookie) on the user's computer.
So how do you use that temporary file exactly?
Just use the INI as you would do in C++. The file is not temporary, it is saved between sessions.
I have a feeling we are talking about different things. That or I am missing something obvious.
I just dropped an INI object in the frame and tried to set and get values. They do not work. Do I need to specify a special filename/path for this to work?
I have the same problem.
Any chance of someone making a basic ini in flash tutorial?
I attached an example file.
Mokhtar - What you did seems to work for me, but you must compile it to a swf file and run it in a browser.
Thanks netninja,
Where is the ini data stored?
I don't actually know. I just made this example when flash first came out to see how the INI worked. But as you can see, it does save it somewhere. Someone mentioned that it disappears when you delete your browser cache, but I haven't tried that yet.
I searched for my own test and found it here:
C:\Documents and Settings\Username\Application Data\Macromedia\Flash Player\#SharedObjects\A676F9PT\#localWithNet\Docum ents and Settings\Username\My Documents\My Games\MMF2\INItest.swf\SearchForThisPlease.ini.sol
So, apparently it's going to be different every time you make and use a flash game/app using the ini file.