开发者

XML e4x and creating arrays in Flex

开发者 https://www.devze.com 2023-04-01 15:47 出处:网络
I have a http service producing the following resutlssvcSessionCreate.lastResult.children()) I\'m looking for a way to use those results in my application.Currently the only way I know how to do it i

I have a http service producing the following resutls svcSessionCreate.lastResult.children())

I'm looking for a way to use those results in my application. Currently the only way I know how to do it is using a datagrid - and I don't want to do that this time. I want to be able to drill down to a particular node in the xml.

How do I create a variable that I can use. I was trying this but it's not working.

private var myXMLListCollection:XMLListCollection = new XMLListCollection();
        myXMLListCollection.source ="{XMLList(svcSessionCreate.lastResult开发者_开发知识库.children())}";

Any ideas? Thanks in advance!


Try using a tree control. Here's an example to get you started. http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-openitems-property/

0

精彩评论

暂无评论...
验证码 换一张
取 消