<esri:Map id="map"> </esri:Map>
Solved! Go to Solution.
<fx:Component id="dateField"> <!--<fieldClasses:CalendarField dateFormat="shortDate" useUTC="false"/>--> <fieldClasses:TextField minWidth="200"/> </fx:Component>
@namespace esri "http://www.esri.com/2008/ags"; esri|AttributeInspector, esri|RelationshipInspector #attributeInspector { skinClass: ClassReference("skins.AttributeInspectorSkin"); }
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:esri="http://www.esri.com/2008/ags" applicationDPI="160"> <esri:Map id="map"> </esri:Map> </s:Application>
You'll need to add a reference to the mx.swc. See:
https://developers.arcgis.com/en/flex/guide/mobile-flex.htm
The other option mentioned at the bottom of that link is to remove references to the RelationshipInspector in the PopUpRendererSkin. The RelationshipInspector uses the AttributeInspector which by default, uses mx components like DateField. This has been an issue since 3.1, but now with 3.4, you're getting the error right away.
<fx:Component id="dateField"> <!--<fieldClasses:CalendarField dateFormat="shortDate" useUTC="false"/>--> <fieldClasses:TextField minWidth="200"/> </fx:Component>
@namespace esri "http://www.esri.com/2008/ags"; esri|AttributeInspector, esri|RelationshipInspector #attributeInspector { skinClass: ClassReference("skins.AttributeInspectorSkin"); }
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:esri="http://www.esri.com/2008/ags" applicationDPI="160"> <esri:Map id="map"> </esri:Map> </s:Application>
<fx:Component id="dateField"> <!--<fieldClasses:CalendarField/> --> <fieldClasses:TextField minWidth="200"/> </fx:Component>
<ns:Map id="map"> </ns:Map>