【问题标题】:Flex gives blank page when testingFlex 测试时出现空白页
【发布时间】:2011-04-01 21:57:44
【问题描述】:

我今天刚开始使用 flex。我得到的只是一个空白页面。但是如果我右键单击该页面,我可以看到 FlashPlayer 已加载。

下面是测试代码。

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="500" minHeight="400" width="500" height="400" creationComplete="testFlex()">

    <fx:Script>
        <![CDATA[
            private function testFlex():void{
                trace("WORKING!");
            }
        ]]>
    </fx:Script>
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:Button x="199" y="199" label="Test" id="test"/>


</s:Application>

我希望至少能看到这个按钮。

编辑:如果我从 bin-debug 文件夹打开 html,它会显示?但是当我从 flex 测试时,它只显示一个空白页。

【问题讨论】:

    标签: actionscript-3 apache-flex flex4


    【解决方案1】:

    我搞定了。必须安装调试播放器。

    【讨论】:

    • 当你有机会时,别忘了接受这个作为解决方案。
    猜你喜欢
    • 2022-12-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-05
    • 2015-07-28
    • 2021-01-10
    • 2023-01-05
    • 2015-02-06
    相关资源
    最近更新 更多