Hi
Is it OK for a Flash game to store an Array ( highscore table ) on the users computer?
Is there a specific location i should store the Array?
Printable View
Hi
Is it OK for a Flash game to store an Array ( highscore table ) on the users computer?
Is there a specific location i should store the Array?
Yes, data are saved in a specific folder on the user's machine.
Im not sure i understand.
When i save an Array in MMF2, i have to input a filename and a location for the file.
Are you saying that it dont matter what location i use to store the Array?
Or are you saying that my MMF2 Flash app will allways automatically save the Array at a specific location?
In that case, what location?
I notice that when saving an Array to the desktop, it does not get created at that location ( or any other location as i am aware of ) when running the app as Flash, only as EXE.
Yes this is what I mean. In Flash, only the name and extension component of pathname is used. The files are saved in a folder located deep in the system drive (%APPDATA%\Macromedia\Flash Player\#SharedObjects\ for Vista).
Excellent
I understand, thank you very much Francois!
So this means it is possible to use arrays for flash games and not just inis? (I have been told both yes and no a lot). Or will some systems or sites block an atemt to save a file to the harddrive? (I guess it is not possible to save the array to the cookies as the ini does?)
Hi
Ive been working all day on this
I have made an Array represent Players Scores and Names for a game, it works correctly as EXE and also seems to be working correctly in Flash.
However if sites block atempts to save files like this to disk, such a solution is kinda bad and maybe other solution would be better.
Well, i have created a scoreboard using Array for a Flash game, so it works...
But i would also like to know if such conduct is genrally accepted or not among hosting sites.
How should one go about finding this out, contacting different hosting sites maybe?
If anybody knows anything about this, pleace let me/ us know
Unfortunatly i cannot share the file i have been working on
But im more than happy to create a simple example of how a MMF2 Flash App can store values to, and read from an Array
Its pretty straight forward actually
But righ now however, i need to get some sleep
Hi King_Cool. First go into the Control Panel > Folder Options > View. Then check Show Hidden Files, Folders and Drives.
Then go to Users > Marv (or whatever your computer name is) > AppData > Roaming >
Marv
Thanks Marv
Ill post the working Flash Array Hiscore example as soon as i get to the bottom of this 'save file stuff'
bump.
I am looking intoo this folder now, but i cant see any Array anywhere.
All i see is 1 cryptic folder, which contains alot of other 'site specific' folders.
I am using Windows 7.
Where specifically should the Flash Array be located?
I need to locate it before ic an include it in binary data.
Try:
Users > Marv (computer name) > AppData > Roaming >
Marv
Ok, just checking. So, then I don't know. In fact I didn't know you could even use the array with the SWF exporter, as I stated before. Just for giggles try win32 or WoW folders.
Marv
OK so
- I made a simple MMF2 Flash Application which writes 9 to an Array and saves it as TestArray.arr
- I then searches for TestArray.arr in Window
- Windows finda a file "TestArray.arr.sol" in the Applications folder
- However if i manually open the Application folder, no such file exists
I allways thought Array files had the .arr extencion
What is a .sol file?
Is the .sol file my Array file?
Why is the .sol file not visible to me?
Only thing I can think is that you are looking in a place where you think the file is being saved, but it's being saved somewhere else. ???
"SOL files are Adobe Flash Player Shared Objects which are used to read and store limited user data and settings on a computer or server. They offer real time sharing and work in a similar fashion to cookies."
It seems when a MMF2 Flash App saves an Array, it saves the Array as a .sol file instead of an .arr file.
And i think this is the core of the problem...
...An Array cannot LOAD a .sol file ( as far as i know )...
...
Any workaround for this?
Maybe its possible to force the Array to save as a .arr file?
Maybe there is some way the Array is able to read .sol files?
Maybe there is some way MMF2 can read .sol files?
A method for converting ( preferably not external ) .sol files to .arr files?
I would very much like to be able to save and load Arrays in MMF2 Flash.
Go into the Control Panel > Folder Options > View > Check "Show hidden files, folders, drives.
Flash Local Shared Object File
Contains user data and settings stored by Flash Player 6 and later ; similar to a cookie saved from a Web page, but is used specifically by Flash Player. SOL files can be opened and edited with SolVE: the Local Shared Object Viewer/Editor, or by another SOL file editor.
Marv
So the answer is that it is not possible to use an array for saving in flash?
Outcast. In my experience and teachings, no it's not. I have ask anyone to provide an example file showing arrays saving and loading a player's x,y position in flash.
Marv
I was not aware that Arrays in Flash builds were saved as .sol files.
Its seems impossible to load Array data from a MMF2 Flash application, unless
( A ) MMF2 Flash is able to save Array files as a .arr
( B ) MMF2 Flash is able to read data of a .sol file
...
It is however quite easy to tread an INI file as an array, by treating the Groups as the X Index and the Items as the Y index