ReferenceError:错误 #1065:未定义变量 ContextMenuClipboardItems [英] ReferenceError: Error #1065: Variable ContextMenuClipboardItems is not defined

查看:26
本文介绍了ReferenceError:错误 #1065:未定义变量 ContextMenuClipboardItems的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 flex 分析器来发现我的应用程序中的性能问题在哪里.但是,当我运行该应用程序时,我收到此错误消息.当我定期运行或在调试模式下时,我没有得到这个.

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]
    [...]

推荐答案

此错误通常是指 swf 文件中缺少预期存在的资产.

This error often refers to missing assets in the swf file that is expected to be there.

它指的是 MXML 文件中缺少的资产.确保 ContextMenuClipboardItems 引用包含在您的 SWF 文件中的资产.

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.

这篇关于ReferenceError:错误 #1065:未定义变量 ContextMenuClipboardItems的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