|
POST
|
Once the clients browsers cache is cleared you should be able to see the updated application. I have heard that some IT departments will cache files on a server to save bandwidth so that could be the problem, but it all depends on your network i guess. One easy way to solve the issue is to change the URL of the application and have the old URL forward to the new URL. This probably not the ideal solution, but it might be worth a test to see if the client can see the new app. Another test would be to have the user load the new app in a different browser such as FireFox or Google Chrome. Finally, if nothing works you can add a query string onto the .swf URL defined in your .html page. You would open the index.html file on the server and where ever you see the file "index.swf" referenced you can change it to "index.swf?123456789" The ?123456789 SHOULD cause the browser to think its a new file that has never been downloaded before and pull it down from the server. (Don't forget to backup up your index.html file first 🙂 ) Hope this helps, Drew
... View more
02-21-2011
08:35 AM
|
0
|
0
|
386
|
|
POST
|
One way I do it is with the code below.
graphic.addEventListener(MouseEvent.ROLL_OVER, function(event:MouseEvent):void
{
map.panEnabled = false;
graphic.buttonMode = true;
graphic.useHandCursor = true;
});
graphic.addEventListener(MouseEvent.ROLL_OUT, function(event:MouseEvent):void
{
graphic.buttonMode = false;
graphic.useHandCursor = false;
map.panEnabled = true;
});
Drew
... View more
02-20-2011
12:25 PM
|
0
|
0
|
1252
|
|
POST
|
Hello Everyone, I created a new widget that you might find useful. Tucked away in the map context menu are three XY operations 1. Copy XY 2. Project XY (configurable) 3. Go To XY ReadMe.txt included Hope you find it useful! Click Here to demo and download the Coordinate Menu Widget Drew
... View more
02-17-2011
07:51 PM
|
0
|
95
|
38216
|
|
POST
|
Did you have any luck with this? Yes I did. I went into the file com.esri.viewer.skins.MapManagerSkin.mxml file and adjusted the map component in there. Drew
... View more
02-17-2011
03:33 AM
|
0
|
0
|
777
|
|
POST
|
Here is a sample that seems to work for me.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:esri="http://www.esri.com/2008/ags">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<mx:VDividedBox width="100%" height="100%">
<s:VGroup width="100%">
<mx:DataGrid id="myGrid" width="100%" height="100%" />
</s:VGroup>
<s:VGroup width="100%">
<esri:Map id="myMap" x="0" y="0">
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>
</esri:Map>
</s:VGroup>
</mx:VDividedBox>
</s:Application>
Drew
... View more
01-28-2011
07:52 AM
|
0
|
0
|
1233
|
|
POST
|
You have a small error when building your string. add a + sign in your second line.. It should look like so. [code sURL += "?bbox="+myMap.extent.xmin+","+myMap.extent.ymin+" ,"+myMap.extent.xmax+","+myMap.extent.ymax; Drew
... View more
01-21-2011
07:56 AM
|
0
|
0
|
569
|
|
POST
|
Has anyone had any problems with Anno and the Legend Widget? I am getting an error when the legend widget is open and I Pan around. There error is in the API itself ??? suspect this is a bug ERROR: ------------------------------------------------------------------------- TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.esri.ags.skins::LegendSkin/findLeafLayerLegendInfo() at com.esri.ags.skins::LegendSkin/findLeafLayerLegendInfo() at com.esri.ags.skins::LegendSkin/findLeafLayerLegendInfo() at com.esri.ags.skins::LegendSkin/extentChangeHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent() at com.esri.ags::Map/http://www.esri.com/2008/ags/internal::dispatchPanEnd() at PanHandler/enterFrameHandler() Drew
... View more
01-21-2011
06:09 AM
|
0
|
3
|
2493
|
|
POST
|
You will probably want to use the HTTPService object to send a request to the server. You can find more info out here: http://help.adobe.com/en_US/Flex/4.0/AccessingData/WS2db454920e96a9e51e63e3d11c0bf69084-7fdc.html Drew
... View more
01-20-2011
07:21 AM
|
0
|
0
|
453
|
|
POST
|
I would dig around ArcScripts for some old ArcIMS code or just search under the JavaScript category for the word "measure" http://arcscripts.esri.com/ Then email the author to see if they don't mind you converting some of their code to Actionscript - they might want some sort of reference or credit mentioned in the code. Drew
... View more
01-19-2011
12:03 PM
|
0
|
0
|
1023
|
|
POST
|
I need the user to be able to see the length of a polyline as they are moving the mouse to create it. The draw and measure widget provided with the ESRI Flex Viewer 2.2 uses the Geometry service to calculate the measurements. If you want to calculate the measurements live as the user moves the mouse you will have to come up with all the math required to determine the distance on the client side. This can be done (as it was in the ArcIMS days) but it might be tricky and may not be as accurate.
... View more
01-19-2011
07:48 AM
|
0
|
0
|
1023
|
|
POST
|
Can a submitted widget consume a custom web service to assist with the function of the widget (source code also provided with submission)? i.e. - An ASP.NET webservice that uploads or performs some other advanced operations or does it have to be 100% actionscript? Thanks, Drew
... View more
01-16-2011
05:46 PM
|
0
|
0
|
1156
|
|
POST
|
The easiest way is to call a custom web service from your flex application. I would google how to create a web service in your preferred language, and how to consume a web service in Flex. Its quite easy if you have programming experience. Drew
... View more
01-01-2011
06:03 PM
|
0
|
0
|
422
|
|
POST
|
This is how it was done in the ArcIMS days.. I would dig through some ArcIMS code to find the math or search ArcScripts for some Javascript code that did this. Obviously you would have to convert all the JS code into Actionscript but that should not be too hard considering they are almost identical in syntax. Drew
... View more
12-16-2010
02:19 PM
|
0
|
0
|
623
|
|
POST
|
I tested your code and it seems to work for me.. Below is a sample using the agslib 2.1 with your WMS layer added.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:esri="http://www.esri.com/2008/ags"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
import mx.collections.ArrayList;
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<esri:Map id="map" top="76" bottom="10" left="9" right="10">
<esri:WMSLayer id="weatherMap" url="http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi" visibleLayers="{new ArrayList(['nexrad-n0r'])}" />
</esri:Map>
</s:Application>
Drew
... View more
12-08-2010
12:39 PM
|
0
|
0
|
518
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-04-2013 09:40 AM | |
| 1 | 12-11-2012 10:19 AM | |
| 1 | 05-25-2015 10:46 AM | |
| 1 | 05-10-2016 06:31 AM | |
| 1 | 01-17-2017 11:01 AM |
| Online Status |
Offline
|
| Date Last Visited |
12-31-2021
09:54 AM
|