Try this:

<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"; load="myService.send();">

<mx:HTTPService id="myService" result="myTree.dataProvider = myService.result;" url="http://216.65.201.58/tester.cfm";></mx:HTTPService>

<mx:Tree width="100%" height="100%" id="myTree" change="showData(event.target.selectedItem.backingObject)"></mx:Tree>
<mx:Script>
function showData(item){
mx.core.Application.alert(item.label);
}
</mx:Script>
</mx:Application>


At 04:05 PM 2/22/2005, you wrote:
the problem is I cannot access the label or data pieces of the nodes...

-----Original Message-----
From: Jeff Tapper [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 22, 2005 3:04 PM
To: [email protected]
Subject: Re: [flexcoders] Tree issues



Sure, just last week I worked on a project which dynamically created trees
based on an XML file loaded with mx:HTTPService

What seems to be the problem your having?

At 03:46 PM 2/22/2005, you wrote:
>Has anyone successfully used a data service (HTTPService, Remoting,
>anything) to successfully populate a tree?
>
>I can only get it to work if 1. embed the data in the mxml file OR 2. use
>an actuall XML file.... WITH the SAME data that is coming from my service....
>
>Thanks!
>
>
>----------
>Yahoo! Groups Links
> * To visit your group on the web, go to:
> *
> <<http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/


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


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





Yahoo! Groups Links








Yahoo! Groups Sponsor <http://us.ard.yahoo.com/SIG=129dlqemi/M=324658.6070095.7083352.3001176/D=groups/S=1705007207:HM/EXP=1109192759/A=2343726/R=0/SIG=12ij2449s/*http://clk.atdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1109106359225806> []

<http://us.ard.yahoo.com/SIG=129dlqemi/M=324658.6070095.7083352.3001176/D=groups/S=1705007207:HM/EXP=1109192759/A=2343726/R=1/SIG=12ij2449s/*http://clk.atdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1109106359225806>

Get unlimited calls to

U.S./Canada


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


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


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





Reply via email to