Directions in Flex Mobile --  error 1172

486
1
01-15-2014 09:29 AM
KomanDiabate
New Contributor III
Hi All,
I am trying to use <esri:Directions> components in flex mobile and I am getting "error1172: Definition com.esri.ags.:components could not be found."
Is this another case where flex api doesnt support Directions in Mobile App or am I just missing something.
If not is this doable is Google or something else.

<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009" 
  xmlns:s="library://ns.adobe.com/flex/spark"
  xmlns:esri="http://www.esri.com/2008/ags"
  title="Directions">
 <fx:Script>
  <![CDATA[
   import com.esri.ags.SpatialReference;
   import com.esri.ags.components;
  ]]>
 </fx:Script>
 <fx:Declarations>
  <!-- Place non-visual elements (e.g., services, value objects) here -->

 </fx:Declarations>
 <s:HGroup width="100%" height="100%">
  <s:HGroup width="20%" height="100%">
   
   <esri:Directions width="320" height="100%"
        map="{map}"
        url="http://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route"/>
  </s:HGroup>
  <s:HGroup height="100%" width="80%">
   <esri:Map  id="map">
    <esri:extent>            
     <esri:Extent xmax="-12933403.6076138" xmin="-13111592.8608571" ymax="3962427.46398672"
         ymin="3828540.75859643" >       
      <esri:SpatialReference wkid="3857" />  
     </esri:Extent>        
    </esri:extent>
    
    <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
    <esri:GraphicsLayer id="addressGL"/>
    
   </esri:Map>
  </s:HGroup>
 </s:HGroup>
</s:View>


Thanks all.
Tags (2)
0 Kudos
1 Reply
KomanDiabate
New Contributor III
Error 1172:
I was just using the wrong api.
0 Kudos