0 Replies Latest reply on Dec 8, 2008 5:26 AM by WebMinder

    FileSystemTree programatically scroll

    WebMinder
      I use the FileSystemTree control to display a default folder on a users system. The code is executed in the creationComplete event:

      var oFile:File = new File();
      oFile = File.documentsDirectory.resolvePath("WorkingDir");
      fileSystemTree.directory = new File('c:\\');
      fileSystemTree.openPaths = [oFile.nativePath];
      fileSystemTree.selectedPath = oFile.nativePath;

      Everything works fine, the folder is shown as selected, the content of the folder is displayed in the FileDataGrid control. The only problem is that the tree does not scroll down to show the selected folder, and I can't find a way to do so programatically. Did anyone find a solution for the problem, or saw an example that solved this problem?