<?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 Change default right-click context menu on &amp;lt;esri:Map/&amp;gt; in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/change-default-right-click-context-menu-on-amp-amp/m-p/746345#M16528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I just resolved my own question, perhaps not the most elegant solution, but it works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to the &amp;lt;esri:Map&amp;gt; &amp;lt;/&amp;gt; code block, I added:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]rightMouseDown="{Alert.show('right click disabled')}"[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm developing an Adobe Air map application. Due to security requirements, it's crucial that the application does not provide the ability to open a browser window via any menus, etc.&lt;BR /&gt;&lt;BR /&gt;I just noticed that when you right-click on the map object, the context menu includes 'About ArcGIS for Flex', which opens up another window that has a link to the ESRI API site. &lt;BR /&gt;&lt;BR /&gt;Is there any way to over ride this behavior?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Apr 2010 17:08:21 GMT</pubDate>
    <dc:creator>ErikEndrulat</dc:creator>
    <dc:date>2010-04-28T17:08:21Z</dc:date>
    <item>
      <title>Change default right-click context menu on &amp;amp;lt;esri:Map/&amp;amp;gt;</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/change-default-right-click-context-menu-on-amp-amp/m-p/746344#M16527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm developing an Adobe Air map application. Due to security requirements, it's crucial that the application does not provide the ability to open a browser window via any menus, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just noticed that when you right-click on the map object, the context menu includes 'About ArcGIS for Flex', which opens up another window that has a link to the ESRI API site. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to over ride this behavior?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 16:44:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/change-default-right-click-context-menu-on-amp-amp/m-p/746344#M16527</guid>
      <dc:creator>ErikEndrulat</dc:creator>
      <dc:date>2010-04-28T16:44:41Z</dc:date>
    </item>
    <item>
      <title>Change default right-click context menu on &lt;esri:Map/&gt;</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/change-default-right-click-context-menu-on-amp-amp/m-p/746345#M16528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I just resolved my own question, perhaps not the most elegant solution, but it works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to the &amp;lt;esri:Map&amp;gt; &amp;lt;/&amp;gt; code block, I added:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]rightMouseDown="{Alert.show('right click disabled')}"[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm developing an Adobe Air map application. Due to security requirements, it's crucial that the application does not provide the ability to open a browser window via any menus, etc.&lt;BR /&gt;&lt;BR /&gt;I just noticed that when you right-click on the map object, the context menu includes 'About ArcGIS for Flex', which opens up another window that has a link to the ESRI API site. &lt;BR /&gt;&lt;BR /&gt;Is there any way to over ride this behavior?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 17:08:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/change-default-right-click-context-menu-on-amp-amp/m-p/746345#M16528</guid>
      <dc:creator>ErikEndrulat</dc:creator>
      <dc:date>2010-04-28T17:08:21Z</dc:date>
    </item>
    <item>
      <title>Change default right-click context menu on &lt;esri:Map/&gt;</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/change-default-right-click-context-menu-on-amp-amp/m-p/746346#M16529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can also do this. Just in case you want to add custom menu items to the map. disabling right click will not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

&lt;SPAN style="font-size:2;"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;/SPAN&gt;
&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;&amp;lt;mx:Application&lt;/SPAN&gt;
&lt;SPAN style="font-size:2;"&gt;&amp;nbsp; creationComplete="onCreationComplete()" &lt;/SPAN&gt;
&lt;SPAN style="font-size:2;"&gt;&amp;nbsp; xmlns:mx=&lt;/SPAN&gt;&lt;SPAN style="color: #990000; font-size: 2;"&gt;&lt;A href="http://www.adobe.com/2006/mxml" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.adobe.com/2006/mxml&lt;/A&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-size:2;"&gt;&amp;nbsp; xmlns:esri=&lt;/SPAN&gt;&lt;SPAN style="color: #990000; font-size: 2;"&gt;&lt;A href="http://www.esri.com/2008/ags" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.esri.com/2008/ags&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;SPAN style="color: #006633; font-size: 2;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Script&amp;gt;&lt;/SPAN&gt;


&lt;SPAN style="font-size:2;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;![CDATA[&lt;/SPAN&gt;

[INDENT]
[LEFT]&lt;STRONG style=": ; color: #0033ff; font-size: 2;"&gt;&amp;nbsp;&amp;nbsp; private&lt;/STRONG&gt;&lt;STRONG style=": ; color: #339966; font-size: 2;"&gt;function&lt;/STRONG&gt;&lt;SPAN style="font-size:2;"&gt; onCreationComplete() : &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0033ff; font-size: 2;"&gt;void&lt;/STRONG&gt;

&lt;SPAN style="font-size:2;"&gt;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;
&lt;STRONG style=": ; color: #6699cc; font-size: 2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var&lt;/STRONG&gt;&lt;SPAN style="font-size:2;"&gt; contextMenu:ContextMenu = &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0033ff; font-size: 2;"&gt;new&lt;/STRONG&gt;&lt;SPAN style="font-size:2;"&gt; ContextMenu();&lt;/SPAN&gt;
&lt;SPAN style="font-size:2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; contextMenu.hideBuiltInItems();&lt;/SPAN&gt;
&lt;SPAN style="font-size:2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.contextMenu = contextMenu;&lt;/SPAN&gt;
&lt;SPAN style="font-size:2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; contextMenu.customItems.push(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0033ff; font-size: 2;"&gt;new&lt;/STRONG&gt;&lt;SPAN style="font-size:2;"&gt; ContextMenuItem(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #990000; font-size: 2;"&gt;"Custom Menu Item"&lt;/STRONG&gt;&lt;SPAN style="font-size:2;"&gt;,&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0033ff; font-size: 2;"&gt;true&lt;/STRONG&gt;&lt;SPAN style="font-size:2;"&gt;));&lt;/SPAN&gt;
&lt;SPAN style="font-size:2;"&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;


[/LEFT]
[/INDENT]&lt;SPAN style="font-size:2;"&gt;&amp;nbsp;&amp;nbsp; ]]&amp;gt;&lt;/SPAN&gt;

&lt;SPAN style="color: #006633; font-size: 2;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:Script&amp;gt;&lt;/SPAN&gt;
&lt;SPAN style="color: #0000ff; font-size: 2;"&gt; &amp;lt;esri:Map&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt; id="&lt;/SPAN&gt;&lt;SPAN style="color: #990000; font-size: 2;"&gt;myMap&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;" width="&lt;/SPAN&gt;&lt;SPAN style="color: #990000; font-size: 2;"&gt;100%&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer&lt;/SPAN&gt;

 
&lt;SPAN style="font-size:2;"&gt;url="&lt;/SPAN&gt;

&lt;SPAN style="color: #990000; font-size: 2;"&gt;&lt;A class="jive-link-external-small" href="http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size:2;"&gt;" &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;/&amp;gt;&lt;/SPAN&gt;

 

&lt;SPAN style="color: #0000ff; font-size: 2;"&gt; &amp;lt;/esri:Map&amp;gt;&lt;/SPAN&gt;

 

&lt;SPAN style="color: #0000ff; font-size: 2;"&gt;&amp;lt;/mx:Application&amp;gt;&lt;/SPAN&gt;

 
 
 
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:44:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/change-default-right-click-context-menu-on-amp-amp/m-p/746346#M16529</guid>
      <dc:creator>PrashanthSukumaran</dc:creator>
      <dc:date>2021-12-12T07:44:38Z</dc:date>
    </item>
  </channel>
</rss>

