Check the docs or source if available.  There is no click event listed in the 
Events section of the NavigatorContent docs.
I think this is an exception though, I use Flash Builder and don’t remember 
having seen this problem before.
Not sure if this is a FB issue or some other problem.

I’m not clear on what you are trying to do.  Does the Change event not work for 
you?  Are you not trying to detect that a certain tab was activated?
This works fine for me, ie. I get an Alert window on every tab change:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"; 
                           xmlns:s="library://ns.adobe.com/flex/spark" 
                           xmlns:mx="library://ns.adobe.com/flex/mx" 
minWidth="955" minHeight="600">
        
        <fx:Declarations>
                <!-- Place non-visual elements (e.g., services, value objects) 
here -->
        </fx:Declarations>
        
        <fx:Script><![CDATA[
                import mx.events.IndexChangedEvent;
                
                import spark.components.Alert;
                
                protected function 
truckingMenu_clickHandler(event:MouseEvent):void
                {
                        var connection_request:URLRequest;
                        connection_request = new 
URLRequest("file:///D:/Trucking.html");
                        connection_request.method = URLRequestMethod.POST; // 
setting method type
                        navigateToURL(connection_request);  // this is standard 
function.                       
                        
                }

                protected function 
tabnavigator1_changeHandler(event:IndexChangedEvent):void
                {
                        Alert.show("New tab index: " + event.newIndex);
                }
                
        ]]></fx:Script>
        
        <mx:TabNavigator width="96%" height="90%" borderVisible="false"
                                         horizontalAlign="center" fontSize="12" 
change="tabnavigator1_changeHandler(event)">
                <s:NavigatorContent id="truckingMenu1" label="Trucking1">
                </s:NavigatorContent>
                <s:NavigatorContent id="truckingMenu2" label="Trucking2">
                </s:NavigatorContent>
                <s:NavigatorContent id="truckingMenu3" label="Trucking3">
                </s:NavigatorContent>
        </mx:TabNavigator>
        
</s:Application>

Hordur
Lausn

On 10.12.2014, at 17:30, CodeGirl <[email protected]> wrote:

> FYI, even the childindexchange doesnt work as well.   Guess I cant do what I
> was wanting to do.  At least not with the TabNavigator.   Oh, and I did use
> a break point in debug to validate this.
> 
>                       protected function
> tabnavigator1_childIndexChangeHandler(event:IndexChangedEvent):void
>                       {
>                               if (event.newIndex == 4)
>                               {
>                               var connection_request:URLRequest;
>                               connection_request = new
> URLRequest("file:///D:/TruckingFlex/Trucking/bin-debug/Trucking.html");
>                               //                              
> connection_request.data = new URLVariables("param1=" +
> "Prashant"); // to pass any parameter to URL
>                               connection_request.method = 
> URLRequestMethod.POST; // setting method
> type
>                               navigateToURL(connection_request);  // this is 
> standard function.                       
>                               Alert.show("This fired");
>                               }
>                       }
>                       
> 
> 
> 
> 
> --
> View this message in context: 
> http://apache-flex-users.2333346.n4.nabble.com/Open-a-new-Browser-tab-from-Tab-navigator-Content-tp9046p9085.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to