0

我有几个 4.6 的 Adob​​e Flash Builder 项目。

在主模板 mxml 中,我有这样的东西:

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
                       xmlns:s="library://ns.adobe.com/flex/spark" 
                       xmlns:mx="library://ns.adobe.com/flex/mx"
                       xmlns:dragdrop="org.robotlegs.demos.draganddrop.*"
                       xmlns:view="org.robotlegs.demos.draganddrop.view.*"
                       xmlns:buttons="org.robotlegs.demos.draganddrop.view.controls.buttons.*"
                       creationComplete="this.maximize()"
                       showStatusBar="false"
                       maxWidth="1601"
                       maxHeight="1611">

    <fx:Style>
        @namespace s "library://ns.adobe.com/flex/spark";
        @namespace mx "library://ns.adobe.com/flex/mx";

        s|Application {
            background-alpha:"0.7"; 
            padding: 0px;

        }
    </fx:Style>

    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
        <dragdrop:DragAndDropContext contextView="{this}"/>
    </fx:Declarations>

    <s:Image id="background" width="100%" height="100%" smooth="true" smoothingQuality="high"
             scaleMode="zoom" source="@Embed('theme/assets/MaxBackground.png')"/>

    <s:BorderContainer id="layoutCanvas" width="100%" height="100%" visible="true" backgroundImage="background">

        <buttons:ApplicationClose right="5" top="2" id="applicationClose" />
        <buttons:ApplicationMaximize right="25" top="2" id="applicationMaximize" />
        <buttons:ApplicationMinimize right="45" top="2" id="applicationMinimize" />
        <buttons:Save left="25" top="2" id="saveThisStory" />
        <buttons:SaveAs left="55" top="2" id="saveThisStoryAs" />
        <buttons:AddPage left="85" top="2" id="addPageToStory" />

    </s:BorderContainer>


</s:WindowedApplication>

以前我可以毫无问题地打开它。现在,如果您使用的是 mac os x,adobe flash builder 会冻结并在我的任务管理器或活动监视器中显示没有响应。

我该如何解决这个问题?

4

2 回答 2

0

第一步是卸载 Adob​​e Flash Builder 4.6

原因是您打开了这个选项卡,每次您尝试打开 FlashBuilder 4.6 时,它都会尝试打开此文件进行编辑,从而导致再次出现无响应。

第二步是重新安装Adobe Flash Builder 4.6

原因是因为step1,所以需要重新安装。

第三步是尝试再次打开同一个项目。现在您已经重新安装,有问题的项目不再在您的资源管理器窗口中。

如果这可以解决问题,您可以在此处停止。如果没有,请继续下一步。

第四步是用另一个编辑器打开 mxml,比如 TextEdit 或记事本。

寻找这条违规行

<s:Image id="background" width="100%" height="100%" smooth="true" smoothingQuality="high"
         scaleMode="zoom" source="@Embed('theme/assets/MaxBackground.png')"/>

移除smoothingQuality和smooth属性

<s:Image id="background" width="100%" height="100%" 
         scaleMode="zoom" source="@Embed('theme/assets/MaxBackground.png')"/>

保存文件

第五步,现在尝试使用Flash Builder 4.6打开项目

影响无响应的平滑质量和平滑的原因尚不清楚。

于 2012-03-28T03:12:00.703 回答
0

我刚刚尝试了 Kimsia 的回答,结果成功了!!!

这有点好笑,但这就是原因。我停用了这两个相同的违规属性: smooth="true"而且smoothingQuality="high"FB现在快如闪电了。

希望能帮助到你

于 2012-12-04T16:14:21.927 回答