1 Reply Latest reply on Aug 8, 2006 3:11 PM by sam luke

    dynamic Object class

    sam luke
      I am currently trying to parse an xml file. After I have parsed the file I need to populate a popup menu.

      I know how to do this statically(which I have included the code below) but I need to do this dynamically from the xml file. Please can somebody help?

      myMenu = new Menu();
      var dp:Object = [{label: "house"}, {label: "garden"}, {label: "road"}];
      myMenu.dataProvider = dp;