Hello clubbers,

I have a problem with refreshing a tree:

Look at my code:
----

script

var treeDP:XML;

function selectRange() {
  rangesid = ranges.selectedItem.id;
  treeDP = new XML();
  treeService.clearResult(true);
  treeService.url = rangesid + ".xml";
  //tree.invalidate();
  treeService.send();
}

write someting into treeDP....

finish.

/script

<mx:Tree id="tree" change="changeTree(event)"
liveScrolling="true"><mx:dataProvider>{treeDP}</mx:dataProvider></mx:Tree>

---

If I later write another content to treeDP, the tree just disappears.
Why this? The strange thing is, debugging approves that the new
contents are stored in treeDP. Should I use a XMLCollection for treeDP
instead of XML? Why the tree disappears but content is there??
Is it a bug?

Thanks for help.

Re, Jurek





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




Reply via email to