diff --git a/library/src/flexlib/containers/SuperTabNavigator.as b/library/src/flexlib/containers/SuperTabNavigator.as index 8e2409d..3953d5a 100644 --- a/library/src/flexlib/containers/SuperTabNavigator.as +++ b/library/src/flexlib/containers/SuperTabNavigator.as @@ -45,9 +45,9 @@ package flexlib.containers import mx.containers.ViewStack; import mx.controls.Menu; import mx.controls.PopUpButton; - import mx.core.Container; import mx.core.EdgeMetrics; import mx.core.FlexGlobals; + import mx.core.INavigatorContent; import mx.core.ScrollPolicy; import mx.effects.Tween; import mx.events.ChildExistenceChangedEvent; @@ -1177,7 +1177,7 @@ package flexlib.containers for (var i:int = 0; i < this.numChildren; i++) { - var child:Container = this.getChildAt(i) as Container; + var child:INavigatorContent = INavigatorContent(this.getChildAt(i)); var obj:Object = new Object(); //setting the type to an empty string bypasses a bug in MenuItemRenderer (or in