Newbie question: Saving User Data on iPad

Hi
I am working on an App for iPad in Flash CS5.5.
In the app the user will be writing poetry and saving text on the iPad locally.
I need them to be able to decide which poem they load back into the app.
It seems to me this will qualify ofr saving to the /Documents folder.
I have looked at shared objetcs and dont think it will do that job.
Can I use FileReference on an iPad?
Will the user be able to browse the different files he/she has saved?
Can someone point me to some example code for saving to and loading from /Documents?
Best
Tommy Banana

Here is some basic code that will work.
import flash.filesystem.*;
import flash.events.Event;
var f:File;
var fs:FileStream;
var myDATAstring:String;
function CheckSettings():void{
            f = File.applicationStorageDirectory.resolvePath("Storage_File_Name.txt");
            if(f.exists){
                getDATA();
            }else {   
             trace("Nothing stored yet");
function getDATA():void{           
          fs=new FileStream();
          fs.addEventListener(Event.COMPLETE, onFileOpened);
          fs.openAsync(f, FileMode.READ);
function onFileOpened(e:Event):void{
            myDATAstring=fs.readUTFBytes(fs.bytesAvailable) as String;
           fs.close();  
//****** Use this to save the high score *******       
function SaveDATA(s:String):void{       
            f = File.applicationStorageDirectory.resolvePath("Storage_File_Name.txt");
           fs=new FileStream();
          fs.openAsync(f, FileMode.WRITE);
          fs.writeUTFBytes(s);
         fs.close();

Similar Messages

  • Apple Configurator - Updating to iOS 6.1.2 removed saved user data

    We are currently managing several classroom sets of iPads using Apple Configurator. When updating to iOS 6.1.2 on the Supervise tab, about two-thirds of one classroom (about 20 iPads) and another 4 out of 6 in a special education classroom lost all previously saved data (application data, documents, pictures, etc.) during the update. We have another classroom that updated approximately 30 iPads following the same exact steps using the same configurator computer and none were erased so we're having a hard time figuring out the issue.
    When I was watching the configurator run through the status updates during the iOS update (e.g. downloading iOS, decompressing iOS, installing iOS) there was another step on the iPads that lost data which was "supervising device." All of the iPads were already supervised so I don't know why this step occurred or what caused it to happen. With the grouping of 6 iPads, the 4 that were erased immediately started decompressing and installing iOS while the 2 that saved user data went to the downloading iOS stage first. I wasn't monitoring the grouping of 30 as closely, but I did notice the "supervising device" stage on the iPads that lost all user data.

    I think for the teachers you are going to have to tell them to copy their data off the device. 
    Suggest dropbox or other cloud storage.  Could set up a WebDave server.
    A simple and popular way to copy files.
    http://wiki.dropbox.com
    Could set up sync-ing so they would come back in he fall.  I'd be cautios and do everythig simple.
    For syncing pc or mac folders to iPad applications.
    "Using SugarSync, you simply designate folders that you want to “sync” to the cloud and it keeps everything in sync anytime you make changes.  This is the way cloud storage should be done and especially if you are using your iPad for buisness or for school."
    The only potential downside is that so many apps for the iPhone/iPad come with Dropbox sync built in which makes it extremely convenient.
    http://www.tcgeeks.com/best-ipad-cloud-sync-app/
    Doug says:
    "This can be done with Dropbox as well using one of the many Dropbox addons…"
    http://wiki.dropbox.com/DropboxAddons

  • Newbie question saving data to a VO

    I have a datagrid with a list of files. I'd like the user to be able to select one or more files and add text/data in a form. On a click event I'd like to save the form data and to a VO for the selected file. Eventually I'll pass the an array of AssetVOs to a BlazeDS service.
    Here's my VO:
    package com.example.vo
              public class AssetVO
                        public var fileName:           String;
                        public var fileSize:           String;
                        public var assetType:           String;
                        public var assetTags:          Array;
                        public var assetName:   String;
                        public var assetDescription: String;
                        public var readyForReview: Boolean;
                        public function AssetVO()
    What's the simplest way to accomplish this task?
    Thanks

    I have a datagrid with a list of files. I'd like the user to be able to select one or more files and add text/data in a form. On a click event I'd like to save the form data and to a VO for the selected file. Eventually I'll pass the an array of AssetVOs to a BlazeDS service.
    Here's my VO:
    package com.example.vo
              public class AssetVO
                        public var fileName:           String;
                        public var fileSize:           String;
                        public var assetType:           String;
                        public var assetTags:          Array;
                        public var assetName:   String;
                        public var assetDescription: String;
                        public var readyForReview: Boolean;
                        public function AssetVO()
    What's the simplest way to accomplish this task?
    Thanks

  • Newbie question about livecycle data services es

    Hi all.
    i've downloaded the LiveCycle ES2 VMware virtual appliance, setup it up on a esxi server, workspace, content space, all are up and running, but here comes my question, how do i install livecycle data services in there?how do i set it up to start working with the rest?
    i've read the documentation on how to install, but i'm a bit confused.
    can anyone give me any pointers about this?
    help would be appreciated
    thanks in advance

    1) In Workbench ES2 create a process to create a new user. If you need to create a group there is also a service to create group. Create a short-lived process using the Avoka service > Create User operation. The Create User operation has the inputs depicted below.
    2) Create a process variable called 'newUserXml' of type 'xml' and declare the variable as input. Ideally, create a schema for the xml.
    3) The Create User operation has a single output, a string containing the user ID. Create a process variable called 'userID' of type 'string' and declare the variable as output.
    3) Save, check-in, and deploy the process.
    4) To test the process, invoke the process from the Workbench. For the input variable, plug data into an xml structure such as this...
    <NewUser>
    <Login/>
    <Password/>
    <CommonName/>
    <CanonicalName/>
    <Description/>
    <Email/>
    <Initials/>
    <OrgName/>
    <Address/>
    <Telephone/>
    </NewUser>
    5) If the test succeeds, you are ready to create the Flex application. If not, figure out why.
    6) Build a Flex app. Once you deployed the process, the remoting endpoint is automatically created and can be accessed by Flex. Here is a stub.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initChannelSet()">
    <mx:Script>
    <![CDATA[
    import mx.messaging.channels.AMFChannel;
    import mx.messaging.ChannelSet;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    private function initChannelSet():void {
    var cs:ChannelSet= new ChannelSet();
    cs.addChannel(new AMFChannel("my-amf","http://localhost:8080/remoting/messagebroker/amf"));
    ro.channelSet = cs;
    private function submitRequest():void {
    var newUser:XML = new XML(getXmlData());
    ro.setCredentials("administrator","password");
    ro.invoke({newUserXml:newUser});
    private function remotingResultHandler(event:ResultEvent):void {
    var userID:String = event.result.userID;
    private function remotingFaultHandler(event:FaultEvent):void {
    Alert.show(event.fault.faultDetail.toString());
    private function getXmlData():String {
    var xmlStr:String = "<NewUser>"
      + "<Login>" + login.text + "</Login>"
      + "<Password>" + password.text + "</Password>"
      + "<CommonName>" + commonName.text + "</CommonName>"
      + "</NewUser>>";
      return (xmlStr);
    ]]>
    </mx:Script>
    <mx:RemoteObject id="ro" destination="MyApplication/processes/CreateNewUser"
       result="remotingResultHandler(event)" fault="remotingFaultHandler(event)"/>
    <mx:VBox>
       UI goes here...
       <mx:Button label="Submit" click="submitRequest()"/>
    </mx:VBox>
    </mx:Application>
    Steve

  • Interacvtive report - saving user data during App upgrade

    Hi all,
    I've read a few posts on this topic, but I don't think any were solved one way or another.
    We use two servers here, one Development, one Production.
    We have an interactive report were users over time build up many custom "tabs" for reporting, charts and day to day manipulation of data.
    Come time to migrate all of the changes made in the Development server to the Production server, we Export from one and Import to the other. After this event, the users are presented with a fresh new Interactive report with all of their saved work gone.
    Is there any way or any thing we can backup on the Production server to then restore after our applicarion import to retain this Interactive report user info?
    NT

    If you export from a given workspace ID and import into a workspace with the same ID (and of course keep the same application ID), I thought that the IR settings were preserved.
    Scott

  • Newbie questions regarding pulling data from hyperion planning cube w/OBIEE

    Hello there,
    we've recently implemented Essbase and are currently pumping it full of revenue/expense data from out source systems to calculate NOI. This data is stored in a staging table at the detail level where it is sourced into Hyperion and aggregated. We also have OBIEE 10g (plan to upgrade to 11g later this year) and we would like to connect to and report out of Essase. Our ultimate goal is to be able to report on the NOI numbers in the planning cube but have the ability to drill down to the detail level which is not stored in Essbase. We've heard it is possible, albeit not native for OBIEE 10g to do this. We've also heard that it is not best practice to use our transactional cube for this type of reporting but to actually create a second "reporting cube".
    What are best practices for getting this NOI data out of Hyperion and merging it with our relational detail reporting? Can we somehow export the data from the cube and store it in a relational database? Should we clone the cube (if even possible) and configure both it and our relational source in the BI repository and setup all drill-throughs there?
    Any info is GREATLY appreciated. Thank you.
    Edited by: cisGuy on Sep 20, 2010 5:31 PM

    i have found information on how to use ODI to extract data for the cube. What I'm really trying to find out though is best practices for reporting off summary level data in Essbase with the ability to drill-through to the detail.
    We've heard reporting off the same cube that users are writing back and transacting on is bad. Do we need to make a "reporting cube" and then bring that in OBIEE and merge it with a relational source or is it better to extract the data from Essbase into flat files and join it to detail tables in our relational source?

  • Newbie question: saving jpeg files in indesign document

    hi there,
    i'm rather new to indesign and i can't get this thing to work:
    whenever i place a jpeg image (or for that matter, any other image format) into an indesign document and later move
    the jpeg file to a different location on my harddrive and then reopen the indesign file, the image is all pixeled. it seems like the image
    isn't saved inside the .indesign file, but is more of a referal to the file on my hard disk.
    is it possible to embed external files (like jpeg) into the actual indesign document and save them within this document?
    i'd be gracious for any help.

    Grant's answers are correct. You SHOULD use linked images and you should update them on the Links panel.
    There are specialized reasons it might be necessary to embed an image, but in general it's not a good idea: (1) It makes the files unnecessarily large, (2) if you make changes in the image, it can be updated in the InDesign file.

  • Newbie question about Logical Data services

    Lets say we want to create a Logical Data Service that will retrieve data from several web-services and aggregate the results. When a client requests data from the logical data service, a number of webservices will get invoked. Response time of these webservices can be different. We do not want to keep the client app waiting for long.. so is it possible to define a cut-off time in data service after which client gets results obtained till that point? Alternatively, does ALDSP provide support for clients that could poll a data-service to check for results of a previously submitted query?
    Will appreciate your help in understanding capabilities of ALDSP and approach taken by you in similar situations.

    to define a cut-off time in data service after which client gets results obtained till that point?See the fn-bea:timeout() function in the ALDSP documentation. It will do exactly what you want for web-services. Note that adding the function to a query will of course alter the query plan - which will have little/no effect for web-services - but for database access, may prevent some optimizations.
    In DSP 3.0, you will be able to use the hasNext()/next() form of the mediator api and the client will only block while the first and subsequent items are being retrieved.
    If you want to call DSP asynchronously - I believe ALSB allows you to create an asynchronous proxy service (JMS, for instance)

  • Newbie question about extracting data from events

    HI
    i am sure there is a simple solution to this, but I am getting frsutrated  trying to extract useful data from an event:
    I have set up and event listner, whatching for CHANGE on a HorizontalList
    so far so good, event handler called when a list item is clicked, and the event is passed, but what is the syntax for getting the in particular the columnIndex, which can tantalising be seen as part of the event in debug.
        public function ShowGroupTab(event:Event):void{
                var a:Number =event.target.columnIndex;
    causes this runtime error:
    ReferenceError: Error #1069: Property columnIndex not found on mx.controls.HorizontalList and there is no default value.

    First it would be better to cast your event in the proper class. In this case the event is a ListEvent. ListEvent extends Event so your code will work but be harder to maintain.
    Your problem is that you're trying to access the columnIndex property on the event.target instead of the event itself. The event.target is the component on which the action was performed, here it's a HorizontalList, and the list does not have a columnIndex property.
    Try this :
    public function showGroupTab(event:ListEvent):void{
         var a:int= event.columnIndex;

  • Newbie question, saving multitrack

    ok,
    i just downloaded the free trail, cause i wanted to try out the product.
    now i just made a multitrack mix from different audio files.
    all i want to do is save my mix to my hdd in one piece, not 100 little wav files.
    i tried all i could think of but nuthin works.
    can someone please tell me how to save it to 1 file?
    thanks alot.
    greetz,
    rajah

    Welcome to ASIO. Great in that it will enable all the features of Creative Labs soundcards. Crappy in that it will now only deal with one audio program at at time. Want to record some audio off the net? Sorry, no. That's why I keep 1.5 around, just for that very purpose.
    Floyd is right with the "release ASIO" uncheck. That works great for any other non-audio program. Trying to have 2 audio programs going simultaneously however shows just how much of a monkey's paw ASIO is.

  • What happens to my local user data? -newbie question sorry

    Hi All,
    Firstly apologies if this seems a dumb question, I've scoured the forums but I require something that fits my specific situation.
    I've had a (my first) MacBook for about 9 months, built up a fairly healthy local user, setup just how I like it, MobileMe, iTunes, Chrome, iPhoto library, lots of other apps, etc etc and so forth.
    I'm setting up a Mac Mini Server, and was wondering what I can do to join the new server, but take all my settings/downloads/iTunes etc with me... I don't want it all stored on the server, but I come from a Micro$oft Windows background. With MS, when you add a PC to a domain, login with the appropriate user account, you have a fresh profile, no settings, no files, no customisations etc etc is this also the case when I hit that Join Network Account server button on my Mac? Will I get a blank fresh account on my Macbook?
    I'm guessing this must happen quite often as people start their way into Apple technology and build up a nice healthy local account before branching further into the Apple world...

    The two laptops I use everyday have access to all the servers via my network account. It is set so that my user account is listed as having "no home" So I log into the laptop with my local user account with a UID of 501 but access all the network services via the go menu and my network account of the same name but with a UID of 1034.
    For all other users in the company, if they are on a laptop, I use network accounts. The machines are managed to ask if the user wants to create a mobile account when they login. For permanently assigned laptop users, the answer is yes. This puts their home on the laptop and ties them to that machine. I use mobile account syncing to make sure their critical data is copied to the server for backup.
    By having the machine ask to create the mobile account, users can answer no and login to their network home. The use of the laptop may be needed temporarily if a regular workstation is down.
    Once in a while I will need to convert a local account to a network account. While a bit more laborious that setting it up correctly at the beginning, it can be done.
    But I never let any user account have the UID of 501. I would set that up as the local admin account I use for installing updates and performing other maintenance. If needed, I would back up the user data and erase and re-install the OS.

  • How can I transfer saved games data (smurf, bakery story, etc) from iPhone 3GS to iPad mini retina?

    How can I transfer saved games data (smurf, bakery story, etc) from iPhone 3GS to iPad mini retina? I have a reached in a very high levels at all these games I choose iPad for continuing  played all my saved games in the bigger screen of iPad. Please send step by step the way I can transfer them at the levels I have reached.

    I have installed all the games from my iPhone 3GS at my iPad mini retina throw iCloud. I did what iTunes suggest but when I open the game start from the beginning. For example all the games of team lava company like farm story 2 bakery home design etc I have register and I took storm ID and I have reached in a big level that some times cost money to change level or to buy gems to continue the games.
    I am very angry because before I bought this iPad they told me that I could played my games in a big screen of iPad and this as I can see is nit possible. Apple send me details that didn't help me and everything suggest me is not working.
    I fell stupid because I spend my money in an apple product that isn't what I want and the information I have throw apple are fake

  • User data permanently saved on iPhone. Even after FULL 2 HOUR WIPE

    Just got my 3G S and I restored my old iPhone 3G prior to selling it. After that I found that all my user data was saved on the phone. When I downloaded Pandora and opened it, my account info was saved and I auto-logged in.
    I researched and found the FULL ERASE option inside the iPhone settings. So I performed the full erase, which takes about 2 hours. Then it restored again.
    After that, I went into settings --> App store. My old account email was still there!! I changed it to a new email address and logged in. Then I downloaded Pandora again. SAME PROBLEM! AUTO-LOG IN!
    So app store and pandora both had my old user info saved.
    To say that I am frustrated, upset, and ready to die, is a gross understatement. My iTunes randomly lost it's entire music library as well. (All 13,000 + songs were missing and could not be found, yet the files are perfectly fine.)
    This is never ending. How do I just wipe my phone?? Please help ;-(
    Crying,
    -Carlos-

    Visited the Apple store today and they replaced the phone. They could not explain what was going on except for being a software issue.
    They said if after restoring I have the same issue, you would have to restore the phone to new and re-install all apps and information manually from scratch.
    I restored the phone from my backup, and all went well. No more slow LTE speeds, plus a new device.
    The only thing I can think of that may have happened is updating carrier settings while updating the iOS at the same time. I thought it was normal because iTunes popped up the carrier update notification a few seconds later after starting the iOS 8 update.
    The carrier update did have an option to cancel. I will definitely wait for the iOS update to complete before I update carrier settings next time.
    I'm just wondering if my phone was out of warranty, and this happened, would Apple still replace the device?

  • GRC 10/10.1 User Data Source question

    Hi folks, I've been unable to find any document that addresses this so I thought I'd ask.
    I've configured GRC 10.1 so that the GRC system is looking at the ECC system and all the scenarios are configured and things are working well.  We have a separate LDAP issue, and until that's resolved, the user data sources have been set to the ECC system.
    Specifically for Firefighter, we want to create Firefighters in the GRC system and assign them IDs that are configured in the ECC system so that they can get in for Firefighter related access and get their work done.  Many of these people are not in the ECC system.
    I realized that I have not set up the GRC system as a connector within the GRC connectors configuration.  I also did not find any reference to this in any of the documentation that's available out there.
    So I wanted to know how do you get the GRC system to become available as a user data source so that in the event a user is not available in the ECC system, and as in our case, LDAP isn't working, the user will still pull up because they exist in the GRC system?
    Can I use a connection type of LOCAL in the "Change View "Connection type definition": Overview" Screen?
    Please advice.
    Thanks,
    Santosh

    Hi Santosh,
    If your requirement is to use GRC as a data source, configure it as a SAP connector as you do for other SAP systems (the underlying system of GRC is Netweaver so its SAP as well).
    Once the connector is configured, you can use that in your "data sources configuration - user search data source". List all your connectors and the sequence in which the user ID has to be searched for.
    For  your case.,
    1. LDAP connector
    2. ECC connector
    3. GRC connector
    Thanks.
    Regards,
    Muthu

  • Newbie question about saving files

    Hi all,
    A newbie question here, and maybe it is a dumb question, but I can't get my head around this and sofar found no answer in the forums here.
    When I save a file on my macbook, I can only save it to "top" folders.
    What I mean is I try to save a file for instance to documents/worddocs/lyrics just to say something, then I have to save the file first to documents, and the move it to the lyrics folder via finder or move it to :worddocs folder and then move it again to the lyrics folder. Hope you still get my drift here
    Is there a way to just save it to the subfolders without going through all this moving around?
    Thanks in advance for any advice
    Peter

    When you click File>Save As, you will see the Save As window pop up. At the top, you will see a box entitled Save As, which has a space for your to enter the file name. To the right of this box is an arrow pointing down. Click it. The full file hierarchy will be seen. Then you can save directly to the file you want.
    Hope this helps.
    Don

Maybe you are looking for

  • Can't print from pc to mx922 via usb cable.

    I have a mx922 and I'm running windows 8.1 Can't print from the pc using a usb cable but the 922 will print wireless. Is there a setting I'm missing? Thank You.

  • Question about using Logic with guitar on stage. HELP!

    Hello, I'm a guitarist. I would need some advises about using Logic in a live situation.. How do you move from one track to the other using the keyboard? Could that action be controlled by some kind of footswitch? Also, the REC button has to be alway

  • File handling with applets

    I am trying to design am opinion poll applet in Java for my site. The poll consists of a CheckbokGroup and a "Submit" Button. On clicking "Submit" the proper percentage claculations are performed and written to an external file using byte streams. No

  • TA22807 does mac mini 2012 support universal bluetooth keyboard?

    Such as a Windows keyboard...

  • YouTube File Blurry in Fullscreen (Captivate 5.5)

    Hello, I am publishing my Captivate 5.5 project to YouTube, and it looks great in YouTube in the small screen version, but when I view it in fullscreen it is very blurry.  Here are my settings details: - Project created with Custom Size setting of Yo