Hi All,
I’m trying to use Menu component to display the xml contents, but only getting [type function] everywhere.
note.xml contains : [color=darkorange]<?xml version=“1.0” encoding=“ISO-8859-1”?>
<!-- Edited with XML Spy v4.2 -->
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don’t forget me this weekend!</body>
</note>[/color]
Code on first frame : [color=blue]import mx.controls.;
var myMenuDP:XML = new XML();
myMenuDP.ignoreWhite = true;
myMenuDP.onLoad = function() {
UI.dataProvider = myMenuDP;
TREE.dataProvider = myMenuDP;
UI.show();
};
myMenuDP.load(“note.xml”);*[/color]
[color=#0000ff][/color]
[color=black]where, UI is the instancename of the menu component(FMX 2004).[/color]
[color=black][/color]
[color=blue][color=black]Any help will be appreciated[/color]
Thanks in advance
[/color]*