Select to view content in your preferred language

RouteTask error in FLEX API

388
2
06-14-2010 08:00 AM
jessieleo
Emerging Contributor
Hi,

I was using Flex to implement RouteTask, such as Find Route Directions.
While there were compile errors "Type was not found or was not a compile-time constant: FeatureSet" in the following code.

do I need to add aditional SWC besides agslib - 1.3?

***************************************
private var stopsFS:FeatureSet = new FeatureSet();
var stop:AddressCandidate = addressCandidates[0];
***************************************


Thank you

jessie


jessie@mapmobility.com
Tags (2)
0 Kudos
2 Replies
DasaPaddock
Esri Regular Contributor
Make sure you have an import statement for it.

import com.esri.ags.tasks.FeatureSet;

http://resources.esri.com/help/9.3/arcgisserver/apis/flex/apiref/com/esri/ags/tasks/FeatureSet.html
0 Kudos
jessieleo
Emerging Contributor
Thank you, it works.

Jessie
0 Kudos