Open nicoulaj opened 13 years ago
Updated by abhishek...@gmail.com on 2010-08-19T11:42:05
hey frnd, i want to add 1 custom component() at compile time, then how to add it in super tab navigator ?
Error: The children of Halo navigators must implement INavigatorContent.
Updated by seanbcus...@gmail.com on 2010-08-19T13:08:46
@abhishek:
Put the Group inside a NavigatorContent, and then put that inside the SuperTabNavigator (or any other ViewStack-based container). NavigatorContent is a spark-halo adapter, like an adapter on an English-unit torque-wrench that allows it to use metric-unit parts. Normally, any ViewStack (which is halo) must have halo children. But NavigatorContent is special - it's a halo container that allows one spark child.
Updated by seanbcus...@gmail.com on 2010-08-19T13:09:32
Note: for future technical questions, I recommend http://www.stackoverflow.com
Originally filed by seanbcus...@gmail.com on 2010-06-27T17:22:37
What steps will reproduce the problem? (new SuperTabNavigator()).addChild( new NavigatorContent() )
What is the expected output? What do you see instead? expected: works unexpected: can't cast to Container
What version of the product are you using? On what operating system? flex 4
Please provide any additional information below. easy fix: at top: import mx.core.INavigatorContent; and in reorderTabList: var child:INavigatorContent = this.getChildAt(i) as INavigatorContent; instead of casting to Container