MichaelK,I have attached a jpg image file to this thread. These are the errors coming from the app I'm currently working on... At line 136 in bldgSchIdentify.mxml, here is the script:
protected function onItemClick(event:ListEvent):void
{
var mygraphic:Graphic = findAttributes(event.itemRenderer.data); //line 136
mygraphic.symbol = sms_fExp;
}
At line 143 in bldgSchIdentify.mxml, code is:
public function findAttributes(myAttr:Object):Graphic {
for each(var mGra:Graphic in myGraphicsLayer.graphicProvider) {
if(mGra.attributes === myAttr) {
myMap.extent = mGra.geometry.extent.expand(2.8); //line 143
return mGra;
}
}
return null;
}
And here's the final code line:
<mx:DataGrid id="myGrid" width="100%" height="100%" visible="false" color="0x006699"
editable="false" itemClick="onItemClick(event)" /> <!--line 201-->