<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Could not resolve &amp;lt;s:controlBarContent&amp;gt; to a component implementation ...Urgent H in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483532#M11046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rscheitlin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The issue I am having is that because the code already has:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;import com.esri.ags.tasks.supportClasses.Query;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no reason for that error if you are using agslib-2.3.1-2011-04-26...:confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jun 2011 18:23:18 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2011-06-01T18:23:18Z</dc:date>
    <item>
      <title>Could not resolve &amp;lt;s:controlBarContent&amp;gt; to a component implementation ...Urgent Help</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483527#M11041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: sravabonagiri&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Flex Gurus,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need a small favor. I am working on a dropdown control and zoom to feature (point) for a beach application. I was able to implement the attached code alright for a standalone application. But, When I am adding the code as a custom widget to my existing code....I am getting the following error. That is, Could not resolve &amp;lt;s:controlBarContent&amp;gt; to a component implementation. I attached the code as well as error image here. Could you please help me fix the issue. Please let me know if you need further information. Many thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 14:58:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483527#M11041</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-06-01T14:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Could not resolve &lt;s:controlBarContent&gt; to a component implementation ...Urgent H</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483528#M11042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rscheitlin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what you have so far fixed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;!--
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2010 ESRI
//
// All rights reserved under the copyright laws of the United States.
// You may freely redistribute and use this software, with or
// without modification, provided you include the original copyright
// and use restrictions.&amp;nbsp; See use restrictions in the file:
// &amp;lt;install location&amp;gt;/License.txt
//
////////////////////////////////////////////////////////////////////////////////
--&amp;gt;
&amp;lt;viewer:BaseWidget xmlns:fx="http://ns.adobe.com/mxml/2009"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:s="library://ns.adobe.com/flex/spark"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:mx="library://ns.adobe.com/flex/mx"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:esri="http://www.esri.com/2008/ags"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:custom="components.*"&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:viewer="com.esri.viewer.*"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; widgetConfigLoaded="init()"&amp;gt;
 
 &amp;lt;fx:Declarations&amp;gt;
&amp;nbsp; &amp;lt;esri:QueryTask id="queryTask"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; executeComplete="queryTask_executeCompleteHandler(event)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showBusyCursor="true"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://167.193.56.180/ArcGIS/rest/services/Georgia_Beach/MapServer/0"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; useAMF="false"/&amp;gt;
 &amp;lt;/fx:Declarations&amp;gt;
 
 &amp;lt;fx:Script&amp;gt;
