I created a drawTool in the index.mxml of flex viewer as the following. I need to use the map in the MapManager.mxml, I want it to be binded. I also tried map = {com.esri.viewer.managers.MapManager.map}, but it does not work either. <esri:DrawTool id="myDrawTool"
drawEnd="drawEndHandler(event)"
map="{map}"/>
How do I get access to the "map" in the flex viewer's environment? In Flex API sample, user can create <esri:Map> themselves, but here what should I do? Thanks!