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

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

问题描述

我试图使用flex分析器来发现我的应用程序中的性能问题。但是,当我运行该应用程序,我收到此错误消息。

  ReferenceError:错误#1065:变量ContextMenuClipboardItems未定义。 
at flash.ui :: ContextMenu / initLinkAndClipboardProperties()
at flash.ui :: ContextMenu()
at mx.core :: Application / initContextMenu()[C:\autobuild\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ autobuild\3.3.0\frameworks\projects\framework\src\mx\core\Application.as:844]
[...]

p>

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



如果您的资产已包含在内,请确保它具有正确的使用范围。如果需要公开的话就公开。



如果你发布了代码,这将会有所帮助,但是这应该让你指出正确的方向。 b $ b

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

解决方案

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.

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

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