I want to store geometries in an array but am getting errors retrieving the data. I have done a test on length and it contains objects.
private var geometryArray:Array; geometryArray = new Array();
for each(var graphic:Graphic in fs.features) { geometryArray.push([graphic.geometry]); } later ..... map.extent = geometryArray.extent.expand(3); ===> ERROR HERE
Error #1034: Type Coercion failed: cannot convert []@19e9c971 to com.esri.ags.geometry.Geometry.
I have tested with just one instance and it works fine, such as this..
var geom:geometry;
geom = graphic.geometry;
..... map.extent = geom.extent.expand(3);
______________________________________ so I know the geometry is fine...