Flex 4 版本对应用程序的更改未显示
我刚刚接手了一个客户的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
此类问题最明显的原因是编译后没有运行正确的 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.
这有帮助吗:
当我运行我的Flex 应用程序正在运行不同的旧版本?
Does this help:
When I run my Flex app, a different, older version is run?
感谢大家的意见。我通过建立一个新项目并复制代码解决了这个问题。在 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.