So I am working with the file explorer and I came across another problem.
Server side I am writing out the following xml

<root>
  <node label="Root Directory">
    <node label="bin" path="H:\JRun4\bin" isBranch="false"/>
    <node label="docs" path="H:\JRun4\docs" isBranch="true"/>
    <node label="jnbridge" path="H:\JRun4\jnbridge" isBranch="true"/>
    <node label="jre" path="H:\JRun4\jre" isBranch="true"/>
    <node label="lib" path="H:\JRun4\lib" isBranch="true"/>
    <node label="logs" path="H:\JRun4\logs" isBranch="false"/>
    <node label="servers" path="H:\JRun4\servers" isBranch="true"/>
    <node label="uninstall" path="H:\JRun4\uninstall" isBranch="true"/>
    <node label="verity" path="H:\JRun4\verity" isBranch="true"/>
  </node>
</root>

>
> __,_._,_
>

My 1st problem is when its an array collection I know how to get the 1st
item (getItemAt(0)) but here i have no idea how to tell the tree to expand.

            private function buildTree(event:ResultEvent):void {
                _treedata = new XML(event.result);
                tree.expandChildrenOf(_treedata,true);
            }

Also, now that I have my basic structure, i am not quite sure what the
approach is. Here i have a listener function so that when the folder is
opened we can make another trip the server.

            private function onItemOpen(event:TreeEvent):void {
                var path:String = event.it...@path;
                //trip to the server.
            }

** on that trip back to the server do I have a different function that re
writes my xml strucutre or am I just inserting the new xml block somewhere?
If I am just inserting how do I replace the block

<node label="logs" path="H:\JRun4\logs" isBranch="false"/>

If anyone has an example of what I am doing please let me know.

Reply via email to