Hello,

here are the code snippets:

----------


 <mx:Script>
  <![CDATA[
 function selectRange() {
   ...
        rangesid = ranges.selectedItem.id;
        treeService.url = rangesid + ".xml";
        treeService.send();
  }

        function addTreePart(event) {
        ...

}
  ]]>
  </mx:Script>

  <mx:HTTPService id="rangesService" url="ranges.xml" resultFormat="object" 
showBusyCursor="false"/>
  <mx:HTTPService id="treeService" url="" useProxy="false" resultFormat="xml" 
result="addTreePart(event)" showBusyCursor="false" concurrency="last"/>

  <mx:TabNavigator> 
  <mx:Canvas>

    <mx:List id="ranges" change="selectRange()">
 
  
<mx:dataProvider>{mx.utils.ArrayUtil.toArray(rangesService.result.ranges.range)}</mx:dataProvider>
 </mx:List>

   </mx:Canvas>

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

-------------------


function selectRange selects the selected Tree-File in the list and starts the 
treeservice. 
addTreePart converts the provided xml data to array treeDP. I debugged these 
functions and everything works fine in here... Clicking on a tree file first 
time, everything 
works all right. But if selecting again the same or another tree file, the tree 
will 
disappear... I checked the array treeDP,
it's contents are built in the right way exactly as in the first run. The 
contents of the new 
tree file are stored correctly. 

Any ideas?

Thanks

Jurek


On 7 Oct 2005 at 8:20, Mink, Joseph wrote:

> 
> When you say that you "load another content," are you trying to add to the 
> existing content, or are 
> you attempting to replace it? Any chance you could show the code snippets you 
> use for the initial 
> insert of content and the secondary insert of content?
> 
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 
> jrab2999
> Sent: Friday, October 07, 2005 4:40 AM
> To: [email protected]
> Subject: [flexcoders] Strange behaviour by tree
> 
> Hello,
> 
> I have some problem with the tree component. If I provide dynamical
> xml data stored into an actionscript array to the dataprovider of the
> tree, at the first run, all works fine. 
> 
> But if I load another content the the array, the tree won't show any
> content anymore, it just disappears. I checked all content code, also
> contents of the provider. Everything fine here.
> 
> Really strange... Any ideas?
> 
> 
> 
> 
> 
> --
> 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 
> 
> *   Visit your group "flexcoders" on the web.
>      
> *   To unsubscribe from this group, send an email to:
>     [EMAIL PROTECTED]
>      
> *   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> 
> 
> 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/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