Hello 🙂 Use this event: map.addEventListener(ExtentEvent.EXTENT_CHANGE, repositionInfo); > this will call the repositionInfo function each time you move/zoom on the map. Your code will look something like that:
private function init():void
{
map.addEventListener(ExtentEvent.EXTENT_CHANGE, repositionInfo);
txtVersion.text = "https://server.com/flex/index.html?EXT=" + String(map.extent.xmin) + "," + String(map.extent.ymin) + "," + String(map.extent.xmax) + "," + String(map.extent.ymax);
}
private function repositionInfo(event:Event):void {
txtVersion.text = "https://server.com/flex/index.html?EXT=" + String(map.extent.xmin) + "," + String(map.extent.ymin) + "," + String(map.extent.xmax) + "," + String(map.extent.ymax);
}
good luck!
... View more