Flash Builder 输出为空

发布于 2024-11-02 20:12:04 字数 871 浏览 3 评论 0原文

我是一名 Flash Builder 4 新手,我开始开发一个简单的应用程序,以尝试 FB 4。但是,我遇到了问题。

当编译并运行应用程序时,输出完全是空白的。 HTML 包装器页面确实包含 Flash 应用程序,但内容是空白的,即使我在舞台上有一个简单的标签组件。

我还注意到,当我右键单击 Flash 对象时,会出现默认上下文菜单,显示“放大”、“缩小”、“显示全部”等...默认情况下从应用程序中删除的选项。

如果您有兴趣,这是我的代码,尽可能简单。 :)

<?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="955" minHeight="600">

  <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
  </fx:Declarations>

  <s:Label x="100" y="100" text="Hello World" fontWeight="bold" fontSize="18"/>
</s:Application>

我正在运行 Flash Player 10.2。任何人都可以帮助解决这个问题吗?

谢谢您的宝贵时间,
斯普里诺724

I am a Flash Builder 4 noobie here, and I began working on a simple application, to try out FB 4. However, I am having a problem.

When a compile and run the application, the output is entirely blank. The HTML wrapper page does contain the flash application, but the content is blank, even though I have a simple label component on the stage.

Also I noticed that when I right-click on the flash object, the default context menu appears, displaying the "Zoom In", "Zoom Out", "Show All", etc... options which are removed from the application by default.

If you are interested, here is my code, as easy as it gets. :)

<?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="955" minHeight="600">

  <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
  </fx:Declarations>

  <s:Label x="100" y="100" text="Hello World" fontWeight="bold" fontSize="18"/>
</s:Application>

I am running Flash Player 10.2. Can anyone help work out this issue?

Thank you for your time,
spryno724

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

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

发布评论

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

评论(1

左秋 2024-11-09 20:12:04

虽然很难准确地说,但我想我理解这个问题。

我假设您正在从本地计算机加载 swf 文件。(文件:协议)。默认情况下,此行为被视为安全违规,因此对于开发,您需要使用 -use-network=false 编译器设置。这将允许您从文件系统加载 swf 文件。您可能想删除它。一旦您将其移植到生产环境中。

Although it would be difficult to be exact, I think I understand the issue.

I assume you are loading your swf file from local machine.(File: protocol). By default this behavior is considered a security violation and hence for development you need to use -use-network=false compiler setting. This will allow you to load your swf file from file system. You might want to remove this. once you are porting it to production.

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