All,
This is what I tried so far...but still fail to work.
I put below code inside Banner.mxml
private var configData:ConfigData;
private var myInfoWidget:Object;
private function setConfigdata(event:AppEvent):void
{
configData = event.data as ConfigData;
myInfoWidget=getWidgetLabel("Identify");
}
private function getWidgetLabel(widgetLabel:String):Object
{
var Widget:Object;
for (var i:Number = 0; i < configData.configWidgets.length; i++)
{
if (configData.configWidgets.label == widgetLabel)
Widget = configData.configWidgets;
}
return Widget;
}
private function SetIdentify():void
{
myInfoWidget.activateIdentifyTool;
}
The above SetIdentify function did not do anything.
FYI, I am still using older version of Flexviewer and API (agslib-1.2.swc).
Please advice
Regards,
Sobari