我在 actionscript 中有一个类型化的类:
public class Cat {
public var id:int;
public var name:String;
}
我在 mxml 组件中使用实例变量:
<valueobjects:Cat id="selected_cat"/>
在 IntelliJ 中,cat 的 id 作为错误出现,“无效的整数值”,尽管它会编译而不会出错。此错误在编辑文件时出现在 IDE 中,并在底部将其列为错误。有谁知道告诉 IntelliJ 这个类或属性的任何技巧。或者是否有任何元数据标签来识别属性,以便 mxml 解析器满意?
提前致谢。