<?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: Pure Custom Components vs FlexView in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/pure-custom-components-vs-flexview/m-p/24665#M550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You were very quick to respond to my post. This was a very informative read, and I appreciate the time you took in your response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dylan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 May 2011 20:26:20 GMT</pubDate>
    <dc:creator>DylanRoy</dc:creator>
    <dc:date>2011-05-10T20:26:20Z</dc:date>
    <item>
      <title>Pure Custom Components vs FlexView</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/pure-custom-components-vs-flexview/m-p/24663#M548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been noticing that many people have been using FlexViewer to create new mashups. I on the other hand had decided to go the pure custom component approach and just take in the map as an attribute. This way all the user of any my components needs to do is drag each component onto their Flash Builder canvas and point them to the map they want it to interact with. I am just curious as to why many opt to build their User Controls upon FlexViewer and what are the advantages of using it. I just want to make sure I am not missing out on anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Client App Example with Component:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...snippet...&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
 &amp;lt;esri:Map id="map"&amp;gt;
&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer url="http://mapurl"/&amp;gt;
 &amp;lt;/esri:Map&amp;gt;
 &amp;lt;applications:ComplexLocator MapControl="{map}"&amp;gt;
 &amp;lt;/applications:ComplexLocator&amp;gt;
&amp;lt;/s:Application&amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 17:28:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/pure-custom-components-vs-flexview/m-p/24663#M548</guid>
      <dc:creator>DylanRoy</dc:creator>
      <dc:date>2011-05-10T17:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pure Custom Components vs FlexView</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/pure-custom-components-vs-flexview/m-p/24664#M549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would think it's that Flexviewer provides the basic foundation for an app, so someone can quickly get an app up and running without having to fuss with building out their app structure, event dispatchers, controllers and so on. It's pretty quick to get a widget up and going and drop it into Flexviewer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a couple of Flexviewer apps at work which has prompted me to build a few widgets in-house.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mainly, I build apps from scratch though, for various reasons and there are tools/workflows to get up and running such as ANT build/structure scripts, ProjectSprouts, Frameworks, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That doesn't mean your widgets need to built in such a way that they have to be tightly coupled to Flexviewer. I've been meaning to write more about this, but I put an example up of a widget where the component itself sits in a completely different package than the widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=708ae903d3994999a3a861f35bf7408d" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.arcgis.com/home/item.html?id=708ae903d3994999a3a861f35bf7408d&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Basewidget just adds the component and provides the map instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
protected function basewidget_creationCompleteHandler(event:FlexEvent):void
{
 var legend:LegendViewer=new LegendViewer();
 legend.percentHeight=100;
 legend.percentWidth=100;
 legend.map=map;
 wTemplate.addElement(legend);
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The same component can be used in a completely non-Flexviewer app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've seen a few other widgets built this way as well and I think it's good practice, especially when a Flexviewer update comes out. Then you would not need to modify the component itself in that case. The most you'd have to worry about is if the API requries you to change your component in some way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I'm rambling, but in general, I think it comes down to time restraints and manpower.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:00:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/pure-custom-components-vs-flexview/m-p/24664#M549</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-12-10T21:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pure Custom Components vs FlexView</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/pure-custom-components-vs-flexview/m-p/24665#M550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You were very quick to respond to my post. This was a very informative read, and I appreciate the time you took in your response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dylan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 20:26:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/pure-custom-components-vs-flexview/m-p/24665#M550</guid>
      <dc:creator>DylanRoy</dc:creator>
      <dc:date>2011-05-10T20:26:20Z</dc:date>
    </item>
  </channel>
</rss>

