fill combobox to an xml file

I'm trying to fill a combobox with data from an xml file, this is supposed to be a simple right to face, but for some reason I can't get it to work. That's what I do:

I found a solution!

I don't understand the logic behind it, but it works!

"I removed the dataProvider ="{cbData}"and labelField="@label "attributes of the

private void lookUpDataHandler(evt:ResultEvent):void {}
denomination.labelField = "label";
denomination.dataProvider = evt.result.allrows.singlerow;
}

I someone can explain the reason why the previous code does not work, please do so.

Tags: Flex

Similar Questions

  • Fill Combobox with nested XML

    Hello!
    How can I fill a ComboBox with an XML retrieved via a HTTPService?

    My XML looks like

    <? XML version = "1.0" encoding = "iso-8859-1? >
    < xml >
    < node label = value '1' = 'a' / >
    < node label = value "2" = "b" >
    < node label = "21" value = "ba" / >
    < node label = '22' value = 'bb' / >
    < node label = "23" value = "bc" / >
    < / node >
    < node label = '3' value = 'c' / >
    < node label = "4" value = "d" / >
    < node label = '5' value = 'e' / >
    < / xml >

    The output you want in the drop-down list would be

    one
    b
    -ba
    -bb
    Colombia-British
    c
    d
    e

    < mx:ComboBox id = "selectedLevel" dataProvider = labelField 'structure of {}"="label"/ >

    'structure' is an XMLListcollection, looks like my Resulthandler

    structure = new XMLListCollection (event.result.node);


    Can someone give me a hint what is missing?

    Thank you.

  • Fill ComboBox with XML data

    I would like to fill a ComboBox with data in a simple xml file like this. It's probably quite newbie question, but I couldn't find the answer to the search in this forum and the documentation up to date.


    < root >
    option 1 < item > < / item >
    option2 < item > < / item >
    Option3 < item > < / item >
    < / root >


    I would be very grateful if someone tell me how the ComboBox control to retrieve data from XML file. Thank you!

    I found a way to do it. Here is the code I use to populate a ComboBox control with dynamically loaded XML data (the XML content is in the first post).
    I'm sorry that I have opened a topic for this fundamental question. In any case I hope that the thread is useful for someone. If you think that there is something wrong with the code below, please post a reply.



    http://www.Adobe.com/2006/mxml"creationComplete ="parseXML (); » >


    public var myXML:XML
    public var myLoader:URLLoader

    function parseXML (): void {}
    myXML = new XML();
    var XML_URL:String = 'content.xml ';
    var myXMLURL:URLRequest = new URLRequest (XML_URL);
    myLoader = new URLLoader (myXMLURL);
    myLoader.addEventListener ("complete", xmlLoaded);
    }

    function xmlLoaded(evtObj:Event):void {}
    myXML = XML (myLoader.data);
    combo.dataProvider = myXML.children ();
    }

    ]]>




  • ComboBox in load XML into a new file

    I have an XML file that contains a node with a reference to another XML file. I am trying to load the first XML file in a ComboBox control. When the user makes a selection, the new XML file will load in a TileList/VBox. I can't understand how to move the XML file referenced from the user selection and display the results of this new XML file.

    So, this is the flow:

    1. the user chooses the catalog they would like to see go a CombBox (which is filled by a XML file)
    2 the categories referenced in #1 also point to another .xml file
    3. the user selects in the drop-down list
    4. the appropriate XML file is passed and displayed in a TileList/VBox

    I hope I'm making sense...

    Do you mean something like this:

    -Main file: -.


    http://www.Adobe.com/2006/mxml"layout ="absolute"creationComplete =" loadNewCategory (category.selectedItem) ">"




    [Bindable]
    public var productData:XML;

    private void loadNewCategory(category:Object):void
    {
    var loader: URLLoader = new URLLoader (new URLRequest (category.@file));
    loader.addEventListener (Event.COMPLETE, function(e:Event):void
    {
    productData = XML (loader.data);
    });
    }
    ]]>

    -the categories.xml file: -.






    -cheap.xml: -.







    -cool.xml: -.





    -fast.xml: -.






  • Fill the tree with complex external XML file control

    Hi all. I've been combing through forums for two days and have not been able to find a solution to my problem. I'm trying to populate a control of the tree with an external xml file, but the xml file is not a simple. It is complex, and I don't know how to get the tree to display these data. I have attached the code. Can someone take a look and let me know how I could get this to work? Thank you!

    What does not work?

    Complexity of the XML is not, in itself, an issue for the tree.

    Also, I recommend using straight XML, unless specifically, you need Collection features.

    Tracy

  • Fill ComboBox with external data

    I have this drop-down list box:

    < mx:ComboBox change = "changeEvt (event)" x = "134" y = "48" > "
    < mx:Array >
    < mx:Object label = 'AM' data = 'ALL' / >
    < mx:Object label = "BM" data = "CM" / >
    < mx:Object label = "CM" data = "FROM" / >
    < / mx:Array >
    < / mx:ComboBox >

    I would like to do this fill a XML file, for example I import

    < empTypes >
    < laborClass lc = 'AM' <>/.
    < laborClass lc = 'BM' <>/.
    < laborClass lc = 'CM' <>/.
    < / empTypes >

    .. .in an XMLList, named said "empTypes" what is the syntax I use for this insert in the comboBox? I don't know how to do so that he can enter.

    M.

    I changed it to filter1=event.currentTarget.selectedItem.@lc; and that the time seems to work :)

  • Creation of XML file using blackberry waterfalls

    Hi all

    I use blackberry stunts to create a xml file, which will consist of data QMessage.

    The code that I am by train is as below: -.

       foreach (const Message &message, inboxMessages) {
    
        // Creating QVariant Map for each Message object
    
        QVariantMap messageMap;
        messageMap["address"] = QVariant();
        messageMap["date"]
        messageMap["subject"] = QVariant(message.subject());
        messageMap["body"] = ...........
    
        / Adding this object to Qvariant List
        QVariantList messageList= QVariantList() << QVariant(messageMap);
    
        }  // end of for each loop
    
    QVariantMap topLevelMessageMap;
    topLevelMessageMap[".root"] = QVariant("messages");
    topLevelMessageMap["message"] = QVariant(messageList);
    QVariant myData = QVariant(topLevelMessageMap);
    
    // Retrieve the working directory, and create a temporary .xml file in that
    // location
    QDir home = QDir::home();
    QTemporaryFile file(home.absoluteFilePath("myXMLFile.xml"));
    
    // Open the file that was created
    if (file.open()) {
        // Create an XmlDataAccess object and save the data to the file
        XmlDataAccess xda;
        xda.save(myData, &file);
    

    IN the above code, I create mannualy xml tags using the QVariant class.

    However is it possible where xml schema can be used from xslt/xsd and it may be analyzed to generate xml data with data to fill the Message class in accordance with the business logic.

    Please suggest

    What would you win? in my opinion this isn't a valid usecase for xslas you must complete all the values manually in any case.
    You can use xsl with qxmlquery xmldataaccess has no support in his favor.

  • How to download new products from my store in an XML file?

    Hi everyone, I'm back. I've created a store for a client and we have everything works but someone told me that it is easier to download products in an XML file if you have a ton of them. So I tried to understand, but the only thing I can find on the internet, it's that I'm doing it wrong.

    Here's what I do:

    Under "E-commerce" on the left, click on 'Products' and then on this page, I click on "import". I clicked on "Download Import Template" and when I opened it the first thing I noticed, is that it isn't a .xml file. It is a .xls file (don't know if that makes a difference). The second thing I noticed is that he has confused me more than I expected. There are 7 tab on this document and I can find no explanation for the way they set up this document. The 7 tabs just for ease of Adobe he explain to the customer/user? or I have to configure my document in this way until I can download products?

    Because I really didn't know what I was doing, I did it as much as I have and then tried to download. I clicked on "Choose file" in the "File to import" section and select "Auto-Detect" for the file type. I click Next at the bottom of the page and it gave me this message

    «ERROR: [No Name found].» "Mandatory (Processus a échoué sur le dossier d'importation: [2] s'il vous plaît assurer colonnes 1) are present, 2) all products have product Codes defined, which must be unique (if the importation of goods)"

    I have fixed everything that I could and tried everything a hundred times but still get this same error message. If anyone can help I would love you forever, even if you can point me to a place on the web that would help.

    Thank you very much in advance for any help. See you soon.

    Hello. Don't do no XML - it's a spreadsheet, the information needs to go as required in the fields in the right format.

    If the documentation of the BC doesn't make any sense to you is better to create a product in admin. Fill in as many things as possible - maybe the dummy data. That export and you will have a complete example of what to put in the worksheet.

  • Where the glossary .xml file

    Hi, I tried to locate the .xml file that fills the glossary widget so that I could copy and create my own modifiable .xml file to import.

    Can someone tell me where I could find?

    Thank you

    Mark

    Hmmm, this example XML file is in the properties of himself? I thought you wanted all of the XML file for all of the words that are in the example? Those that are embedded in the interaction.

  • Error loading XML file in the column of XMLTYPE through SQL loader

    Hi gurus,

    I am trying to load the XML file into the column of XMLTYPE through SQL Loader but the errors themselves. Here are the details

    Databases
    SQL*Plus: Release 10.2.0.3.0 - Production on Tue Jul 24 17:17:55 2012
    
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    
    
    Connected to:
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for Linux: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    The table structure
    CREATE TABLE TH_XML
    (
      COL_ID_1   VARCHAR2(100 BYTE),
      IN_FILE_1  XMLTYPE
    )
    XMLTYPE IN_FILE_1 STORE AS CLOB (TABLESPACE SMDAT)
    XML (simple.xml) file
    <?xml version="1.0"?>
     <catalog> 
     <book id="bk101"> 
               <author>Some Author1</author> 
               <title>Some Title1</title> 
               <genre>Computer</genre> 
               <price>44.95</price> 
               <publish_date>2000-10-01</publish_date> 
               <description>creating applications</description> 
       </book> 
       <book id="bk112"> 
               <author>Some Author2</author> 
               <title>Some Title2</title> 
               <genre>Computer</genre> 
               <price>49.95</price> 
               <publish_date>2001-04-16</publish_date> 
               <description>Microsoft Visual Studio 7 is explored in depth</description> 
    </book> 
    </catalog>
    Control file
    LOAD DATA
    INFILE 'c:\simple.xml'
    APPEND
    INTO TABLE TH_XML 
    XMLTYPE(in_file_1)
    (
    col_id_1 filler  CHAR (100),
    in_file_1 LOBFILE(CONSTANT "c:\simple.xml") TERMINATED BY EOF
    )
    LOG file
    SQL*Loader: Release 10.2.0.3.0 - Production on Tue Jul 24 16:42:25 2012
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Control File:   c:\my_file.ctl
    Data File:      c:\simple.xml
      Bad File:     c:\simple.bad
      Discard File:  none specified
     
     (Allow all discards)
    
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array:     64 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    
    Table TH_XML, loaded from every logical record.
    Insert option in effect for this table: APPEND
    
       Column Name                  Position   Len  Term Encl Datatype
    ------------------------------ ---------- ----- ---- ---- ---------------------
    COL_ID_1                            FIRST   100           CHARACTER            
      (FILLER FIELD)
    IN_FILE_1                         DERIVED     *  EOF      CHARACTER            
        Static LOBFILE.  Filename is c:\simple.xml
    
    Record 1: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 2: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 3: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 4: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 5: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 6: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 7: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 8: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 9: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 10: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 11: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 12: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 13: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 14: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 15: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 16: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 17: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 18: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 19: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 20: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 21: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 22: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 23: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    
    Table TH_XML:
      0 Rows successfully loaded.
      23 Rows not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    
    
    Space allocated for bind array:                    256 bytes(64 rows)
    Read   buffer bytes: 1048576
    
    Total logical records skipped:          0
    Total logical records read:            23
    Total logical records rejected:        23
    Total logical records discarded:        0
    
    Run began on Tue Jul 24 16:42:25 2012
    Run ended on Tue Jul 24 16:42:26 2012
    
    Elapsed time was:     00:00:00.23
    CPU time was:         00:00:00.05
    I get error ORA-00904: "SYS_NC_ROWINFO$": invalid identifier in the logfile (mentioned above). Could someone help me know where I am doing wrong?

    Thanks in advance.

    Published by: 876991 on 24 July 2012 14:18

    Hello

    This remove the control file:

    XMLTYPE(in_file_1)
    

    It is used only if the target table is an array of XMLType object.

    For an XMLType column LOBFILE is sufficient, for example:

    LOAD DATA
    INFILE *
    APPEND INTO TABLE TH_XML
    (
     col_id_1  CHAR (100),
     in_file_1 LOBFILE(CONSTANT "c:\simple.xml") TERMINATED BY EOF
    )
    begindata
    MYID1
    

    It tells SQL * Loader data consisting of one record with COL_ID_1 = "MYID1" and content = "c:\simple.xml" IN_FILE_1

    SQL> CREATE TABLE TH_XML
      2  (
      3    COL_ID_1   VARCHAR2(100 BYTE),
      4    IN_FILE_1  XMLTYPE
      5  );
    
    Table created.
    
    SQL> host sqlldr control=test.ctl
    Username:dev
    Password:
    
    SQL*Loader: Release 11.2.0.2.0 - Production on Mer. Juil. 25 01:30:46 2012
    
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    
    Commit point reached - logical record count 1
    
    SQL> set long 5000
    SQL> column col_id_1 format a15
    SQL> select * from th_xml;
    
    COL_ID_1        IN_FILE_1
    --------------- --------------------------------------------------------------------------------
    MYID1           
                     
                     
                               Some Author1
                               Some Title1
                               Computer
                               44.95
                               2000-10-01
                               creating applications
                       
                       
                               Some Author2
                               Some Title2
                               Computer
                               49.95
                               2001-04-16
                               Microsoft Visual Studio 7 is explored in depth
                    
     
    
  • Get the same xml file

    Hi all

    There are 2 xml files with the same name but in different locations. I have created physical and logical diagrams (the schema and the schema of work are the same for both). Now in the designer when I reverse engineered for 1 xml file which is filled correctly, but for the 2nd file xml data store is is filled with 1 xml file.

    How to solve this problem?


    Kind regards
    Sourav

    It could be caused by a cache issue...
    your first file is still in the cache...

    If I remember correctly there are commands to manage the cache provided by pilot ODI XML...

    Something like SYNC FROM a FILE
    you run a procedure...

    Hope to help

    Concerning

  • With the help of several xml files to complete the 1 form.

    Hi all

    Thank you for reading this.

    My scenario is that I have a form which is the inspection report for a product.

    Once the technician has completed its inspection they fill out the form and send it (which saves the form as xml data in a specific folder on our network.

    Now 1 customer may have up to 10 items to be inspected on a single order. What I have to do is to create a customer report showing them the necessary work on their items.

    Basically, I need to be able to import up to 10 xml files of inspection report in 1 report form.

    I was looking for this with the authorities, but I'm wrong.

    I can get 1 data file imported by using xfa.host.importdata("filename")

    but this method seems to reset the form after the first call to the second instance of the form in the form of report receives all the data. (if this makes no sense at all)

    How can I configure my report form so I can fill different instances of the subform from different xml files?

    that is my xml files names are formatted with call number and line number, e.g. 42E11134 - 5.xml would call no. 42E11134 line 5.

    the folder on the network would have to be 42E11134-10 42E11134-1 (not superior because we cap the maximum points on the same order)

    I need to figurentsur instance subform 1, 42E11134-5 42E11134-1 data displayed on the subform instance 5 etc etc and also recognition of the number of necessary instances (but this could be selected by the user).

    If the authorities do not work I am happy to have 10 separate subforms with different names, but must exist within a single form.

    You can only import a single XML file. You have an xml file that has multiple instances of data, but it must be a single xml file.

    So you should find a way to combine all these into a single xml files then do the import.

    Paul

  • Complete textfield with a greater value to an xml file

    Hi all, I have an actionscript by extracting data from an xml file. As you can see in the code below, I textFields have been created on the fly.

    I need to have the 'resultsField' textfield to be filled by programming with the largest value of 'column1' or 'column2 '.

    Thank you all for the great service!

    --------------------- XML  ------------------------

    <? XML version = "1.0" encoding = "utf-8"? >
    < cat >
    < title >
    USD
    < /title >
    < CAT >
    0.5879
    < / cat >
    < CAT >
    0.9875
    < / cat >
    < / cat >

    -ACTIONSCRIPT 2.0-

    this.createTextField("column1",25,0,50,200,30);
    this.createTextField("column2",25,325,50,200,30);
    this.createTextField("resultsField",20,0,105,200,30);

    Column1.html = true;
    Column2.html = true;
    resultsField.html = true;

    var my_xml = new XML();
    my_xml. OnLoad = {function (success)}

    If (success) {}
    RootNode = my_xml.firstChild;
    Column1.htmlText = RootNode.childNodes [1] .firstChild;
    Column2.htmlText = RootNode.childNodes [2] .firstChild;

    trace (column1. (Text);
    trace (column2. (Text);
    } else {}
    trace ("Buah!");
    }

    };
    my_xml.ignoreWhite = true;
    my_xml. Load ("quotes.xml");


    resultsField.htmlText = 'value here ';

    use:

    This.createTextField("hello_txt",0,10,10,100,20) ("column1", this.getNextHighestDepth (), 0,50,200, 30);
    This.createTextField("hello_txt",0,10,10,100,20) ("column2", this.getNextHighestDepth (), 325,50,200, 30);
    This.createTextField("hello_txt",0,10,10,100,20) ("column3", this.getNextHighestDepth (), 0,80,200, 30);
    This.createTextField("hello_txt",0,10,10,100,20) ("column4", this.getNextHighestDepth (), 325,80,200, 30);
    This.createTextField("hello_txt",0,10,10,100,20) ("resultsField", this.getNextHighestDepth (), 200,125,200, 30);

    Column1.html = true;
    Column2.html = true;
    Column3.html = true;
    column4.html = true;
    resultsField.html = true;

    var my_xml = new XML();
    my_xml. OnLoad = {function (success)}

    If (success) {}
    RootNode = my_xml.firstChild;
    Column1.htmlText = RootNode.childNodes [1] .firstChild;
    Column2.htmlText = RootNode.childNodes [2] .firstChild;
    Column3.htmlText = RootNode.childNodes [3] .firstChild;
    column4.htmlText = RootNode.childNodes [4] .firstChild;

    resultsField.htmlText = maxF ([Number (stripF (column1.text)), Number (stripF (column2.text)), number (stripF (column3.tex t)), Number (stripF (column4.text))]);

    trace (column1. (Text);
    trace (column2. (Text);
    } else {}
    trace ("Buah!");
    }

    };
    my_xml.ignoreWhite = true;
    my_xml. Load ("quotes.xml");

    function maxF(a:Array):Number {}
    Max: var number = [0];
    for (var i: Number = 1; i
    If (a [i] > max) {}
    Max = a [i];
    }
    }
    maximum return;
    }
    function stripF(s:String):String {}
    Return s.split("").join("").split("\n").join("").split("\r").join("");
    }

  • HTMText XML file format

    I'm trying to figure out how I can format a bulleted list that is called from an XML file

    It's all the filling of an XML file. The pop up balls are brought html into a Flash htmltextfield. I was able to put the other text, just not the pop up of information.

    Can I format the CDATA info? Any help is greatly appreciated!

    XML file:

    < person >

    < ID > 34 / < ID >

    < name > < / name >

    < /Title > < title > supervisor

    < popup > <! [CDATA [< font size = "14px" color = "#F0ECEC" > < ul > < li > Oversee RT & amp; content D intranet site and development < /li > < li > media charts training project manager and designer < /li > < li > presentation skills of developer/instructor < /li > < /ul > < / police >]] > < / popup >

    < email > < / Email >

    < ManagerID > < / ManagerID >

    < / person >

    ActionScript:


    function Create(event:Event):void {}
    xmlData = new XML (event.target.data);
    xmlData.ignoreWhitespace = true;

    popupList = XML (event.target.data). Person.Popup.Text ();



    function buttonID06Over(e:MouseEvent) {}
    addChild (popUp01);
    popUp01.PopUpTextID00.htmlText = popupList [6];
    }
    function buttonID06Out(e:MouseEvent) {}
    removeChild (popUp01);
    }


    of course you can.  in fact, for the control of maximum size, you would use css and which applies only to the textfields compatible html.

  • by using an XML file to load an XML file

    Hello

    I have a menu that is based on xml. If you click on a button in this menu, I want to read another xml file and then fill the page with the images that has been read from the second XML file. I'm getting one from the second. The error I get is text = Error #2124: loaded file is an unknown type. Is it because I can't use an XML file to read another XML file, or is it because my paths are confusing? I checked my paths several times, but maybe I'm missing something. My script is below.

    Thanks in advance

    var xml

    var menuXmlLoader:URLLoader = new URLLoader();

    var menuXmlList:XMLList;

    menuXmlLoader.load (new URLRequest("xml/xmlLabels.xml"))

    menuXmlLoader.addEventListener (Event.COMPLETE, xmlComplete)

    var thumbXmlLoader:Loader = new Loader();

    the var menu: mcMenu

    function xmlComplete(event:Event):void

    {

    xml = XML (event.target.data);

    menuXmlList = xml.children ();

    for (var i: int = 0; i < menuXmlList.length (); i ++)

    {

    menu = new mcMenu

    menu.menuTxt.text = menuXmlList [i] .attribute ("trackphotos")

    addChild (menu)

    menu.x = 10

    menu.y = i * 30 + 10

    menu.buttonMode = true;

    menu.mouseChildren = false;

    menu.mouseEnabled = true;

    menu.id = i

    trace (menu.id)

    //menu.addEventListener (MouseEvent.CLICK, showThumbs)

    }

    thumbXmlLoader.load (new URLRequest (menuXmlList [1] .attribute ("trackphotos")));

    addChild (thumbXmlLoader)

    }

    and thumbXmlLoader has a complete listener and the listener function that is not called?  show the code.

Maybe you are looking for