0 Replies Latest reply on Sep 8, 2011 4:27 PM by madhooper

    trying to create title view for documents directory

    madhooper Level 1

      I'm currently displaying the docs directory in a datagrid but my client would like to be able to be able to toggle between datagrid to tile view. Can anyone help with this? here's my poc code. Thanks

       

      <!--<?xml version="1.0" encoding="utf-8"?> 

      <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml">

       

       

      <mx:HDividedBox> 

      <mx:FileSystemTree id="tree"  

         width="200" height="100%" 

         directory="{File.documentsDirectory}" 

         enumerationMode="directoriesOnly" 

         change="list.directory = File(tree.selectedItem);"/>     

       

      <mx:FileSystemDataGrid id="dataGrid"  

         width="100%" height="100%" enumerationMode="filesOnly"

         directory="{File.documentsDirectory}"/> 

      </mx:HDividedBox> 

       

      <mx:FileSystemList id="list" directory="{File.documentsDirectory}" enumerationMode="filesOnly"

         width="100%"/>

       

       

      </mx:WindowedApplication>-->