ok I got it.. I was just being retarded...

it was as easy as getting the selectedItem as xml (XML(mytree.selectedItem))

then looping through that and just adding nodes that mach my search to an array..



        private function parseSelection( searchXML:* ):void
        {
            for each( var prop:* in searchXML )
            {
                if( [EMAIL PROTECTED] == "item" )
                {
                    itemNodes.addItem( new SubscriptionsNodeItemVO( [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]) );
                }
                else
                {
                    parseSelection( prop.node );
                }
            }
        }



smith





On 9/24/06, aaron smith < [EMAIL PROTECTED]> wrote:
it needs to be recursive or global selector though..

the XML can change, nesting many levels or nesting few levels..

is there a global selector for nodes the the type=="item"?

like...

  myNodes = XML(tree.selectedItem).(@type == 'item');

but on the whole document, not just the root node??






On 9/24/06, EECOLOR < [EMAIL PROTECTED]> wrote:

Or something like this:
 
var nodesFound:XMLList = searchXML..node.(@id == [EMAIL PROTECTED]);
 
Greetz Erik



__._,_.___

--
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

__,_._,___

Reply via email to