0

灵活的菜鸟在这里。我有一个旧的 ColdFusion 页面,我需要将其转换为 Flex 项目,我想知道是否有人有任何建议或资源推荐用于执行此操作?我只需要以下代码即可在 mxml 页面(和/或操作脚本页面,如有必要)中工作。)

<cfform name="theForm" height="100%"  width="100%" timeout="#Application.formTimeout#" format="flash" skin="haloblue" wmode="transparent" 
action="" onload="formOnLoad();#selectText#" >
<cfinclude template="/includes/generalFunctions.cfm">
<cfformitem type="script">

    <cfinclude template="/includes/as/filter.as">
    <!--- Function runs onload --->
    function formOnLoad() {

        <!--- Adjust the screen size --->
        adjustScreenSize(mainContainer,theForm);
    }
</cfformitem>
<cfformgroup id="mainContainer" type="panel" height="440" width="700" style="#panelStyle#" label="Months End Reports">
    <cfformitem type="text" style="text-align:center;#textHeaderStyle#">Months End Reports List</cfformitem>
    <cfformitem type="text" style="text-align:center;#textStyle#">Click on the file below to display the report!</cfformitem>
    <cfformgroup type="horizontal" style="horizontal-align:center;">
        <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"> 
                <cfoutput group="reportType" query="finalResult">
                    <cftreeitem value="#ReportType#" parent="MonthsEndReport" expand="yes">
                        <cfoutput>
                            <cftreeitem
                                value=""
                                display="#Name#"
                                parent="#reportType#"
                                img="document"
                                target="_blank"
                                href="sample.cfm?template=#test#.html">
                        </cfoutput>
                </cfoutput>
        </cftree>

    </cfformgroup>
</cfformgroup>

谢谢你的帮助!

4

0 回答 0