A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Shared Object Location

  1. #1

    Shared Object Location

    Hello all, Does anyone know of a way to save a Shared Object to a specific folder? Or even if this is possible?... Just trying to find an alternative to writing to .txt files, because I've learned that you can't with strictly flash...

    Thanks in advance for anyones help!

    Peace,
    ~Bill
    So many Ideas

    So little Time

  2. #2
    Banned NTD's Avatar
    Join Date
    Feb 2004
    Posts
    3,438
    Hi,

    Shared object files are not stored as .txt files. They are stored as .sol files and are encrypted. You wont be able to use them in the same manner as a .txt file, even if you could store it in a folder, which you can't do either. The shared object .sol files are automatically saved by the flash player to something like this path.......

    C:\WINDOWS\Application Data\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys

    If saving to a .txt file is essential for a single task, you can create a flash 5 movie with the fscommand("save","somefile.txt"). Shared Objects replaced this Flash 5 ability with the release of MX but it still works as a Flash 5 feature.

    Hope it helps
    NTD

  3. #3
    Junior Member
    Join Date
    Jul 2008
    Posts
    14
    Hello,

    I would like to ask, why when I m trying to store some data using the SharedObject , if I press DENY on the space allotment question (the classic pop up), the SOL file is being created.

    the flush call is : var flushVar = saveUser.flush(1000000);

    I would like , when I press Deny not to be created and when I press accept then to be created.

    The file being saved is less that 1 mb of caurse. is this why I dont get the behavior I want? and how can I get this kind of behavior?
    Last edited by NoobGeek; 09-07-2008 at 02:27 AM.
    Flash CS3 user

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center