ReferenceError:错误#1065:变量 ContextMenuClipboardItems 未定义
我正在尝试使用 Flex 分析器来发现我的应用程序中的性能问题所在。但是,当我运行该应用程序时,我收到此错误消息。当我定期运行或在调试模式下时,我没有得到这个。
ReferenceError: Error #1065: Variable ContextMenuClipboardItems is not defined.
at flash.ui::ContextMenu/initLinkAndClipboardProperties()
at flash.ui::ContextMenu()
at mx.core::Application/initContextMenu()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\core\Application.as:1154]
at mx.core::Application/initialize()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\core\Application.as:844]
[...]
I'm trying to use the flex profiler to discover where the performance problems in my app are. However, when I run the app, I get this error message. I don't get this when I run regularly or in debug mode.
ReferenceError: Error #1065: Variable ContextMenuClipboardItems is not defined.
at flash.ui::ContextMenu/initLinkAndClipboardProperties()
at flash.ui::ContextMenu()
at mx.core::Application/initContextMenu()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\core\Application.as:1154]
at mx.core::Application/initialize()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\core\Application.as:844]
[...]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此错误通常是指 swf 文件中缺少预期存在的资源。
它指的是 MXML 文件中缺少的资源。确保 ContextMenuClipboardItems 引用包含在 SWF 文件中的资源。
如果您的资产包含在内,请确保它具有适合您使用方式的适当范围。如果需要公开,就公开。
如果您发布代码将会有所帮助,但这应该会让您指向正确的方向。
This error often refers to missing assets in the swf file that is expected to be there.
It refers to a missing asset in an MXML file. Make sure that ContextMenuClipboardItems refers to an asset that is included into your SWF file.
If your asset is included make sure it has proper scope for how you are using it. If it needs to be Public then make it public.
It would help if you posted your code but this should get you pointed in the right direction.