I used infowindow for information of a feature layer on click event.
The way i implemented is onMouseUp event on map:
private const infowindowscreen:mxmlpage = new mxmlpage ();
private function onMouseUpMap(event:MouseEvent):void
{
const mapPoint:MapPoint = MainMap.toMapFromStage(event.stageX,event.stageY);
Map.infowindow.content = infowindowscreen;
---code to add values to all public variables on infowindowscreen--
Map.infowindow.show(mapPoint);
}
It works fine.. however the infoscreen sometimes go beyond the screen especially close to the edges.
Is there a way automatically center it on the screen?