HTH
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" >
<mx:Script>
<![CDATA[
import mx.containers.TabNavigator;
public function foo():void
{
var c1:Canvas = new Canvas();
c1.label = "tab a1";
var c2:Canvas = new Canvas();
c2.label = "tab a2";
var c3:Canvas = new Canvas();
c3.label = "tab b1";
var c4:Canvas = new Canvas();
c4.label = "tab b2";
var tabNav1:TabNavigator = new TabNavigator();
tabNav1.addChild( c1 );
tabNav1.addChild( c2 );
var tabNav2:TabNavigator = new TabNavigator();
tabNav2.historyManagementEnabled = false;
tabNav2.addChild( c3 );
tabNav2.addChild( c4 );
c1.addChild( tabNav2 );
body.addChild( tabNav1 );
}
]]>
</mx:Script>
<mx:Canvas id="body" creationComplete="foo()">
</mx:Canvas>
</mx:Application>
On 5/2/06, rigidcode <[EMAIL PROTECTED]> wrote:
In Flex 2, has anyone put a TabNavigator onto the Canvas of a tab of
another TabNavigator (in Actionscript, not mxml)? Without a fatal
exception being thrown when you change tabs on either TabNavigator?
I don't find anyone else with this problem when I search. It seems
like something a lot of people would run into, if they use more than
one tabnavigator in the same app..
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service .
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

