here is my AS:
private function getSelectedNodeFromSelectedItem( searchXML:* , selectedItem:Object ):XMLList
{
var foundNode:*;
for each( var prop:* in searchXML )
{
if( [EMAIL PROTECTED] == [EMAIL PROTECTED] )
{
foundNode = XMLList( prop );
break;
}
else if( [EMAIL PROTECTED] == "folder" )
{
getSelectedNodeFromSelectedItem( prop.node );
}
}
return foundNode;
}
this is what the XML Looks like: (dataProvider to a Tree )
<node label='flash platform' id='1' type='folder' >
<node label='www.somelink.net' id='2' type='item' feedLocation='http://www.somelink.net' />
<node label=somelink' id='3' type='item' feedLocation=' http://www.somelink.com' />
</node>
Say for instance you selected the 2nd child of the flash platform node. it would spit back:
<node label=somelink' id='3' type='item' feedLocation=' http://www.somelink.com' />
Say for instance you selected the root node which is a folder. it would spit back:
<node label='flash platform' id='1' type='folder' >
<node label='www.smithaaronlee.net' id='2' type='item' feedLocation='http://www.smithaaronlee.net' />
<node label='teguh mualim' id='3' type='item' feedLocation='http://www.capcai.com' />
</node>
It seems to be working correctly to the point where it knows that the right node is selected, but then the return value is of type [object]. I can't figure out how to get it back as a string..
From the results that are spit back from that method I will pass that value to another parsing method to just grab all the individual items (type=item) in the selected node. See what I'm going for?
Maybe I need to cast the xml into an ArrayCollection?
thanks
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Software development tool | Software development | Software development services |
| Home design software | Software development company |
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___

