Saving Data for the iPhone App?

Does anyone know how I can save and store and retrieve data after the iPhone application has been closed?
High Scores, Names.....

This seems to create and store  a  .txt on the iphone and I am able to grab the data
   var file:File = File.applicationStorageDirectory;
    var filestream:FileStream = new FileStream();
    var appDataTemp:String;
    file = file.resolvePath("appData.txt");
    filestream.open(file, FileMode.UPDATE);
    filestream.writeUTF("test");
    filestream.close();
    filestream.open(file, FileMode.UPDATE);
    appDataTemp = filestream.readUTF();
    filestream.close();
    filestream.open(file, FileMode.UPDATE);
    MovieClip(root).testtest.text = filestream.readUTF();
    filestream.close();
but after 2 days I can't get any further. For example this works in the air mobile tester, but doesn't on the iPhone. I am completly stumped.
    var file:File = File.applicationStorageDirectory;
    var filestream:FileStream = new FileStream();
    var appDataTemp:String; 
    file = file.resolvePath("appData.txt");
    filestream.open(file, FileMode.UPDATE);
    appDataTemp = filestream.readUTF();
    filestream.close();
    filestream.open(file, FileMode.WRITE);
    filestream.writeUTF("test" + appDataTemp);
    filestream.close();
    filestream.open(file, FileMode.UPDATE);
    appDataTemp = filestream.readUTF();
    filestream.close();
    filestream.open(file, FileMode.WRITE);
    filestream.writeUTF("test" + appDataTemp);
    filestream.close();
    filestream.open(file, FileMode.UPDATE);
    MovieClip(root).testtest.text = filestream.readUTF();
    filestream.close();

