<?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 Print Widget Action Script Error in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/print-widget-action-script-error/m-p/227465#M5332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are using the Flex Sample Viewer 1.3 with some customizations.&amp;nbsp; I haven't touched the print widget, but we are getting the following error when trying to print:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An ActionScript error has occurred:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at flash.display::DisplayObjectContainer/removeChild()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; at mx.core::UIComponent/&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.adobe.com/2006/flex/mx/internal::$removeChild" rel="nofollow" target="_blank"&gt;http://www.adobe.com/2006/flex/mx/internal::$removeChild&lt;/A&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at mx.core::Container/removeChild()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.solutions.flexviewer.widgets::PrintWidget/printMap()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.solutions.flexviewer.widgets::PrintWidget/___PrintWidget_Button1_click()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The widget comes up and you can click on the print button and get a choice of printers.&amp;nbsp; Once you choose a printer and then go to print the error above pops up.&amp;nbsp; I have tried replacing the widget I have with a fresh one from someone whose print widget works.&amp;nbsp; We still get this error.&amp;nbsp; What else does the print widget tie into that I may need to check?&amp;nbsp; Any help would be greatly appreciated.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did get a map to print by fluke this morning (once) and then the error started popping up.&amp;nbsp; Sometimes users can get the map to start spooling in the print queue but it never prints.&amp;nbsp; Most of the time we get the error above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alison&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Dec 2010 12:09:42 GMT</pubDate>
    <dc:creator>AlisonSengupta</dc:creator>
    <dc:date>2010-12-07T12:09:42Z</dc:date>
    <item>
      <title>Print Widget Action Script Error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/print-widget-action-script-error/m-p/227465#M5332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are using the Flex Sample Viewer 1.3 with some customizations.&amp;nbsp; I haven't touched the print widget, but we are getting the following error when trying to print:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An ActionScript error has occurred:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at flash.display::DisplayObjectContainer/removeChild()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; at mx.core::UIComponent/&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.adobe.com/2006/flex/mx/internal::$removeChild" rel="nofollow" target="_blank"&gt;http://www.adobe.com/2006/flex/mx/internal::$removeChild&lt;/A&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at mx.core::Container/removeChild()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.solutions.flexviewer.widgets::PrintWidget/printMap()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.solutions.flexviewer.widgets::PrintWidget/___PrintWidget_Button1_click()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The widget comes up and you can click on the print button and get a choice of printers.&amp;nbsp; Once you choose a printer and then go to print the error above pops up.&amp;nbsp; I have tried replacing the widget I have with a fresh one from someone whose print widget works.&amp;nbsp; We still get this error.&amp;nbsp; What else does the print widget tie into that I may need to check?&amp;nbsp; Any help would be greatly appreciated.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did get a map to print by fluke this morning (once) and then the error started popping up.&amp;nbsp; Sometimes users can get the map to start spooling in the print queue but it never prints.&amp;nbsp; Most of the time we get the error above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alison&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 12:09:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/print-widget-action-script-error/m-p/227465#M5332</guid>
      <dc:creator>AlisonSengupta</dc:creator>
      <dc:date>2010-12-07T12:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget Action Script Error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/print-widget-action-script-error/m-p/227466#M5333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;With a little help from some other folks programming with flex, I figured out the issue with printing from my flex viewer.&amp;nbsp; It turns out if I commented out the following code (this.removeChild(printBox)) in the catch error section of the printwidget.mxml so that it just shows an alert, I got the real error message.&amp;nbsp; There is something wrong with the wms service we are brining in to the viewer to display precipitation data.&amp;nbsp; It is not working properly.&amp;nbsp; If I remove that service from the config file, the print widget works just fine.&amp;nbsp; Go figure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alison&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 20:01:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/print-widget-action-script-error/m-p/227466#M5333</guid>
      <dc:creator>AlisonSengupta</dc:creator>
      <dc:date>2010-12-07T20:01:31Z</dc:date>
    </item>
  </channel>
</rss>