&amp;nbsp; &amp;lt;![CDATA[
&amp;nbsp;&amp;nbsp; import com.esri.ags.Graphic;
&amp;nbsp;&amp;nbsp; import com.esri.ags.events.MapEvent;
&amp;nbsp;&amp;nbsp; import com.esri.ags.events.QueryEvent;
&amp;nbsp;&amp;nbsp; import com.esri.ags.geometry.Extent;
&amp;nbsp;&amp;nbsp; import com.esri.ags.geometry.Geometry;
&amp;nbsp;&amp;nbsp; import com.esri.ags.geometry.MapPoint;
&amp;nbsp;&amp;nbsp; import com.esri.ags.tasks.supportClasses.Query;
&amp;nbsp;&amp;nbsp; import com.esri.ags.utils.GraphicUtil;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; import mx.collections.ArrayCollection;
&amp;nbsp;&amp;nbsp; import mx.collections.ArrayList;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; import spark.events.IndexChangeEvent;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; protected function init():void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var query:Query = new Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outFields = [ "NAME_1" ];
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outSpatialReference = map.spatialReference;
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.returnGeometry = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.where = "1=1";
&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.execute(query);
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; protected function queryTask_executeCompleteHandler(event:QueryEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; ddList.dataProvider = new ArrayList(event.featureSet.features);
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; protected function ddListLabelFunction(item:Graphic):String
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; return item.attributes["NAME_1"];
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; protected function ddList_changeHandler(event:IndexChangeEvent):void
&amp;nbsp;&amp;nbsp; { 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var pt:MapPoint = MapPoint(Graphic(ddList.selectedItem).geometry);
&amp;nbsp;&amp;nbsp;&amp;nbsp; var beachExtent:Extent = new Extent(pt.x - 100, pt.y -100, pt.x + 100, pt.y + 100);
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.extent = beachExtent 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; // make sure the whole extent is visible
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!map.extent.contains(beachExtent))
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.level--;
&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; ]]&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 &amp;lt;/fx:Script&amp;gt;
 
 &amp;lt;viewer:WidgetTemplate id="DropDown" width="300" height="200" &amp;gt; 
&amp;nbsp; &amp;lt;viewer:layout&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;s:HorizontalLayout horizontalAlign="center" verticalAlign="middle"/&amp;gt;
&amp;nbsp; &amp;lt;/viewer:layout&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;s:DropDownList id="ddList"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width="200"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; change="ddList_changeHandler(event)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelFunction="ddListLabelFunction"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prompt="Choose a beach..."/&amp;gt;
 &amp;lt;/viewer:WidgetTemplate&amp;gt;
&amp;lt;/viewer:BaseWidget&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:19:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483528#M11042</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T21:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Could not resolve &lt;s:controlBarContent&gt; to a component implementation ...Urgent H</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483529#M11043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Robert, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help. I appreciate it. I was able to get past that error. But, I have another issue facing me. That is, call to a undefined method query. I attached the error file. The error is showing up in init() function for method Query. Your help is appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 17:27:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483529#M11043</guid>
      <dc:creator>ShravanBonagiri</dc:creator>
      <dc:date>2011-06-01T17:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Could not resolve &lt;s:controlBarContent&gt; to a component implementation ...Urgent H</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483530#M11044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rscheitlin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; What ESRI Flex API version are you using?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 17:42:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483530#M11044</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-06-01T17:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Could not resolve &lt;s:controlBarContent&gt; to a component implementation ...Urgent H</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483531#M11045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using agslib-2.3.1-2011-04-26.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 18:18:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483531#M11045</guid>
      <dc:creator>ShravanBonagiri</dc:creator>
      <dc:date>2011-06-01T18:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Could not resolve &lt;s:controlBarContent&gt; to a component implementation ...Urgent H</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483532#M11046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rscheitlin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The issue I am having is that because the code already has:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;import com.esri.ags.tasks.supportClasses.Query;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no reason for that error if you are using agslib-2.3.1-2011-04-26...:confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 18:23:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483532#M11046</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-06-01T18:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Could not resolve &lt;s:controlBarContent&gt; to a component implementation ...Urgent H</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483533#M11047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok. Thanks for your continued support. I am new to Flex development. Previously, I was working with Silverlight API. I hear some compatibility issues with Flash Builder 4.5. Should I go back to Flash Builder 4.0?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 18:37:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483533#M11047</guid>
      <dc:creator>ShravanBonagiri</dc:creator>
      <dc:date>2011-06-01T18:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Could not resolve &lt;s:controlBarContent&gt; to a component implementation ...Urgent H</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483534#M11048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rscheitlin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; No that is not the issue because I build the exact code I sent you using Flash Builder 4.5 and the 4.5 SDK as well.&amp;nbsp; See what happens when you fully qualify the query in the init function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;protected function init():void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var query:com.esri.ags.tasks.supportClasses.Query = new com.esri.ags.tasks.supportClasses.Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outFields = [ "NAME_1" ];
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.outSpatialReference = map.spatialReference;
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.returnGeometry = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.where = "1=1";
&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.execute(query);
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:20:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483534#M11048</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T21:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Could not resolve &lt;s:controlBarContent&gt; to a component implementation ...Urgent H</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483535#M11049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Excellent. It did the trick. Thanks for persisting with me. Thanks a ton.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 18:47:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/could-not-resolve-amp-lt-s-controlbarcontent-amp/m-p/483535#M11049</guid>
      <dc:creator>ShravanBonagiri</dc:creator>
      <dc:date>2011-06-01T18:47:13Z</dc:date>
    </item>
  </channel>
</rss>

