Load , edit and update an external XML in AS3

Hello to all of you!
I'm new in Flash, so i would like some help here....
I'm trying to build a User Interface (SWF) and provide it to my customers in order to have access (easely) and they can change the data (images & Texts) of an XML driven photo Gallery.
I load the XML in Flash(CS4) i can 'trace' at the output panel the nodes but when i'm editing new data the changes are not "saved"...
The Files look like this:
gallery.xml
fla
<?xml version="1.0" encoding="utf-8"?>
<objects>
   <picture_path>pictures/1.jpg</picture_path>
   <thumb_path>thumbs/1.jpg</thumb_path>
   <picture_desc> abcdefgabcdefg </picture_desc>
   <picture_title>  ABC  </picture_title>
   <picture_path>pictures/2.jpg</picture_path>
   <thumb_path>thumbs/2.jpg</thumb_path>
   <picture_desc> abcdefgabcdefg </picture_desc>
   <picture_title>   </picture_title>
   <picture_path>pictures/3.jpg</picture_path>
   <thumb_path>thumbs/3.jpg</thumb_path>
   <picture_desc>  abcdefgabcdefg  </picture_desc>
   <picture_title> ABCDEFG </picture_title>
</objects>
var captionsXMLLoader:URLLoader = new URLLoader();
captionsXMLLoader.load(new URLRequest("gallery.xml"));
captionsXMLLoader.addEventListener(Event.COMPLETE, captionsXMLLoadedHandler);
function captionsXMLLoadedHandler(eventObj:Event):void {
       var captionsXML = new XML(eventObj.currentTarget.data);
       trace(captionsXML.picture_title[2]);                // -> ABCDEFG
  //  ( This line should change the data of XML ? )
       captionsXML.picture_title[2] = "Bla Bla Bla Bla...";
       trace(captionsXML.picture_title[2]);                // -> ABCDEFG
Please some help here !!!

Sorry Kglad, this isn't embedded straight in to a html fil but from a main swf (full screen flash website i'm building).
The code example is a part of my nodes from the menu config xml...
William

