Flex 4 版本对应用程序的更改未显示

发布于 2024-08-31 15:58:15 字数 653 浏览 2 评论 0原文

我刚刚接手了一个客户的 Flex 项目,但我无法让应用程序反映哪怕是一个简单的跟踪语句。 在我接手之前,该项目最后一次使用Flash Builder Beta 2环境/sdk成功构建。我有最新发行版本的 Flash Builder 4。

将项目导入 FB4 后,我遇到了大量错误。其中大多数主要是因为从 beta2 到发布版对 sdk 进行了更改。

我纠正的一些事情: - mx 命名空间从library://ns.adobe.com/flex/halo 到library://ns.adobe.com/flex/mx - 视频播放器皮肤:视频播放器组件的许多状态名称已更改,添加了更多必需的状态。还有其他与视频相关的组件和属性名称必须更新。

但我修复了所有这些,应用程序终于能够编译(尽管有一些警告,主要是重复变量类型)

现在唯一的事情是,我对项目所做的任何更改都不会反映在构建中(调试或发布) )。我更改了现有的痕迹,添加了额外的痕迹。什么也没有出现。我什至删除了 main.mxml 中的 applicationComplete 属性。一切仍然运行,就像什么都没有改变一样。

而且我似乎无法调试该应用程序。每当我尝试调试.. flash builder 都会说.. “Swf 应用程序不包含所需的调试信息......”

有人知道我需要如何开始解决所有这些问题吗? 任何帮助或指示将不胜感激。

I just took over a clients flex project and I can't get the app to reflect even a simple trace statement.
Before I took over, the project was last successfully built using the Flash Builder Beta 2 environment/sdk. I have the latest release version of Flash Builder 4.

Upon importing the project into FB4, I got a ton of errors. Most of them mostly because of the changes made to the sdk from beta2 to release.

Some of the things I corrected:
- mx namespace from library://ns.adobe.com/flex/halo to library://ns.adobe.com/flex/mx
- video player skinning: a lot of the state names for the video player component had been changed, more required states had been added. also there were other video related component and property names that had to be updated.

But I fixed all that and the application was finally able to compile (although with some warnings mostly of the duplicate variable type)

The only thing now is that whatever change I make to the project doesn't get reflected in the build (debug or release). I changed existing traces, added additional traces. Nothing shows up. I even removed the applicationComplete property in the main.mxml. Everything still ran like nothing changed.

Also I can't seem to debug the app. Whenever I try to debug.. flash builder says..
"Swf Application doesn't contain the required debugging information ... "

Anyone have any idea how I need to even begin tackling all this?
Any help or pointers would be greatly appreciated.

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

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

发布评论

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

评论(3

无风消散 2024-09-07 15:58:15

此类问题最明显的原因是编译后没有运行正确的 SWF。例如,您编译到 C:\project\bin-debug,但您在浏览器中打开 C:\project2\bin-debug\main.swf。或者也许您正在编译到 C:\project\bin-debug,但您正在打开 http://project/main.swf 在您的浏览器中。

不幸的是,由于这是一个特定的配置问题,如果没有确切地了解您的项目是如何设置和运行的,我无法准确地告诉您如何修复它。您在自己的 PC 上运行它。

Well the most obvious cause of this kind of problem is that you are not running the correct SWFs after you compile. For example you compile to C:\project\bin-debug but you instead are opening C:\project2\bin-debug\main.swf in your browser. Or perhaps you are compiling to C:\project\bin-debug, but you are opening http://project/main.swf in your browser.

Unfortunately since it's a specific configuration problem, I can't tell you exactly how to fix it without seeing exactly how your project is set up & where you are running it from on your own PC.

我只土不豪 2024-09-07 15:58:15

这有帮助吗:
当我运行我的Flex 应用程序正在运行不同的旧版本?

我发现,如果我在活动调试会话运行时更改代码并编译应用程序,那么遇到此问题是很常见的。因此,请务必在重新编译应用程序之前停止所有调试会话 - 如果您选择了“自动构建”,则每次保存时都会发生这种情况。

如果应用程序不会改变。关闭调试会话;完全关闭你的浏览器——不仅仅是带有你的应用程序的窗口——然后清理项目。

这总是能解决我的问题。

如果在执行这些操作后浏览器似乎没有显示 swf;这很奇怪。尝试直接加载 SWF,而不是加载封闭的 HTML 页面。

Does this help:
When I run my Flex app, a different, older version is run?

I find it is very common for me to run into the problem if I change code and compile an app while an active debugging session is running. So, be sure to always stop all debugging sessions before recompiling the app--it will happen every time you save if you have "Build automatically" selected.

If the app won't change. Turn off the debugging session; shut down your browser completely--not just the window w/ your app--and then clean the project.

That always addresses the issue for me.

If the browser doesn't appear to be showing the swf after you take these actions; that is odd. Try loading the SWF directly, not the enclosing HTML page.

内心荒芜 2024-09-07 15:58:15

感谢大家的意见。我通过建立一个新项目并复制代码解决了这个问题。在 Flex 应用程序的升级以及在多个开发人员之间移交代码的过程中一定出了什么问题。
只需创建一个新项目并复制代码似乎就解决了问题。

thanks for the input everyone. i solved the issue by setting up up a new project and copying the code over. something must have have screwed up in the upgrading of the flex application and handing off the code among multiple developers.
simply creating a new project and copying the code over seems to have solved the issue.

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