title: Trying to convert a cftree to be used in Flex project.
body: <p>Flex noob here. I have an old ColdFusion page that I need to convert for a Flex project and I wondered if any one had any advice or resources they recommend for doing this? I just need the following code to work in a mxml page (and/or action-script page if necessary.) </p>
  
  <pre><code>&lt;cfform name="theForm" height="100%"  width="100%" timeout="#Application.formTimeout#" format="flash" skin="haloblue" wmode="transparent" 
  action="" onload="formOnLoad();#selectText#" &gt;
  &lt;cfinclude template="/includes/generalFunctions.cfm"&gt;
  &lt;cfformitem type="script"&gt;
  
      &lt;cfinclude template="/includes/as/filter.as"&gt;
      &lt;!--- Function runs onload ---&gt;
      function formOnLoad() {
  
          &lt;!--- Adjust the screen size ---&gt;
          adjustScreenSize(mainContainer,theForm);
      }
  &lt;/cfformitem&gt;
  &lt;cfformgroup id="mainContainer" type="panel" height="440" width="700" style="#panelStyle#" label="Months End Reports"&gt;
      &lt;cfformitem type="text" style="text-align:center;#textHeaderStyle#"&gt;Months End Reports List&lt;/cfformitem&gt;
      &lt;cfformitem type="text" style="text-align:center;#textStyle#"&gt;Click on the file below to display the report!&lt;/cfformitem&gt;
      &lt;cfformgroup type="horizontal" style="horizontal-align:center;"&gt;
          &lt;cftree     name="MonthsEndReport"
                      format="flash"
                      height="300"
                      width = "400" 
                      font="Verdana"
                      highlighthref="No"
                      HScroll="no"
                      VScroll="no"
                      completepath="no"
                      lookandfeel="windows"
                      required="yes"
                      appendkey="no"&gt; 
                  &lt;cfoutput group="reportType" query="finalResult"&gt;
                      &lt;cftreeitem value="#ReportType#" parent="MonthsEndReport" expand="yes"&gt;
                          &lt;cfoutput&gt;
                              &lt;cftreeitem
                                  value=""
                                  display="#Name#"
                                  parent="#reportType#"
                                  img="document"
                                  target="_blank"
                                  href="sample.cfm?template=#test#.html"&gt;
                          &lt;/cfoutput&gt;
                  &lt;/cfoutput&gt;
          &lt;/cftree&gt;
  
      &lt;/cfformgroup&gt;
  &lt;/cfformgroup&gt;
  </code></pre>
  
  <p></p>
  
  <p>Thanks for any help!</p>