I am using Robert's compiled TOC widget and attempting to modify the LocateWidget.mxml for the flexviewer. The workflow I have in mind is that user performs an address search clicks the locate button and all my defined operational layers turn on. The clear button would then turn them off.
My attempt at the code is posted here: http://forums.arcgis.com/threads/57851-Modifying-the-LocateWidget.mxml-Locate-and-Clear-functions