Hello all,
I believe I am missing something easy. I have a NON-SFV flex app that has the main app (AddressChecker.mxml) and two separate component .mxmls that contain different type of tools (NavMenuBar.mxml and MainToolBar.mxml).
I can get this to work if all of the tools are coded in the main application or if all the tools were in one .mxml component. But I am trying to learn how to break code down into reusable components.
The problem is handling the map type events between the two components. For example, how do I disable/remove event listener from MainToolBar.tool1 (ie. identify, measure, etc) when the NavMenuBar.Zoom is selected??
Right now, if the Measure tool is selected, then I click the Zoom tool, it will both zoom and start to measure.
Any guidance from the ESRI flex perspective is appreciated. I have been looking at Flex sites, but getting more confused.
Thanks,
Carmen