|
POST
|
I'd try removing these lines: pDataGrid.visible = false; pDataGrid.includeInLayout = false; And then after this line: FlexGlobals.topLevelApplication.addElement(pDataGrid); Add: pDataGrid.validateNow();
... View more
01-14-2011
07:42 AM
|
0
|
0
|
623
|
|
POST
|
Map doesn't have a map_extentChangeHandler() function, but if you were to extend map, you could override the setter: override public function set extent(value:Extent):void
... View more
01-13-2011
07:48 AM
|
0
|
0
|
1188
|
|
POST
|
Can you explain what your use case is? Which class would you like to extend?
... View more
01-13-2011
07:12 AM
|
0
|
0
|
1188
|
|
POST
|
There isn't a specific event thrown for timeouts, but your "myFaultFunction" should be getting called. Here's a test case using QueryTask: <?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"
applicationComplete="application_applicationCompleteHandler(event)">
<fx:Script>
<![CDATA[
import com.esri.ags.tasks.supportClasses.Query;
import mx.events.FlexEvent;
import mx.rpc.AsyncResponder;
protected function application_applicationCompleteHandler(event:FlexEvent):void
{
var query:Query = new Query();
query.outFields = [ "*" ];
query.returnGeometry = true;
query.where = "1=1";
queryTask.execute(query, new AsyncResponder(myResultFunction, myFaultFunction));
function myResultFunction(result:Object, token:Object = null):void
{
trace("myResultFunction", result);
}
function myFaultFunction(error:Object, token:Object = null):void
{
trace("myFaultFunction", error);
}
}
]]>
</fx:Script>
<fx:Declarations>
<esri:QueryTask id="queryTask"
disableClientCaching="true"
executeComplete="trace(event)"
fault="trace(event)"
requestTimeout="1"
url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/0"
useAMF="false"/>
</fx:Declarations>
</s:Application> The output when I run this is: myFaultFunction [RPC Fault faultString="Request timed out" faultCode="Client.Error.RequestTimeout" faultDetail="The request timeout for the sent message was reached without receiving a response from the server."]
[FaultEvent fault=[RPC Fault faultString="Request timed out" faultCode="Client.Error.RequestTimeout" faultDetail="The request timeout for the sent message was reached without receiving a response from the server."] messageId="DE381645-A591-8705-EA82-7BF0FA0045D3" type="fault" bubbles=false cancelable=true eventPhase=2]
... View more
01-12-2011
10:42 AM
|
0
|
0
|
762
|
|
POST
|
In the default "auto" mode it should be trying to stay on screen. Can you reproduce it on this sample? http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=FeatureLayer_Click_OnDemand When I click on the right, it comes up on the left and the opposite on the left side of the map. When I pan and move it near an edge, it repositions to try and stay in view. Could you post a screenshot of what you're seeing in your app?
... View more
01-12-2011
10:30 AM
|
0
|
0
|
913
|
|
POST
|
Is your serviced cached? Is "Single Fused Map Cache:" true on the Services Directory page? If not, try setting the type to "dynamic".
... View more
01-12-2011
07:24 AM
|
0
|
0
|
2514
|
|
POST
|
Have you changed the infoPlacementMode style? It defaults to "auto": http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/components/supportClasses/InfoContainer.html#styleSummary
... View more
01-11-2011
12:59 PM
|
0
|
0
|
913
|
|
POST
|
You need a crossdomain.xml file if the domains in the urls are not identical. Even if the Viewer url was http://127.0.0.1/... and the service url was http://localhost/... it would try to load a crossdomain.xml file.
... View more
01-11-2011
09:14 AM
|
0
|
0
|
2158
|
|
POST
|
This project could be helpful: http://code.google.com/p/flex-iframe/
... View more
01-11-2011
09:10 AM
|
0
|
0
|
3259
|
|
POST
|
Can you use a tool like HttpFox to look for requests to your service and see what the responses are? Is your Viewer on the same web server as your ArcGIS Server?
... View more
01-11-2011
07:43 AM
|
0
|
0
|
2158
|
|
POST
|
Another approach could be to keep using responders but create a class member like "private var requestCancelled:Boolean" that you check in your onResult().
... View more
01-11-2011
07:37 AM
|
0
|
0
|
1950
|
|
POST
|
You could create two FeatureLayers where you've set your own renderer or symbol on the 2nd one. This will put more load on the network and the server though so you could duplicate the Graphics and put the copy in the GraphicsLayer. e.g. create a shallow clone that has a reference to the same geometry and attributes: var newG:Graphic = new Graphic(oldG.geometry, null, oldG.attributes); graphicsLayer.add(newG);
... View more
01-10-2011
11:14 AM
|
0
|
0
|
1643
|
|
POST
|
A Graphic is a Flash DisplayObject so it can only exist in one container at a time. You'll need to create separate instances if you want them to exist in both layers.
... View more
01-10-2011
11:06 AM
|
0
|
0
|
1643
|
|
POST
|
Actually a better option than 1 above is to get the layerDetails from the FeatureLayer that's already being created.
... View more
01-10-2011
11:03 AM
|
0
|
0
|
1144
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-06-2017 01:13 PM | |
| 2 | 03-06-2017 02:12 PM | |
| 1 | 06-22-2010 12:01 PM | |
| 1 | 08-06-2012 09:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-15-2025
04:18 PM
|