Drew, OK I see the issue... You need to replace your WidgetManager.mxml getWidgetId function with this one./**
* @return Returns the widget ID for a specific widget based on the widget label.
*
*/
public function getWidgetId(widgetLabel:String, isController:Boolean = false):Number
{
var id:Number = Number.NaN;
if (isController){
for (var c:Number = 0; c < configData.controls.length; c++)
{
if (configData.controls.label == widgetLabel)
{
id = configData.controls.id;
}
}
}else{
for (var w:Number = 0; w < configData.widgets.length; w++)
{
if (configData.widgets.label == widgetLabel)
{
id = configData.widgets.id;
}
}
}
return id;
}
and use this code:ViewerContainer.getInstance().widgetManager.getWidgetId("hc",true)
The new second optional parameter tells the function you are looking for a UI Widget (controller).