Flex:内联组件未定义?
我今天打开 FB3,没有做任何更改,我按 F11,现在我收到了以前从未遇到过的错误:
ReferenceError: Error #1065: Variable CaratPicker2_inlineComponent1 is not Defined.
我找到了它奇怪的是,我现在每次都会收到此错误,而我以前从未收到过它,并且在开始收到它之前我没有进行任何更改。
不管怎样,它来自第 78 行,这是
内联项目渲染器的开始。
那么有什么想法如何或为什么会引发此错误吗?我以前从未见过这样的错误,并且该消息对于我来说并不是很清楚问题是什么。
谢谢!!!
I opened up FB3 today, without making any changes, I press F11 and now I am getting this error that I never have gotten before:
ReferenceError: Error #1065: Variable CaratPicker2_inlineComponent1 is not defined.
I find it strange I am getting this error everytime now, when I never got it before and I didn't make any changes before I started getting it.
Anyways it is coming from line 78 which is <mx:Component>
the start of an inline item renderer.
So any ideas how or why this error is being thrown? I have never seen an error like this before and the message isn't very clear to me as to what the issue is.
Thanks!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我将从 Flex Builder 上部菜单开始 ->项目->干净...
看起来生成的动作脚本代码有问题。 mxml 组件由编译器“翻译”为 .as 文件,但为了提高效率,它会尝试尽可能长时间地保留它们,而不是每次都重新生成它们。
I'd start with Flex Builder upper menu -> Project -> Clean...
It looks like there are problems with the generated actionscript code. The mxml components get "translated" to .as files by the compiler but, for efficiency, it tries to keep them for as long as possible instead of generating them again each time.
我也遇到了这个内联组件未定义的错误。
但我的问题是项目中有两个同名的 mxml 文档(不在同一个包中),
因此解决方案是更改文件名并确保所有 mxml 文件具有不同的名称。
I got this inline component not defined error, too.
But my problem is there are two mxml documents with the same name in the project(not in the same package)
so the solution is change the file name and make sure all mxml files have different name.