Hi Graham, thanks, I actually asked the poster of that code if it was
throwing an exception for him too.  It's not throwing an error for
you, then?  Actually hmm, it looks like I'm not the only one gettng
the exception:

http://groups.yahoo.com/group/flexcoders/message/35334

I'll try that solution...



--- In [email protected], Graham Weldon <[EMAIL PROTECTED]>
wrote:
>
> Hi rigidcode,
>
> The following code works fine, and is the solution ot your previous
post
> about using TabNavigators in ActionScript:
>
> ---------------------------------------------------------------
> package NestedTabs {
>     import mx.containers.Canvas;
>     import mx.containers.TabNavigator;
>     import mx.events.FlexEvent;
>     import mx.controls.Label;
>     import flash.system.Security;
>
>     public class NestedTabs extends Canvas
>     {
>         private var tn1 : TabNavigator;
>         private var tn2 : TabNavigator;
>
>         private var tn1tab1 : Canvas;
>         private var tn1tab2 : Canvas;
>         private var tn2tab1 : Canvas;
>         private var tn2tab2 : Canvas;
>       
>         public function NestedTabs() : void
>         {
>             super();
>
>             // Fire the __onCreationComplete event when the component
> has been created.
>             this.addEventListener(FlexEvent.CREATION_COMPLETE,
> __onCreationComplete);
>           
>             Security.allowDomain(new Array("10.5.0.56"));
>         }
>       
>         private function __onCreationComplete(_event : FlexEvent) : void
>         {
>             var tn1 : TabNavigator = new TabNavigator();
>             tn1.percentHeight = 100;
>             tn1.percentWidth = 100;
>           
>             var tn1tab1 : Canvas = new Canvas();
>             tn1tab1.label = "Welcome";
>             tn1.addChild(tn1tab1);
>           
>             var tn1tab2 : Canvas = new Canvas();
>             tn1tab2.label="Hello";
>             tn1.addChild(tn1tab2);
>           
>             var tn2 : TabNavigator = new TabNavigator();
>             tn2.percentHeight = 100;
>             tn2.percentWidth = 100;
>           
>             var tn2tab1 : Canvas = new Canvas();
>             tn2tab1.label = "wefwe";
>             tn2.addChild(tn2tab1);
>           
>             var tn2tab2 : Canvas = new Canvas();
>             tn2tab2.label = "wefwe333";
>             tn2.addChild(tn2tab2);
>           
>             tn1tab1.addChild(tn2);
>           
>             this.addChild(tn1);
>             this.setVisible(true);
>         }
>     }
> }
> ---------------------------------------------------------------
>
> Regards,
> Graham Weldon
>
>
>
> rigidcode 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
> >
<http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>

> >       Computer software development
> >
<http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>

> >       Software design and development
> >
<http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>

> >
> > Macromedia flex
> >
<http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZI36cYzBjw>

> >       Software development best practice
> >
<http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>

> >
> >
> >
> >
------------------------------------------------------------------------
> > YAHOO! GROUPS LINKS
> >
> >     *  Visit your group "flexcoders
> >       <http://groups.yahoo.com/group/flexcoders>" on the web.
> >       
> >     *  To unsubscribe from this group, send an email to:
> >        [EMAIL PROTECTED]
> >     
<mailto:[EMAIL PROTECTED]>
> >       
> >     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >       Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> >
------------------------------------------------------------------------
> >
>






--
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




Reply via email to