How to Edit a XML data file from AS3 class...

  Hi...
             I need to edit an XML data file I have at the exit of application.... I have a demo code which is not working....
This is the code :
public function UpdateData():void
               trace("Closing....");
               var FileData:XML=<Hello>Hai</Hello>
               var urlLdr:URLLoader = new URLLoader();
               var urlRqst:URLRequest = new URLRequest ("AppData.xml");
               urlRqst.data=FileData;
                urlRqst.contentType = "text/xml";
               urlRqst.method = URLRequestMethod.POST;
               urlLdr.load(urlRqst);
This AppData file already exist and has some data in it.
    Plus :
   How to find the application is exiting.

use:  fscommand('Quit');
to exit your app.
and this is how you would use the urlloader class to save data:
public function UpdateData():void
         trace("Closing....");
          var FileData:XML=<Hello>Hai</Hello>
var urlVar:URLVariables=new URLVariables();
urlVar.fileData=FileData;
            var urlLdr:URLLoader = new URLLoader();
           var urlRqst:URLRequest = new URLRequest ("this must be an executable to parse and write data");
           urlRqst.data=urlVar;
           urlRqst.contentType = "text/xml";
               urlRqst.method = URLRequestMethod.POST;
              urlLdr.load(urlRqst);
but i don't think you can use an executable on a fl4 device so you will need to use a different class.  i don' know how you're storing an xml file on a fl4 device but you should be able to use the sharedobject to read and store xml.

