In SFV 1.3, you could get the search widget from the application as a IBaseWidget and then re-type it as a search widget (this was shown in the postings for passing url parameters to your application). When I try to do this in SFV 2.0, I can get the searchwidget typed as a IBaseWidget, but get a null value when trying to retype it as a search widget. Has anyone be able to do this in 2.0? Here is the snippet of code with the variable values I get in the Flash builder debugger:
var bw:IBaseWidget = WM.widgetTable.toArray()[0];
value of bw = widgets.Search.SearchWidget (@9049ae1) //from the debugger
var sw:SearchWidget = bw as SearchWidget;
value of sw = null // if I try to directly declare it, it says it cannot by cast as a search widget.
Re-casting the base widget as a search widget works in SFV1.3.