Depends on the Map API/SDK your are utilizing:
Here is an example for the ESRI Flex SDK:
http://resources.esri.com/help/9.3/arcgisserver/apis/flex/samples/index.
html
There is a sample called - Find Tasks - Zoom to Found Features
A couple of other solutions are the Google and Yahoo Flex APIs - they
all have similar capabilities.
You will have to reference there APIs for further details on how to
implement it with them.
Hope this information helps,
Adam M.