Similar Messages

  • How do i move a data file from my pc to my ipad

    How do I move a data file from my computer to my ipad? It is my product catalogue and it would help if it were on my ipad.

    Plug the iPad into iTunes and you can use file sharing to move it into an app that supports file sharing and that document format.
    see http://support.apple.com/kb/ht4094
    Or, use an online storage service (iCloud, dropbox, box, google drive, sugarsync, etc) and upload the file to that.  Then on the iPad, from within the app you plan to use the file with, link to that service and download the file.
    The app will again have to work with that file type, and support the particular service you used.

  • How to get  value on jsp file from ActionServlets class

    Hi All,
    I am facing problem in action servlets class into Struts, I am able to get the value on jsp file from action class with the help of session scope but i want to another method for it , so how i can solve the problem.Plz help me
    Thanks......... in advance

    I got a way out to access the attribute, i feel it is
    <jsp:usebean id="myRack" class="settings.Rack"/>
    <c:foreach var="book" item="myRack.books">
    </c:foreach>
    I am not able to check if this is correct or not because myRack.books is not having any value set by me in the request scope. How do i get instance of Rack class set by another page in the current request? I can get the value if i use scriptlet but i dont want to use scriptlet.
    I am continiously trying, if I get an answer, I shall post, else pls somebody guide.

  • How do I restore 'Notes' data files from Time Machine?

    My wife accidentally (more or less) deleted 7 of her Note notations because they were duplicated and she thought one should be eliminated.  What happened is that when she deleted one, the system deleted both duplicates.  After doing this for 7 times, she saw what was happening and stopped.  We have both our iMacs backed up to a Time Machine and I have been searching these forums trying to find out the name of the data file for Notes so that I can restore it.  The best I saw was Library/Containers/com.apple.notes but I could not find this file anywhere in Finder or even on the Macintosh HD.  We did find out that if you delete something from Notes on your iMac, it also gets deleted in iCloud (I thought there was a backup in iCloud) iPhone, and iPad.  One of these notes is irreplacable as it is a daily diary of an event in my wife's life.  Can anyone please tell me where I can find the Notes data files so I can locate them on Time Machine and restore them?  (Note:  If I restore them from TM and they are not in iCloud will they be immediately deleted?  Sorry that may be a dumb question but I've done a bit of technical work with PCs and MobileMe and iCloud seem useless.  I'd just as soon plug my iPhone and iPad into my iMac to synch, you know.  Thanks for any help.  Gary

    Here is what I have tried:
    1. Finder>Go>(Option)Library>Address Book(highlighted)with files showing in right column. Opened Time Machine and Address Book folder is there. Tried to go back to several previous dates from several months ago. None will highlight in order for the Restore button to light up.
    2. Finder>Mac HD (under Devices)>(Option)Library>Address Book (same as above). Again, cannot go anywhere back in time to highlight a date for Restore button to light up.
    Note: I was able to use Time Machine to restore my Contacts with no problem. However, they are All Contacts only and did not restore my Groups. I do know how to make groups again and highlight and drag them back, but wanted to see if there was a way to restore the groups. I will post another question as to why my Time Machine won't let me restore the Address Book as well as the Contacts. Thank you for your time and patience.

  • How can i copy my data files from a windows backup to mac mini

    I recently purchased a mac mini and waiting on its arrival.  I am converting from WinXP and my current system is not working at the moment (started smelling smoke one day and the video hasn't displayed since from the PC - so its been shut down).  I can easily fix whatever the issue is with the PC - however - my question is.  I perform periodic backup of my data files to an external drive with Windows Backup, can I restore my files from the Windows Backup to the Mac Mini?  If I don't have to fix the PC - I can save that cost and buy an CD drive for the Mini (or something else).
    I haven't investigated the real problem on the PC - I just know its hardware related (not OS).
    My last backup was atleast 1 month ago - so I know I might lose a couple of things....but not very much.  If its "simplier" for the migration process to fix the PC - then that is the answer but if I can extract from the external 1TB Seagate.  I think I only have 50GB of data (itunes / pictures / etc)
    Thanks

    Maybe by:
    Switch Basics: Migrate your Windows files or system to your Mac
    It depends upon the format of the disk.Yu will likey have to:
    http://reviews.cnet.com/8301-13727_7-57588773-263/how-to-manually-enable-ntfs-re ad-and-write-in-os-x/

  • How to edit web.xml deployment descriptor from console in weblogic 8.1?

    In weblogic 7.0, deployment descriptor such as web.xml can be edited from the admin
    console, but on weblogic 8.1 I can't find a way to do so.
    Is this function taken out? Why is it taken out? Do I have an alternative to edit
    it without unpacking and packing the EAR or WAR?
    Thanks in advance.
    Bill

    In weblogic 7.0, deployment descriptor such as web.xml can be edited from the admin
    console, but on weblogic 8.1 I can't find a way to do so.
    Is this function taken out? Why is it taken out? Do I have an alternative to edit
    it without unpacking and packing the EAR or WAR?
    Thanks in advance.
    Bill

  • How long does migration of data/files from iMac to Mac usually take? And does it matter if the computer goes to sleep mode? Will it still transfer data?

    ???

    There is no stock answer.....the time to transfer depends on computer speed, amount of data...and so on.
    I set my computer to never sleep when I am migrating data.
    Barry

  • How to embed and launch ipa file from another ipa package created using Air for iOS

    Hi Guys,
    Anybody out there knowing how to embed and launch ipa file from another ipa package created using Air for iOS ?
    I am having 1 ipa file created using Xcode, Now i need to include that file in my ipa Package which is created using Flash CS 5.5 and Air for iOS. Also i need to know how to open my 1st ipa file from AS3 ?
    Thanks,

    Hi Sir,
    Thanks for your reply.
    But in that case user need to download 2 applications right. I need user to download my parent application created using Flash and that package contain one more ipa created using Xcode, so from my parent app only user should able to open my 2nd app. Is there any way to do that?
    Ps:  I am not talking about in-app but 2 individual apps inside one package.

  • How to edit the existing data in the XML file from java programming.

    Hi all
    i am able to create XML file with the sample data as below from java programming.
    i need sample code on how to edit the existing data in the XML file?
    for example
    <?xml version="1.0"?>
       <mydata>
               <data1>
                         <key1>467</key1>
                        <name1>Paul</name1>
                        <id1>123</id1>
              </data1>
              <data2>
                         <key2>467</key2>
                        <name2>Paul</name2>
                        <id2>123</id2>
              </data2>
        </mydata>
    i am able to insert the data in the XML.
    now i need sample code on how to modify the data in the above XML file from the java programming for only key2,name2,id2 tags only. the remaining tags data in the XML file i want to keep same data except for key2,name2,id2 which are i want to modify from java code
    Regards
    Sunil
    [points will be always rewardable]

    hi
    u need a parser or validate the xml file for to read the xml file from java coding u need for this
    xml4j.jar u can download this file  from here
    http://www.alphaworks.ibm.com/tech/xml4j
    or we can use the SAX(simple API for XML)
    some sample applications for this
    http://www.java-tips.org/java-se-tips/javax.xml.parsers/how-to-read-xml-file-in-java.html
    http://www.developertutorials.com/tutorials/java/read-xml-file-in-java-050611/page1.html
    http://www.xml-training-guide.com/e-xml44.html
    let me know u need any other info
    bvr

  • How to select path from an XML data file?

    I have an XML data file somewhat like the one below with up to five levels deep (variable). I want the user to be able to pick a path by navigating a tree (i.e. Canada/Alberta/Calgary) and have that path put into a data field. If they only navigate part way into the path (i.e. Mexico/Sonora) then that would go in the data field. I have some control of the structure of the XML as I am creating it from a CSV file.
    Any examples or good advice that you can provide is greatly appreciated. I'm OK manipulating XML but am quite a newbie at PDF forms & Javascript.
    <location>
        <country name="Canada">
            <prov-state name="British Columbia">
                <city name="Victoria" />
                <city name="Nanaimo" />
            </prov-state>
            <prov-state name="Alberta">
                <city name="Calgary" />
                <city name="Lethbridge" />
            </prov-state>
        </country>
        <country name="Mexico">
            <prov-state name="Sonora">
                <city name="Guaymas" />
            </prov-state>
        </country>
    </location>

    Not sure I follow ....are you going to give the user a visual representation of the XML and let them choose then you
    will put the path into a field?
    Paul

  • Forms pulling Multiple Records from an XML Schema and XML data files - Adobe LiveCycle Designer

    I built a form in Adobe LiveCycle with an xml schema and data file.  The problem is with how the form renders the xml data file.
    I have a statement element that consists of about 6 fields (statementID, statementName, statementAddress, statementCountry, statementZip, statementDate, etc) of data in the schema that allows for multiple iterations - so one xml data file can contain multiple statements. These fields allow for null values.
    But here's the problem:  When any of the statements - say statement 2 of 6 - has a null value in one of the fields, if the xml data file doesn't have a placeholder
    (example of placeholder:  <statementName type="String"/>   )in the xml for that field, my form pulls the field value from the NEXT statement.
    This corrupts all the rest of the statement records, as this field is shifted up for all the rest.
    I know that in the past I haven't needed a placeholder when a field was null. But I'm wondering if when the data allows for multiple records the xml data file needs to generate the placeholder.  And where is the problem? In the Schema? The xml data file? My form?  And the 64-thousand-dollar question:  How to fix it?

    If your <statement> element is the one that repeats, it should be bound to a subform with the binding string of something like $.statement[*]. Then in that subform should be your fields and they should have bindings of $.statementID, $.statementName, $.statementAddress, etc.
    Kyle

  • How to Parse XML data directly from context variables in webdynpro

    Hello,
       I have two requirements:
    1) I have a context variable which has string value.
       I want to write the this value into a flat file.
       How do I do this in WebDynpro.
       Any sample code for this.
    2) In Webdynpro, I want to parse and process the XML data directly from a string context variable which
       has the value in XML format.
       How do I achieve this. Any pointers or sample codes for this.
    Thanks and Regards,
    Anupama.

    Anupama,
    Here is some link which talks about unpacking xml and converting to HTML.
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/eb/3dfb402eb5f76fe10000000a1550b0/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/eb/3dfb402eb5f76fe10000000a1550b0/content.htm</a>
    I have done something like this in portal development and not in webdynpro.But in principle it should work very where.

  • How Do I convert image in xml data file back into a JPG?

    I have a user submitted for with an image field and some text fields on it.
    User uploads an image, enters text, clicks submit by email.
    I get the xml data file by email.
    I create a spreadsheet from it.
    text field data is there, in the image field column theres the encoded in text image.
    how do I convert that back into an actual jpg??

    Simply to review proper proceedure and verify we are all on the same page.
    First, set Pan Mode to Stereo Left/Right.
    Then you need to change the XHA1's "Stereo" configuration to "Dual Mono". 
    Each will then automatically pan to the center. 
    Then turn one of the channels off.
    This will work in either the Browser or in a Timeline.

  • How do I copy my video files from iPhoto to iMovie. The two   hour wait to view all in iMovie puts the kibosh on my edit time.

    How do I copy my video files from iPhoto to iMovie? The two + hour wait for thumb nails and hour long wait looking for the right videos kills the time I have to edit.

    You need to convert the VOB files in the TS-Folder of the DVD back to DV which iMovie is designed to handle. For that you need mpegStreamclip:
    http://www.squared5.com/svideo/mpeg-streamclip-mac.html
    which is free, but you must also have the  Apple mpeg2 plugin :
    http://www.apple.com/quicktime/mpeg2/
    (unless you are running Lion in which case see below))
    which is a mere $20.
    Another possibility is to use DVDxDV:
    http://www.dvdxdv.com/NewFolderLookSite/Products/DVDxDV.overview.htm
    which costs $25.
    For the benefit of others who may read this thread:
    Obviously the foregoing only applies to DVDs you have made yourself, or other home-made DVDs that have been given to you. It will NOT work on copy-protected commercial DVDs, which in any case would be illegal.
    If you are running Lion:
    From the MPEG Streamclip homepage
    The installer of the MPEG-2 Playback Component may refuse to install the component in Lion. Apple states the component is unnecessary in Lion, however MPEG Streamclip still needs it.
    To install the component in Lion, please download MPEG Streamclip 1.9.3b7 beta above; inside the disk image you will find the Utility MPEG2 Component Lion: use it to install the MPEG-2 Playback Component in Lion. The original installer's disk image (QuickTimeMPEG2.dmg) is required.
    The current versions of MPEG Streamclip cannot take advantage of the built-in MPEG-2 functionality of Lion. For MPEG-2 files you still need to install the QuickTime MPEG-2 Playback Component, which is not preinstalled in Lion. You don't have to install QuickTime 7.

  • How do i move a video file from the theater to the library for more editing? New version of iMovie.

    How do I move a video file from theater to the library for additional editing in iMovie. It is a new iMac so i guess i have the newest version of iMovie.

    Hi hilldw61,
    Welcome to the Apple Support Communities!
    I understand that you have added a clip or project to iMovie Theater but would like to continue working on it. When you upload the project to iMovie Theater, the original project remains in iMovie where you can edit it further. 
    Add, remove, and play clips and projects in iMovie Theater - iMovie Help
    Best regards,
    Joe

