I have a typed class in actionscript:
public class Cat {
public var id:int;
public var name:String;
}
I am using an instance variable in an mxml component:
<valueobjects:Cat id="selected_cat"/>
In IntelliJ the id for cat is coming up as an error, “invalid integer value”, although it will compile without error. This error appears in the IDE when editing the file and lists it as an error at bottom. Does anyone know of any tricks to tell IntelliJ about this class or the property. Or are there any metadata tags to identify the attribute so the mxml parser will be happy?
Thanks in advanced.
Yes, the problem is, that usually id is a String used in markup to set an id of type String. Flex supports that via UIComponent or IMXMLObject. You should not use ValueObjects in the markup, unless the class implements IMXMLObject.