Similar Messages

  • IOS 7 release date for the iPhones?

    I need to know when is the official release date for the iOS 7, I just want to know because the Internet is driving me crazy saying that it is September 10 and lots of different dates, can someone just please tell me what day of September it will be, please

    No one but Apple knows, so just be patient.
    About iOS 7
    The following from Apple is all that we know about iOS7 at this time. We are users, too, so we know no more than you.
    iOS 7 will be available as a free software update for iPhone 4 and later, iPad 2 and later, iPad mini and iPod touch (fifth generation) this fall. Some features may not be available on all products.
    *US English, French and German will be available with the launch of iOS 7. Additional languages will be added over time.
    For general information on the features of iOS 7 see: Apple - iOS 7.

  • Why has an age rating of 17+ been set for the iPhone App

    I tried to install the Firefox Home App on the iPod Touch devices (12+) of my son but due to the age rating of 17+ it wasn't possible. After changing the age rating on the device I was able to install it directly to the devices but not via the iTunes progam on my PC?!

    I believe this is because of the restrictions Apple imposes on IOS developers. Any application that has a built-in web browser (like the Firefox Home app) must be rated 17+. This makes little sense because Safari does not have any warnings and it is also a web browser that can access the same exact websites that Firefox Home can. Opera Mini is also rated 17+ because of the web browser. This is insane.

  • How to see the iPhone Apps top charts on an iPad?

    How can I view the top charts for the iPhone Apps on my iPad in the AppStore? You were able to do this on iOS 5  by pressing the "Show iPhone Apps" button on the bottom when you scrolled down.  Though ever since iOS 6 I just couldn't find a way/that button.
    Device: IPad Mini
    iOS: 6

    Not possible.
    FYI, the vast majority of those background apps are not open.  More info on iOS multitasking...
    http://support.apple.com/kb/ht4211
    http://whenwillapple.com/blog/2010/04/19/iphone-os-4-multitasking-explained-agai n/
    http://www.macworld.com/article/1164616/how_ios_multitasking_really_works.html
    http://speirs.org/blog/2012/1/2/misconceptions-about-ios-multitasking.html

  • Is there a GPS app for the iPhone that doesn't use air or data time?

    Is there a GPS app for the iPhone that doesn't use air or data time?

    There are lots of GPS Apps in the App Store.  How do I know they don't use dada and/or air charges?

  • On iPhone 5c iOS 8.2, I go to settings, cellular, use cellular data for: Under "use cell data for are my apps but they are greyed out how can I ungrey them??

    iOS 8.2 on iPhone 5c, goto settings, cellular, use cellular data for: all my apps under "use cellular data for" are greyed out. I've restart and hard reset. Looked thru all settings. Can someone help??

    Did you try to reset the phone by holding the sleep and home button for about 10sec, until the Appel logo comes back again? You will not lose data by resetting.
    If this does not work, did you try to switch off Cellular Data, restart the phone and switch it back on again?

  • How can i adopt the iPhone App-Structure to iTunes for Sync?

    Hello Community!
    I usually buy apps or games directly over the iPhone-App-Store and i also manage the folder structure directly on the iPhone Screen.
    Yesterday i bought a new App via the iTunes Store on my MacBook (don't know why, i thought it would be no problem)
    ITunes is set to manual organisation (the box "App Sync" is not set in iTunes).
    So my problem is:
    I cannot install my recently bought app on my phone without enable synchronisation with iTunes.
    But if i set iTunes to app sync it is going to destroy my folder structures and  remove apps i bought with the iPhone EVEN if i click "Transfer Purchases"!
    Is there a way to manually install the app without destroying my complete structure and losing apps?
    Sorry for the critics, but this is not very user-friendly!
    Thanks for Help!
    Greetings from Germany ,
    Patrick

    This article will tell you where your iPhone backup is stored on your computer:
    http://support.apple.com/kb/ht4946 iTunes content is NOT part of the iPhone backup. You can either copy your iTunes library to your new computer, or you can re-download your purchased iTunes content(except ringtones) to your new computer; http://support.apple.com/kb/ht4527

  • I have ios 7 and lately when im turning off cellular data for some apps when i leave settings and go back in they have turned on back again by themselves. It appears as if i cant turn off cellular data for the apps i want. Any tips?

    I have ios 7 and lately when i go to settings-cellular and try to turn off cellular data for some apps it doesnt work. As i turn off cellular data for one app immideately after i exit settings and re-enter settings cellular data for that same app goes back on again by itself. That happens for most of my apps and is reqlly annoying. Whats more annoying is that when i am not using wifi even though the settings for cellular data for safari or facebook or some other app are turned on (since i cant turn them off as i mentioned) i get the message that cellular data is turned off for this app and i cant use the internet at all on cellular data. I have reset to factory settings and restored from backup and the problem persists. Is there some help or tips you can offer me?

    Did you get anywhere with this? I'm considering wiping it and setting it up as a new device.

  • Does anyone know of an e-reader app for the iphone that has text to speech capability? I have a Kindle 3G that can read whole pdf documents and books but I cannot figure out how to do it on my iphone 4.

    Does anyone know of an e-reader app for the iphone that has text to speech capability? I have a Kindle 3G that can read whole pdf documents and books but I cannot figure out how to do it on my iphone 4.
    All of the apps I have found on the App store either do not have the text to speech capability or if they have it they will only read a page at a time or simply read the text you paste into their window. I really do not understand what is so difficult about having this feature as Kindle provides it--though Amazon does not make the feature available on its iPhone 4 app.
    Please help.

    thanks. yes i am aware of the VoiceOver feature but it is NOT the solution to my problem. as you said, it is a solution to a different set of issues. i want the text to speech ability because i there are books i need to read but do not have the time to sit down and read them and have become used to listening to them read to me either by a professional human reader or with the text to speech software on the Kindle.
    I think Apple makes the best audio devices but i am really disappointed in this inexplainable shortcoming. if apple can give us siri they ought to be able to design a nice little button that i can push to turn on text to speech while i am in a document, book, magazine or webpage. clearly it is possible as apple has added the "reader" button in safari to have web pages dropped into the reader format.
    thanks for your suggestion though, it is what everyone suggests but it does not address the issue.

  • Looking for the best app that has a timer for self portraits for my Iphone 5

    I am looking for recommendations for the best app for my IPhone 5. An app that allows you to take your own picture without having to hold the phone. Something with a timer?

    Thanks, I checked it out but it didn't mention anything about having a timer so you could take your own picture without having to hold the phone.

  • Looking for a good Password Manager App for the iPhone

    I'm looking for a good and reliable Password Manager App for the iPhone with sync capabilities on macs. I've read several reviews on several different apps on iTunes, and either they don't work properly, or they're a rip off, or they just don't sync or all of the above. Any recommendations?
    Thanks in advance.

    I've been very happy with 1Password, though I haven't used the iPhone component (not having an iPhone).
    Disclaimer: any product suggestion and link given is strictly for reference and represents my opinion only. No warranties express or implied. I get no personal benefit from the sale of any product I may recommend in any of my posts in the Discussions. Your mileage may vary. Void where prohibited. You must be this tall to ride. Objects in mirror may be closer than they appear. Preservatives added to improve freshness. No animals were harmed in the making of this post.

  • TS4585 When I am restoring backup data for my iPhone 4 in the end of back up restore it show error message " back up can't be restored" , please advice what I can do to restore my backup

    When I am restoring backup data for my iPhone 4 in the end of back up restore it show error message " back up can't be restored" , please advice what I can do to restore my backup

    That usually means that there is something wrong with the backup and it cannot be used.  You can try restoring the backup again, but if you continue to get the same message all you can do is restore to a different backup, if you have one.

  • The file to download the app for Android is not working from my phone--it says that the file isn't there. However it does see the one for the Iphone (even though it can't use it). I'm very computer literate and am pretty sure the problem is on your end.

    The file to download the app for Android is not working from my phone--it says that the file isn't there. However it does see the one for the Iphone (even though it can't use it). I've tried it multiple times and continue to get the same message: "NOT FOUND The requested item could not be found". I also tried through the Market application on the phone but ended-up with the same result.
    I'm very computer literate and am pretty sure the problem is on your end. If this is the case then no one can download the app. I considered that perhaps because it's still in Beta that it was removed due to some other type of software issue. I would really like to use Firefox on my new Droid (2.0); when with this be available?

    Firefox will not appear in the Market for most phones with incompatible hardware. You can check if your phone is supported here:
    https://wiki.mozilla.org/Mobile/Platforms/Android
    Even on some supported devices, a bug in the Market software prevents Firefox from showing up. This may be related to the fairly recent Android Market app update. If you go to Settings/Applications/Market and choose "Uninstall" you can uninstall the update, and then search for and install Firefox from the marketplace.
    Or, if you have a supported phone, you can download the app directly by typing this address into your phone's browser: http://bit.ly/fxbeta3
    (Note: To download the app directly for an AT&T phone, you will have to search for instructions on "sideloading" the APK file, since AT&T disables the option to install from non-Market sources.)

  • I downloaded a new APP to my iPhone it appears on my screen but can't get it to appear on my wife's iPhone screen.  Her screens were initially full of Apps, I later made room for the new APP but can't get it to appear even after  making room for the new A

    I downloaded a new APP to my iPhone it appears on my screen but can't get it to appear on my wife's iPhone screen.  Her screens were initially full of Apps, I later made room for the new APP but can't get it to appear even after  making room for the new APp.  It can be opened, but I want the APP to be on her iPhone screen as well as on mine.  Help, please.

    Is the app downloaded on her phone also?

  • Clearing date for the payment invoice through APP

    Hi All,
    I have some payment invoice which falls net due date on sunday so i can't able to run app on sunday(holiday)  so i use to run on saturday for getting the discount before the net due date.  While paying like this the system is taking clearing date and value date as sunday as per the net due date of the invoice, which is on holiday for the banks instead of what i have given in the payment parameters as saturday.
    what can i do for this to get payment parameters date as clearing date for the invoice.
    In the payment method for this invoices the payment per due date check box is unchecked in the configuration.  If i select this check box is it works for payment parameters date as clearing date.
    Please help me on this issue urgent.
    Thanks @ Regards
    Nandha

    Hi Jigar,
    Thanks for ther reply,
    that all different issues,
    My issue is the user run the payment run on saturday  with posting date as saturday which the invoice are  due on sunday in the clearing invoice they are getting the clearing date as sunday which is holiday for banks. 
    So I need to get clearing date as saturday for that net due date as sunday invoices why because i giving the posting date as saturday.
    Please suggest me what should i do for this issue.
    Thanks & Regards
    Nandha

Maybe you are looking for