Maybe you are looking for

  • How can I get Minecraft onto my Macbook Pro?

    How can I get Minecraft onto my Macbook Pro? It is 15 inch Retina display, and it is Version 10.9.1 . I download the game, log in and press play, but as soon as it finishes loading, the blue bar goes away and nothing else happens! It goes from this:

  • Printer for GR

    HI, I see that printer is assigned in several places for GR output- OMJ3, MN21 and in the user defaults. Could you please let me know from where is the printer determined. Which one takes priority? Thanks Aparna

  • Installation of Business content  and activation

    Hello, Our Source system is ECC 6.0 and BW :NW2004 S and SAP NetWeaver BI 7.0 . We are able to create source system conection successfully . after installing the business content and replication, all the data souces in BW are still in Version D only.

  • Dataguard setup using hot backup files

    Hello, I am planning to setup dataguard using Hot backup (Not RMAN) files from the primary instance. I have a few doubt as, How shall I recover the Standby database using the archive files generated while taking hot backup of primary? Shall I directl

  • Business Partner Replicatione Error PI- C4C

    Hello everyone, i've done a Business Partner integration CRM - C4C with PI. The exchange of business partner works already but i get a strange error message in the web service monitoring. It says: com.sap.aii.af.service.cpa.CPAObjectNotFoundException