A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Saving Info, is XML best for this?

  1. #1
    Member
    Join Date
    May 2008
    Posts
    59

    Saving Info, is XML best for this?

    Quick question.

    My project is an application to save various info about several people. I need to store that info so if the user closes the app the info is saved so its intact when the app is opened again. Its not large enough to require a database and needs to work locally, not as a web app. i was planning on doing it in AS3 Flash/Flex.

    Is Flash/XML best for this?

    I guess I'm asking if I can dynamically add nodes to the XML that's part of the Flash file and populate those nodes so they will save that info permanently.
    Last edited by darngooddesign; 11-10-2009 at 06:12 PM.

  2. #2
    Pumpkin Carving 2008 ImprisonedPride's Avatar
    Join Date
    Apr 2006
    Location
    Grand Rapids MI
    Posts
    2,378
    You have two options. You can either access the Flash filesystem to read/write the xml to a file, or your can store the xml to a shared object, which has size limits meaning your xml database might not fit into a shared object if it gets too large.
    The 'Boose':
    ASUS Sabertooth P67 TUF
    Intel Core i7-2600K Quad-Core Sandy Bridge 3.4GHz Overclocked to 4.2GHz
    8GB G.Skill Ripjaws 1600 DDR3
    ASUS ENGTX550 TI DC/DI/1GD5 GeForce GTX 550 Ti (Fermi) 1GB 1GDDR5 (Overclocked to 1.1GHz)
    New addition: OCZ Vertex 240GB SATA III SSD
    WEI Score: 7.6

  3. #3
    Member
    Join Date
    May 2008
    Posts
    59
    The app will be an EXE. Can I updated the XML if its embedded in the EXE, or does it need to be a separate file?

  4. #4
    Pumpkin Carving 2008 ImprisonedPride's Avatar
    Join Date
    Apr 2006
    Location
    Grand Rapids MI
    Posts
    2,378
    Embedded code will be reset on the next run to whatever you originally hardcoded the value to. Your best bet would probably be looking into shared objects depending on the amount of data you're storing in your XML.
    The 'Boose':
    ASUS Sabertooth P67 TUF
    Intel Core i7-2600K Quad-Core Sandy Bridge 3.4GHz Overclocked to 4.2GHz
    8GB G.Skill Ripjaws 1600 DDR3
    ASUS ENGTX550 TI DC/DI/1GD5 GeForce GTX 550 Ti (Fermi) 1GB 1GDDR5 (Overclocked to 1.1GHz)
    New addition: OCZ Vertex 240GB SATA III SSD
    WEI Score: 7.6

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