Robert,
Thanks for your advice. I tried your suggestion of "this.map.centerAt(zoomExtent).then(lang.hitch(this, DoFlash()));"
Then I tried "map.centerAt(zoomExtent).then(lang.hitch(this, DoFlash()));"
I still got the same error message.
Basically, I need to make sure DoFlash() happens after the map is re-centered. But when I put "alert" at the beginning of DoFlash(), the map exent has not changed yet.