<?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 How to compile the &amp;amp;quot;Create WMS Layer&amp;amp;quot; code in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-compile-the-amp-quot-create-wms-layer-amp/m-p/276103#M6487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the Flex SDK and mxmlc at the command prompt to compile the sample mxml code from ESRI's Flex API samples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far I have been able to create swfs with the mxml files just fine.&amp;nbsp; But the source code for the "Create WMS Layer" sample has an ".as" file that comes with it.&amp;nbsp; I can't figure out how I am suppose to compile this with the mxml file.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried using compc to create a swc file from the .as file, but that hasn't worked.&amp;nbsp; Compc can't seem to find the DynamicMapServiceLayer class.&amp;nbsp; I tried specifying the ESRI agslib swc file as a library, but then it gave me other errors.&amp;nbsp; I'm not even sure I am suppose to be using compc?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated! Thanks so much!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Dec 2010 21:23:50 GMT</pubDate>
    <dc:creator>sofoo</dc:creator>
    <dc:date>2010-12-09T21:23:50Z</dc:date>
    <item>
      <title>How to compile the &amp;quot;Create WMS Layer&amp;quot; code</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-compile-the-amp-quot-create-wms-layer-amp/m-p/276103#M6487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the Flex SDK and mxmlc at the command prompt to compile the sample mxml code from ESRI's Flex API samples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far I have been able to create swfs with the mxml files just fine.&amp;nbsp; But the source code for the "Create WMS Layer" sample has an ".as" file that comes with it.&amp;nbsp; I can't figure out how I am suppose to compile this with the mxml file.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried using compc to create a swc file from the .as file, but that hasn't worked.&amp;nbsp; Compc can't seem to find the DynamicMapServiceLayer class.&amp;nbsp; I tried specifying the ESRI agslib swc file as a library, but then it gave me other errors.&amp;nbsp; I'm not even sure I am suppose to be using compc?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated! Thanks so much!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2010 21:23:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-compile-the-amp-quot-create-wms-layer-amp/m-p/276103#M6487</guid>
      <dc:creator>sofoo</dc:creator>
      <dc:date>2010-12-09T21:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to compile the "Create WMS Layer" code</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-compile-the-amp-quot-create-wms-layer-amp/m-p/276104#M6488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alright, I figured it out.&amp;nbsp; I don't have to create an swc file.&amp;nbsp; I just have to create a folder structure that matches the package name (com-esri-ags-samples) and then put the .as file in the samples folder.&amp;nbsp; Then, when I run mxmlc on the mxml file, it creates the swf!!&amp;nbsp; yay!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess the question would now be, would you ever create an swc file for an extended class?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 15:38:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-compile-the-amp-quot-create-wms-layer-amp/m-p/276104#M6488</guid>
      <dc:creator>sofoo</dc:creator>
      <dc:date>2010-12-10T15:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to compile the "Create WMS Layer" code</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-compile-the-amp-quot-create-wms-layer-amp/m-p/276105#M6489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The API now includes a WMSLayer so the sample serves more to show how to extend the DynamicMapServiceLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/WMSLayer.html"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/WMSLayer.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=WMS"&gt;http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=WMS&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you still want to compile it, then you would use mxmlc since that's what you need to use to build a swf. You may find the ant tasks easier to work with. Here's some links to Adobe's doc:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Flex compilers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ffd.html"&gt;http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ffd.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Ant tasks:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf678b2-8000.html"&gt;http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf678b2-8000.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 15:48:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-compile-the-amp-quot-create-wms-layer-amp/m-p/276105#M6489</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-12-10T15:48:05Z</dc:date>
    </item>
  </channel>
</rss>

