View Full Version : [AS2] Questions about Windows projector (exe)
fcaserio
07-21-2009, 02:11 PM
Can I upload a text file to the executable and read it to parse variables on the file? Parsing should not be a problem, but can I upload a file using some sort of file field on an executable?
Can a windows projector write preferences to the disk? The idea is to upload syncronization files and store info on the disk.
tks for the help
northcode
07-21-2009, 03:43 PM
What do you mean by "upload"? Your EXE file can read text files without much trouble but saving the results will be a problem. The only thing Flash can write to is a shared object (unless you save the data to a server).
fcaserio
07-21-2009, 05:07 PM
I've been reading about the shared object, and I proved some demos.
What I couldn't find out is where does the share object saves the info? Is is saved on a directory on C:? Or on windows registry?
When I say upload what I mean is that I want to place a field to upload a XML file into the executable. The executable should be able to read the XML content and save the XML info for later usage. The shared object can be used on this case?
northcode
07-21-2009, 05:34 PM
Shared objects are stored in SOL files that are stored in the user application data folder, typically something like C:\Documents and Settings\USERNAME\Application Data\Macromedia\Flash Player\#SharedObjects. You can find more out on wikipedia (http://en.wikipedia.org/wiki/Local_Shared_Object). You don't really have to know where the SOL file is, Flash knows and will be able to reload it later when you ask for the data you have saved.
fcaserio
07-21-2009, 06:05 PM
tks
is there a limit of data that can be stored with share objects?
If I store large arrays (thousands of records) with share objects will it be slower to be read?
northcode
07-21-2009, 06:31 PM
Shared objects should be pretty fast but the user sets the limit on how much data can be stored. The default is 100K (per domain) and if the application goes over that limit the user is prompted to increase it. If they refuse, your write fails.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.