<?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: Can agslib be used in a flex library project? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-agslib-be-used-in-a-flex-library-project/m-p/308354#M7333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;External does seem to work.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting it to RSL had been working fine for a couple of days, and suddenly I started getting the error again.&amp;nbsp; Removing and readding the lib as suggested by odoe wasn't fixing it either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully external will continue to work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Feb 2011 14:40:51 GMT</pubDate>
    <dc:creator>JerryEla</dc:creator>
    <dc:date>2011-02-08T14:40:51Z</dc:date>
    <item>
      <title>Can agslib be used in a flex library project?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-agslib-be-used-in-a-flex-library-project/m-p/308350#M7329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to build some components based on agslib 2.2.&amp;nbsp; I want to build them in a flex library so they can be used with multiple apps.&amp;nbsp; But I get run time errors with code that runs fine if it is in the main project, if I move it to a library.&amp;nbsp; A simple test case. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;s:Application xmlns:fx="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://ns.adobe.com/mxml/2009" rel="nofollow" target="_blank"&gt;http://ns.adobe.com/mxml/2009&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; xmlns:s="library://ns.adobe.com/flex/spark"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; xmlns:esri="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.esri.com/2008/ags" rel="nofollow" target="_blank"&gt;http://www.esri.com/2008/ags&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; pageTitle="GISLib ET" xmlns:view="view.*" &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;view:MapTest/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/s:Application&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MapTest&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;esri:Map xmlns:fx="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://ns.adobe.com/mxml/2009" rel="nofollow" target="_blank"&gt;http://ns.adobe.com/mxml/2009&lt;/A&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; xmlns:s="library://ns.adobe.com/flex/spark" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; xmlns:mx="library://ns.adobe.com/flex/mx" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:esri="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.esri.com/2008/ags" rel="nofollow" target="_blank"&gt;http://www.esri.com/2008/ags&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;esri:ArcGISDynamicMapServiceLayer &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/Parcels/MapServer" rel="nofollow" target="_blank"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/Parcels/MapServer&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/esri:Map&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This runs fine if the view package is in the main project file, but fails with a runtime error.&amp;nbsp; But if the view package is in a library swc the code fails with a run time error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ApplicationSkin2._ApplicationSkin_Group1.contentGroup.MapTest5.StaticLayer9.ScaleBar12 cannot be found.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing something?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 19:11:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-agslib-be-used-in-a-flex-library-project/m-p/308350#M7329</guid>
      <dc:creator>JerryEla</dc:creator>
      <dc:date>2011-02-03T19:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can agslib be used in a flex library project?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-agslib-be-used-in-a-flex-library-project/m-p/308351#M7330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I maintain a library using the ESRI Flex API and I know that error all too well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Granted, this error will ONLY occur in Flex/FlashBuilder, I can successfully link my library files in IntelliJ and FDT withouth issue. Go figure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, in the Properties for your main project, add your library file (Add Project), make sure Link Type is RSL (runtime shared library).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FlashBuilder will compile and link to the library swf.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, here is the kicker. If you make any changes to your library file at all that force it to rebuild, you will need to remove the library project from your Main project and re-add it following the steps above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll need to do this every single time you update your library project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's a horrible workaround, but I do it on a daily basis. I am really not a fan of Flashbuilder at all.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 19:56:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-agslib-be-used-in-a-flex-library-project/m-p/308351#M7330</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2011-02-03T19:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can agslib be used in a flex library project?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-agslib-be-used-in-a-flex-library-project/m-p/308352#M7331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, that worked.&amp;nbsp; I use swcs a lot and have never seen that problem.&amp;nbsp; I wonder what it is about agslib that FlashBuilder doesn't like.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 12:38:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-agslib-be-used-in-a-flex-library-project/m-p/308352#M7331</guid>
      <dc:creator>JerryEla</dc:creator>
      <dc:date>2011-02-04T12:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can agslib be used in a flex library project?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-agslib-be-used-in-a-flex-library-project/m-p/308353#M7332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried making like link type for the ArcGIS Flex API swc "External" in your library project? This way it won't try to copy what it thinks it needs from the ArcGIS Flex API swc into your swc. Then in your app project you'll need to add both your swc and the ArcGIS Flex API swc to your project.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 15:06:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-agslib-be-used-in-a-flex-library-project/m-p/308353#M7332</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2011-02-04T15:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can agslib be used in a flex library project?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-agslib-be-used-in-a-flex-library-project/m-p/308354#M7333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;External does seem to work.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting it to RSL had been working fine for a couple of days, and suddenly I started getting the error again.&amp;nbsp; Removing and readding the lib as suggested by odoe wasn't fixing it either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully external will continue to work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 14:40:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-agslib-be-used-in-a-flex-library-project/m-p/308354#M7333</guid>
      <dc:creator>JerryEla</dc:creator>
      <dc:date>2011-02-08T14:40:51Z</dc:date>
    </item>
  </channel>
</rss>

