对于简单的 Flex 应用程序来说文件大小惊人地大

发布于 2024-11-09 06:36:16 字数 1201 浏览 3 评论 0原文

我最近刚刚从 Adob​​e 下载了 Flash Builder 4.5 for PHP 试用版。

我创建了几个非常简单的项目只是为了了解这个新软件的要点,并且对所有这些都非常乐观。

但最后 3 个项目(我所说的项目实际上只是简单的单状态屏幕)现在下载速度非常慢,这是因为现在用户需要下载 2MB (!!) 的数据才能获得真正简单的东西!

我以为我做错了什么,但是,当我创建这个项目时,我将要展示其代码,Firebug 告诉我每次打开应用程序时都会下载2MB,我认为有一些东西真的错了。

<?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"
               width="400" height="400" minWidth="400" minHeight="400">
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:Panel x="50" y="41" width="301" height="286">
        <s:Label x="96" y="81" fontSize="15" text="Really pissed off"/>
    </s:Panel>
</s:Application>

就是这样。一个面板和一个标签。之前几乎是即时的。现在,用户必须下载 2MB 的数据才能将其可视化。

这里发生了什么,伙计们?

PS:我知道 RSL,但我不明白的是我如何能够在同一个 IDE (FB 4.5) 中制作这样的应用程序,现在每当我制作即使是像上面所示的简单应用程序,我也会得到荒谬的等待/加载时间。这完全是禁止的。我正在考虑切换回 Flex Builder 3。

I just recently downloaded the trial version of Flash Builder 4.5 for PHP from Adobe.

I created a couple of very simple projects just to get the gist of this new software and was quite optimistic about all of it.

But the last 3 projects (by projects I mean just simple one-state screens really) are now really slow to download and that is due to the fact that now users are required to download 2MB (!!) worth of data for real simple stuff!

I was thinking that I was doing something wrong but, when I created this project whose code I'm about to show, and Firebug told me that 2MB is being downloaded everytime I open the app I think there's something really wrong going on.

<?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"
               width="400" height="400" minWidth="400" minHeight="400">
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:Panel x="50" y="41" width="301" height="286">
        <s:Label x="96" y="81" fontSize="15" text="Really pissed off"/>
    </s:Panel>
</s:Application>

That's it. One panel and one label. Before it was virtually instant. Now users have to download 2MB worth of data to visualize just this.

What's going on here guys?

P.S.: I know about RSL's but what I don't get is how I was able to make apps like this in this very same IDE (FB 4.5) and now whenever I make even simple apps like the one shown above I get ridiculous waiting/loading times. That's totally prohibitive. I'm thinking about switching back to Flex Builder 3.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅沫记忆 2024-11-16 06:36:16

您必须使用 swf 的调试版本。要减小大小,请尝试删除不需要的 SWC。在你的项目中,如 osmf、textLayout 等。

You must be using the debug version of the swf. To reduce the size try to remove the swc that are not reqd. in you project like osmf, textLayout etc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文