 
         for (i = 0; i < numViews; i++)
         {
-            child = INavigatorContent(targetStack.getChildAt(i));
+            child = Container(targetStack.getChildAt(i));
             var item:Button = Button(createNavItem(itemToLabel(child), child.icon));
 
                  

                IndexChangedEvent.CHILD_INDEX_CHANGE, childIndexChangeHandler);

            var numViews:int = targetStack.numChildren;
            var child:INavigatorContent;

            for (var i:int = 0; i < numViews; i++)
	        {
                child = INavigatorContent(targetStack.getChildAt(i));

                child.removeEventListener("labelChanged", labelChangedHandler);
                child.removeEventListener("iconChanged", iconChangedHandler);

                if (targetStack)
                {
                    Button(getChildAt(i)).enabled = value &&
                            Container(targetStack.getChildAt(i)).enabled;
                }
                else
                {