Similar Messages

  • Load username and password for external application?

    How to load username and password for external application?
    For each user, we should take its Portal username and password for one specific external application. How to do that ?
    Regards.

    ABSOLUTLY YES !!!!
    We already know the external application login information for each user and we want to by pass this user task. (Specially because the user itself doesn't know its username/password for the external appli). In fact we are trying to integrate IStore product to Portal by using this mechanism.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Kamalendu Biswas ([email protected]):
    If you define an external application then SSO users can populate user information by themselves.
    Are you syaing that you want to populate user information automatically (bulk lodad)?<HR></BLOCKQUOTE>
    null

  • Edit and update multiple records in JSP buisness components

    Hi everybody,
    I'm building BC4J components using entities and views and JSP buisness components.
    how can I edit and update multiple records
    at a time in the jsp file
    Note using the databean
    "oracle.jbo.html.databeans.EditCurrentRecord"
    one can view one record at a time
    thank you

    do you have a sample code? thanks
    Hi
    There are several options. One of them could be
    1) use <input name=rc[j] value="..."> instead of
    display a raw text
    2) parse parameters in doPost method of your servlet
    to update appropriate values.
    3) Make a empty row enable inserts
    Regards
    Jan

  • Why am I having trouble loading apps and updates on my iPad? I have closed out all my apps and rest my iPad but still no luck. Can someone help me please

    Why am I having trouble loading apps and updates on my iPad? I have closed out all my apps and rest my iPad but still no luck. Can someone help me please?

    Try a reset, press and hold both the home and power buttons for 10-15 seconds till the Apple logo appears. Release both buttons. Wait 15-20 seconds till your iPad starts on it's own.

  • How to edit and update table control into database?

    I am doing table control. Here are my codes:
    *& Report  ZHERA_TABLE2
    REPORT  ZHERA_TABLE2.
    ***&SPWIZARD: DATA DECLARATION FOR TABLECONTROL 'ZTABLE_CONTROL'
    *&SPWIZARD: DEFINITION OF DDIC-TABLE
    TABLES:   ZHERA.
    *&SPWIZARD: TYPE FOR THE DATA OF TABLECONTROL 'ZTABLE_CONTROL'
    TYPES: BEGIN OF T_ZTABLE_CONTROL,
             NAME LIKE ZHERA-NAME,
             AGE LIKE ZHERA-AGE,
           END OF T_ZTABLE_CONTROL.
    *&SPWIZARD: INTERNAL TABLE FOR TABLECONTROL 'ZTABLE_CONTROL'
    DATA:     G_ZTABLE_CONTROL_ITAB   TYPE T_ZTABLE_CONTROL OCCURS 0,
              G_ZTABLE_CONTROL_WA     TYPE T_ZTABLE_CONTROL. "work area
    DATA:     G_ZTABLE_CONTROL_COPIED.           "copy flag
    *&SPWIZARD: DECLARATION OF TABLECONTROL 'ZTABLE_CONTROL' ITSELF
    CONTROLS: ZTABLE_CONTROL TYPE TABLEVIEW USING SCREEN 1000.
    START-OF-SELECTION.
    CALL SCREEN 1000.
    *&SPWIZARD: OUTPUT MODULE FOR TC 'ZTABLE_CONTROL'. DO NOT CHANGE THIS LI
    *&SPWIZARD: COPY DDIC-TABLE TO ITAB
    MODULE ZTABLE_CONTROL_INIT OUTPUT.
      IF G_ZTABLE_CONTROL_COPIED IS INITIAL.
    *&SPWIZARD: COPY DDIC-TABLE 'ZHERA'
    *&SPWIZARD: INTO INTERNAL TABLE 'g_ZTABLE_CONTROL_itab'
        SELECT * FROM ZHERA
           INTO CORRESPONDING FIELDS
           OF TABLE G_ZTABLE_CONTROL_ITAB.
        G_ZTABLE_CONTROL_COPIED = 'X'.
        REFRESH CONTROL 'ZTABLE_CONTROL' FROM SCREEN '1000'.
      ENDIF.
    ENDMODULE.
    *&SPWIZARD: OUTPUT MODULE FOR TC 'ZTABLE_CONTROL'. DO NOT CHANGE THIS LI
    *&SPWIZARD: MOVE ITAB TO DYNPRO
    MODULE ZTABLE_CONTROL_MOVE OUTPUT.
      MOVE-CORRESPONDING G_ZTABLE_CONTROL_WA TO ZHERA.
    ENDMODULE.
    Screen 1000 codes:
    PROCESS BEFORE OUTPUT.
    *&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'ZTABLE_CONTROL'
      MODULE ZTABLE_CONTROL_INIT.
    *&SPWIZARD: MODULE ZTABLE_CONTROL_CHANGE_TC_ATTR.
    *&SPWIZARD: MODULE ZTABLE_CONTROL_CHANGE_COL_ATTR.
      LOOP AT   G_ZTABLE_CONTROL_ITAB
           INTO G_ZTABLE_CONTROL_WA
           WITH CONTROL ZTABLE_CONTROL
           CURSOR ZTABLE_CONTROL-CURRENT_LINE.
    *&SPWIZARD:   MODULE ZTABLE_CONTROL_CHANGE_FIELD_ATTR
        MODULE ZTABLE_CONTROL_MOVE.
      ENDLOOP.
    MODULE STATUS_1000.
    PROCESS AFTER INPUT.
    *&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'ZTABLE_CONTROL'
      LOOP AT G_ZTABLE_CONTROL_ITAB.
        CHAIN.
          FIELD ZHERA-NAME.
          FIELD ZHERA-AGE.
        ENDCHAIN.
      ENDLOOP.
    *&SPWIZARD: MODULE ZTABLE_CONTROL_CHANGE_TC_ATTR.
    *&SPWIZARD: MODULE ZTABLE_CONTROL_CHANGE_COL_ATTR.
    MODULE USER_COMMAND_1000.
    Please show me where to put my codes to edit(edit directly on table control fields) and update my table control(using the 'save' button)?

    Hi,
    You have to put the following code in the PBO of screen 1000.This code would make the fields editable to make changes in the table control fields directly.
    Here there are 3 transactions.For create and change transactions, the fields will be in editable mode and for display transaction,they will be non editable mode.
    DESCRIBE TABLE tb_line LINES lin.    " tb_line is the name of the internal table for the table control
      tcl_item-lines = lin.                             '' lin hold the number of lines of the internal table
    CASE sy-tcode.
        WHEN 'ZCREATE09' OR 'ZCHANGE09'.
    ***Checking if the table control is empty or not***
          IF lin NE 0.       
            LOOP AT SCREEN.
    ***To make the screen editable****
              screen-input = 1.
            ENDLOOP.
          ELSE.
            LOOP AT SCREEN.
              IF screen-name CS 'TB_LINE'.
    ****To make the screen non-editable if no values are present in the
    ***table control****
                screen-input = 0.
                MODIFY SCREEN.
              ENDIF.
            ENDLOOP.
          ENDIF.
    Once the fields are edited and the save button is pressed,the entered values have to be populated into the Z tables.The code has to written in the PAI of the screen 1000.Here the values from the work area of the internal table are moved into the Z Table. The code will be.
    LOOP AT tb_line.
        ztm09_ekpo-ebeln = ztm09_ekko-ebeln.  "ztm09_ekko and ztm09_ekpo are the names of the Z Tables.
        ztm09_ekpo-ebelp = tb_line-ebelp.   
        ztm09_ekpo-matnr = tb_line-matnr.
        ztm09_ekpo-menge = tb_line-menge.
        ztm09_ekpo-meins = tb_line-meins.
        ztm09_ekpo-netpr = tb_line-netpr.
        ztm09_ekpo-waers = tb_line-waers.
    *****Update the entries into item table*****
        MODIFY ztm09_ekpo.
      ENDLOOP.
    Reward if helpfull
    Thanks,
    Kashyap

  • Single Edition and update

    How many update i can upload with single edition?

    One limitation not mentioned here, however, is that the serial number associated with a Single Edition license expires after a year. The license only allows you to build (and update) your application for a one-year period. After a year, you need to either subscribe to Creative Cloud (which will entitle you to build an unlimited number of Single Edition applications as you're a subscriber) or purchase a new serial number through the Adobe Store. Hint: The cost of a Single Edition serial number is $395 whereas the cost of a subscription to Creative Cloud is $49.99/month (with a 40% discount if you're upgrading from Creative Suite).

  • Office 365 Shared External Contacts - how do I delegate Edit and Update permissions to users

    Hello
    Office 365 Shared External Contacts - how do I delegate Create/Update/Delete/Edit permissions to users who are not Admins? These Contacts are in the Global Address List. Not Outlook personal Contacts. O365 Small Business Premium

    Hi,
    To grant users delegate permissions, open Outlook, go to FILE -> Info -> Account Settings -> Delegate Access -> Add -> Search and add the user, click OK -> Edit the permission of the user. We can set different permissions in the dropbox
    of Contacts.
    There are four permisssions for Contacts:
    1. None
    2. Reviewer (can read items)
    3. Author (can read and create items)
    4. Editor (can read, create, and modify items)
    Select the permission that you want to grant the user.
    We can also modify the permission later in this section.
    I hope the information is helpful, if I misunderstood anything, feel free to correct me and provide more detailed description of the question.
    Regards,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Can multiple people edit and update a shared document in Numbers?

    Hi!
    Just a quick one for you guys!
    I have recently discoverer 'Numbers' which is great! I then discovered you could share a spreadsheet which is perfect for us as we quiet often need to be working in the same document from our iPhones. However, we do not seem to be able to see each others changes on the shared document. Is it actually possible for us to both work in the spreadsheet and it automatically update each others spreadsheet or is it that when we are done editing, we can only send it to our own iCloud?
    Thanks!
    Ry

    If you share an iCloud link, you can all edit the same document through a web browser.  But it has to be a "full" web browser.  Mobile Safari on the iPhone can't handle it.
    If you're editing the document in Numbers for iOS then others won't be able to see your changes. You'll have to email or share a link to your edited version.
    SG

  • Editing and updating a row in Datagrid

    Hi All,
    I am getting the list of records from database and displaying those records in Datagrid with the help of dataprovider.
    i want to edit any record and have to update.
    How can i do this. Can any one help me.
    thanks
    Raghu.

    You'll need to implement a change event handler that calls an HTTPService, WebService, or RemoteObject. See these links for more info:
    http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_2.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=dpcontrols_7.html
    http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/
    If this post answers your question of helps, please mark it as such.

  • Can I edit and "update" an image, in the timeline, without re-importing it and re-doing all the motion/keyframes?

    I have an image in my Final Cut Express project, which has lots of intricate movements and keyframes assigned to it.
    I've just discovered I need to change something in the image (give it a photoshop edit).
    Do I have to re-import the image all over again, and copy over the numerical details in for the "motion" section, or can I just do something to replace the file and have FCE use that new image in the timeline, keeping everything that was setup?
    Thanks

    In system preferences set the external editor for stills to Photoshop. Control-click on the image and select open in editor. Make the changes. Save the image.

  • How to Edit and update a Procedure belonging to other owner

    1) How do i edit a stored procedure
    2) After editing it how can i update it in other users log

    You need resource privilege to recreate a procedure in another user's schema, CREATE ANY PROCEDURE.
    Then you need access to the source code. Offline access is best. The data dictionary won't let you see package bodies belonging to other users from the ALL_SOURCE view, but should from DBA_SOURCE. GUI tools like TOAD and SQL Developer may let you see other users source but this will depend on the editor. Likewise the GUI tools may/may not let you edit others users code when you have privileges.
    Generally, you don't "edit" stored procedures. You get the source, use an editor to modify the source, and replace it with the new code. Its best to keep offline backups of source while you are working on it, especially if you are using a GUI tool where a botched editing session will corrupt the online copy.
    If using SQL*PLUS to recreate another user's stored procedure you need to prefix the create command with the username, something like
    create or replace package scott.my_package ...which may not be necessary if you're using a GUI tool.
    Message was edited by (content):
    riedelme

  • Why I cannot edit and updat tree node in this program??

    Dear Friends:
    I have following code, it can be run ok,
    I set it editable, I hope to edit at run time, but looks like I cannot edit,
    what is wrong??
    Can you help??
    Thanks
    package treeSelectionListener;
    import java.awt.*;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    public class SelectableTreeTest extends JFrame
         public SelectableTreeTest(){
              JPanel jp = new JPanel();
              JPanel jp2 = new JPanel();
            MyTree myTree= new MyTree();
            MyTree myTree2= new MyTree();
            JTabbedPane tabbedPane = new JTabbedPane();
            tabbedPane.setPreferredSize(new Dimension(600,400));
            jp.setPreferredSize(new Dimension(600,400));
            jp2.setPreferredSize(new Dimension(600,400));
            myTree.setPreferredSize(new Dimension(600,400));
            myTree2.setPreferredSize(new Dimension(600,400));
            JScrollPane   jsp = new JScrollPane();
            jsp.setPreferredSize(new Dimension(600,400));
              add(jsp, BorderLayout.CENTER);
              jsp.setViewportView(tabbedPane);
              jp.add(myTree);
              jp2.add(myTree2);
              tabbedPane.addTab("1st Tree", jp);
              tabbedPane.addTab("2nd Tree", jp2);
        public static void main(String[] args) {
            JFrame frame = new SelectableTreeTest();
            WindowUtilities.setNativeLookAndFeel();
            frame.addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                    System.exit(0);
            frame.pack();
            frame.setVisible(true);
      public class MyTree extends JTree implements TreeSelectionListener {
      private JTree tree;
      private JTextField currentSelectionField;
      public MyTree() {
        Container content = getContentPane();
        DefaultMutableTreeNode root =
          new DefaultMutableTreeNode("Root");
        DefaultMutableTreeNode child;
        DefaultMutableTreeNode grandChild;
        for(int childIndex=1; childIndex<4; childIndex++) {
          child = new DefaultMutableTreeNode("Child " + childIndex);
          root.add(child);
          for(int grandChildIndex=1; grandChildIndex<4; grandChildIndex++) {
            grandChild =
              new DefaultMutableTreeNode("Grandchild " + childIndex +
                                         "." + grandChildIndex);
            child.add(grandChild);
        tree = new JTree(root);
        tree.setEditable(true);
        tree.addTreeSelectionListener(this);
        content.add(new JScrollPane(tree), BorderLayout.CENTER);
        currentSelectionField = new JTextField("Current Selection: NONE");
        content.add(currentSelectionField, BorderLayout.SOUTH);
        setSize(250, 275);
        setVisible(true);
      public void valueChanged(TreeSelectionEvent event) {
        currentSelectionField.setText
          ("Current Selection: " +
           tree.getLastSelectedPathComponent().toString());
    }

    change this
    tree = new JTree(root);
    tree.setEditable(true);
    tree.addTreeSelectionListener(this);to this
    setEditable(true);
    addTreeSelectionListener(this);and this
    currentSelectionField.setText
      ("Current Selection: " +
       tree.getLastSelectedPathComponent().toString());to this
    currentSelectionField.setText
      ("Current Selection: " +
      getLastSelectedPathComponent().toString());and remove this
    private JTree tree;

  • Once I publish my site with a web hosting site can I still edit and update the site in Muse?  Can I add and delete pages to the site?

    Very confused about publishing the Muse site.  It sound like I won't be able to edit a lot of it once it is published.  I need to be able to add and delete pages and edit the content on existing pages over time.  It is saying that the temporary version of the site will delete after 30 days.  Am I misunderstanding?

    It sounds like you didn't upload the css files folder that Muse generates. There is also scripts file, assets file/images file that Muse generates

  • Using external XML document to update / change text fields inside of published captivate output.

    Hello
    I currently have a project where the client has requested to have the ability to update the text fields inside the project at a later date.
    This is due to the nature of the content changing rather rapidly, i would like to set this up so the client can manage this them selfs.
    What would the best way to do this be?
    I'm thinking XML, an external XML sheet were by Captivate imports the text from this XML sheet and then displays it within the specific text fields contained within the captivate output.
    This way the client would just update the external XML document(cut and paste the text in) and then the text would be dynamically updated in the published Captivate document.
    any help would be amazing !
    Thanks in advance
    Nick

    Hi Lieve
    But isn't this thread more about an end user having an ability to change text after the Captivate has been published and delivered? I could see where that might be useful if making changes then publishing to create a new output. But I'm interpreting that the situation here is that a Captivate project has been published and delivered, and some mechanism is desired that allows the recipient to modify an external XML file to influence changes in the already compiled Captivate output.
    Cheers... Rick

  • XML Creating, editing and saving! ;D

    Hey!
    So, here's what I want to do:
    When the users loads the Flash File, I want the ActionScrip to create an XML file that says:
    <id="000000" tutorial="no" name="000000" coins="3000">
        Now, I want the flash file to see that the user hasn't completed the tutorial.. and if it says NO it should load: tutorial.swf
    Then, once the tutorial.swf end, after the final button is clicked I want it to edit the XML file so that tutorial="no" is replaced with tutorial="yes" and it loads 'user.swf' And when the FlashFile is reloaded, it checks that the tutorial="" says yes, and it skips out tutorial.swf and it goes straight to user.swf..
    If it's not clear I'll show it below:
    Load tutorialcheck.swf
    If tutorial="" says no load tutorial.swf
    If tutorial="" says yes load user.swf
    Load tutorial.swf
    If tutorial is complete, on final button click edit XML and say tutorial="yes", then load user.swf
    Thanks!

    Hi
    Although not directly related to your problem, you can find an example of loading, editing and saving xml here.
    I have created a demo of Loading,Editing & Saving XML To/From Flash.
    You can find the Demo here http://demo.thefeldkircher.org/flashxml/xmlles/xmlls.htm
    You can find the How-To here http://blog.thefeldkircher.org/?p=262
    Hope it helps.

Maybe you are looking for

  • How to restore my iPhone when my backup doesn't show up?

    Today 12/28/13, I brought my iPhone 5 into an apple store to get a battery replacement and had to delete everything on my iphone. I backed up my iphone a few nights before and made sure that everything was saved onto my computer. When I came home aft

  • Changing Audio to Spanish

    How do you change audio output to Spanish from English?

  • How to Total(Sum) of HH:MM (Varchar2) Format in the Table Region Style of OAF

    Hi All. I have Requirement to Calculate the Total Duration in OAF Table Style Region. Check In Check Out Total Hours (HH:MM) 08:50:59 15:29:56 6:38 07::02:18 17:05:10 10:02 08:20:56 16:28:33 8:07 Total 24:47 If i Could not Able to Sum of 6:38+10:02+8

  • Nationwide.co.uk and Safari

    Hello, Has anyone managed to run the latest version of safari and be able to use Nationwide.co.uk internet banking? I have JAVA 1.4.2 and the Java 5.0 update 2 installed, but it will not even open the logon page for me within the internet banking web

  • Major Workflow for Sports Team- H.264 and ProRes

    I need some help hammering through my media management and workflow... I'm trying to create an effiecient workflow to work with a sports team. Currently I'm recording my games with a BlackMagic H.264 Pro Recorder, 720p 60fps, creating a 8-14 gb .mp4