wiln / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

SuperTabNavigator doesn't support Spark children - easy solution #314

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by seanbcus...@gmail.com on 27 Jun 2010 at 5:22

GoogleCodeExporter commented 8 years ago
hey frnd,
i want to add 1 custom component(<s:Group>) at compile time,
then how to add it in super tab navigator ?

Error:
The children of Halo navigators must implement INavigatorContent.   

Original comment by abhishek...@gmail.com on 19 Aug 2010 at 11:42

GoogleCodeExporter commented 8 years ago
@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.

Original comment by seanbcus...@gmail.com on 19 Aug 2010 at 1:08

GoogleCodeExporter commented 8 years ago
Note: for future technical questions, I recommend http://www.stackoverflow.com

Original comment by seanbcus...@gmail.com on 19 Aug 2010 at 1:09