I am looking for a way to reset/refresh or invalidate the StyleProvider of all components on stage at once.
Is there any way to achieve this without having to add all components to some kind of map and then manually resetStyleProvider on them?
EDIT 1: Starling Version
EDIT 2: I came up with a simple recursive workaround function to solve this issue as the following:
public function resetAllStyleProviders(control : Sprite) : void
{
var len : int = control.numChildren;
var childControl : FeathersControl;
for (var i : int = 0; i < len; i++)
{
childControl = control.getChildAt(i) as FeathersControl;
if (childControl)
{
if (childControl.numChildren > 0)
{
resetAllStyleProviders(childControl);
}
childControl.invalidate();
childControl.resetStyleProvider();
}
}
}