How can i find the label of all the tabs of a tab navigator??

I have a tab navigator which has three fixed tabs and dynamically i am creating few tabs. Before creating a tab i wanted to know which all tabs are currently open, basically the name of all the tabs which are open.
Please let me know how can i achieve this.
Thanks

extended from the TabNavigator example in the API docs
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication 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"
                       creationComplete="init()">
    <fx:Script>
        <![CDATA[
            private function init():void
                for (var i:int = 0; i < tn.numElements; i++)
                    var btn:Button = tn.getTabAt(i);
                    trace(btn.label);
        ]]>
    </fx:Script>
    <s:layout>
        <s:VerticalLayout/>
    </s:layout>
    <s:Panel title="TabNavigator Container Example"
             width="75%" height="75%"
             horizontalCenter="0" verticalCenter="0">
        <s:VGroup left="10" right="10" top="10" bottom="10">
            <s:Label width="100%" color="blue"
                     text="Select the tabs to change the panel."/>
            <mx:TabNavigator id="tn"  width="100%" height="100%">
                <!-- Define each panel using a VBox container. -->
                <mx:VBox label="Panel 1">
                    <mx:Label text="TabNavigator container panel 1"/>
                </mx:VBox>
                <mx:VBox label="Panel 2">
                    <mx:Label text="TabNavigator container panel 2"/>
                </mx:VBox>
                <mx:VBox label="Panel 3">
                    <mx:Label text="TabNavigator container panel 3"/>
                </mx:VBox>
            </mx:TabNavigator>
            <s:Label width="100%" color="blue"
                     text="Programmatically select the panel using a Button control."/>
            <s:HGroup>
                <mx:Button label="Select Tab 1" click="tn.selectedIndex=0"/>
                <mx:Button label="Select Tab 2" click="tn.selectedIndex=1"/>
                <mx:Button label="Select Tab 3" click="tn.selectedIndex=2"/>
            </s:HGroup>
        </s:VGroup>
    </s:Panel>
</s:WindowedApplication>

Similar Messages

  • In iPhoto, how can I find a particular event using the search function?, In iPhoto, how can I find a particular event using the search function?

    In iPhoto, how can I find a particular event using the search function?

    NO - read my last answer over a year ago
    That is because iPhoto is all about photos - not about files
    You do not access the piles in iphoto - you access the photos using either iPhoto or the media browser - see this user tip for photo access details
    LN

  • I moved iTunes folder location, now all my personal song ratings and playlists are gone.  How can I get them back?  All the iTunes files are intact, just in a new location.  Running iTunes 11.1.5.5

    I moved iTunes folder location, now all my personal song ratings and playlists are gone.  How can I get them back?  All the iTunes files are intact, just in a new location.  Running iTunes 11.1.5.5 on Windows 7

    Put everything back the way it was.
    Them move the folder correctly.
    http://support.apple.com/kb/ht1364

  • Where can I find a guide to all the options and settings available via the "about:" pseudo-URL? (Using FF 3.6.8)

    When I last used Firefox support, several years ago, I saw mention of a long list of options and settings available, using a kind of local URL, beginning with "about:". I can't find it now. The text "forums" that I saw then seem to have disappeared and been replaced by support for dummies who might be frightened if they saw a page containing more than just a tiny amount of information.
    The question is: where can I find this guide, listing all the available options and settings so that I can make my own decisions?

    I must have forgotten; it wasn't exactly FF support, but Mozillazine. '''Thank you for the pointer'''. The "long list" I was thinking of was in fact about:config, which is pointed to by that page.
    Given all that, I think it should be easier to find Mozillazine from the FireFox support pages.

  • When i burn videos to a dvd-r disc it works on my macbook but not on a windows/pc or my dvd player. How can i make it work on all the above and not just a mac product?

    when i burn videos to a dvd-r disc it works on my macbook but not on a windows/pc or my dvd player. How can i make it work on all the above and not just a mac product?

    Unfortunately, the recording & movie industry does not respect the rights of the people who make them money, and thus you can only use the paid-for content in ways they see fit. Even if I lived in a bunker where no one else could possibly see the movie I paid for, therefor I'm not 'sharing it illegally', I would still not be allowed in a blue moon to copy that movie to DVD for TV viewing. Someone will tell you to get an AppleTV. How about Apple give us one for free? Until this changes, people wanting to use their content in multiple locations will continue to download music & movies via torrents, legally or illegally.

  • I am having problems with the InDesign it won't download it keeps saying extract when its about 30% then it says failed. How can i get it to download all the way?

    I am having problems with the InDesign it won't download it keeps saying extract when its about 30% then it says failed. How can i get it to download all the way?

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • My iphone has calendar history for 10 years.  my icloud only shows about 6-8 weeks back.  how can i get icloud to show all the calendar events in the past that are on iphone?

    my iphone has calendar history for 10 years.  my icloud only shows about 6-8 weeks back.  how can i get icloud to show all the calendar events in the past that are on iphone?

    I encountered a similar problem when finally (and with much regret) I was obliged to migrate my MobileMe to iCloud last month.
    Many years of iCal history vanished without trace during this automated transition by Apple and iCloud then kindly synched the resulting vacuum back to iCal on my Mac.
    Fortunately, iCloud wasn’t able to decimate iCal on my other Macs because (1) they are still running Snow and (2) I had switched them off as a precaution.  Good job I did.
    My solution was to export my iCal data on one of those other Macs to a backup file – then I imported that backup file into my Lion-updated Mac’s iCal. That restored all the iCloud-deleted iCal data back on to my Mac and this was promptly synched automatically to my Calendar on iCloud.  So now it’s all there and showing.
    Perhaps you could do something similar?  In the meantime, be very careful not to let iCloud’s amnesia get synched to your iPhone (and other devices).
    Experience has taught me never to trust an “upgrade” until it is proven to be working correctly and always to keep in reserve another Mac with a properly-functioning system and all synching to it switched off...

  • Siri can not find my location and all the other apps do not even

    siri can not find my location and all the other apps do not even
    iPad 3 IOS 6.0.1

    Do you have a wifi signal?  In order for the wifi only iPad to get any location fix, it needs to be connected to a wifi node - it's only way to determine locations is by looking up the wifi networks hardware address in Apple's wifi node location database of approximate locations (as mentioned already, it has no GPS chipset to use GPS location data).

  • How can I save a page with all the links for offline reading

    how can I save a page with all the links for offline reading

    Maybe '''Pocket''' is what you want?
    [https://addons.mozilla.org/en-US/firefox/addon/read-it-later/?src=search Pocket (Mozilla Addons)]

  • How can i find my lose iphone with the same apple id i use now

    how can i find my lose iphone with the same apple id i use now

    If you set it up on your iPhone before you lost it then you can sign into your iCloud account on a computer and attempt to locate it.

  • How can I find my Mac Adress for the Ethernet Port from a Apple Airport Express Device ?

    How can I find my Mac Adress for the Ethernet Port from a Apple Airport Express Device ?

    You can only locate, lock or erase your device when it is logged into iCloud and 'Find My Phone' is enabled, additionally the device will need to be switched on and connected to a wifi or cellular network.
    Unfortunately, you cannot activate iCloud or 'Find My Phone' remotely.

  • How can I save VI's with all the subvi's.

    Dear Sir or Madam,
    I wrote a vi that I want to share with another person. I have sent the
    vi to my friend and he told me that he received it, but he need the
    SUBVI'S.
    I have many subvi's in the main vi including some commercial libraries.
    Therefore I want to be sure that the next time all the subvi's will be
    send with the main vi. How can I do this??? This is my question.
    I was playing around the saving options, but I am not comfortable with
    the results.I am using LABVIEW 6i.
    Many, many thanks for your patience and any help( I am a non-expert in
    programming).
    Luis Díaz
    [email protected]

    Select Save with Options>Development Distribution. You'll be prompted for the name of a .llb to save all of the VIs in. You can refer to the on-line help or the LabVIEW User Manual for more information.

  • HT4061 how can i find my imei number  without the phone

    how can i find my imei number without my phone but got the origional number

    iTunes on you computer saves this information.
    Open iTunes.
    Open Preferences. (In Mac OS X, choose iTunes > Preferences. In Windows, choose Edit > Preferences.)
    Click the Devices tab.
    Position the mouse arrow over the iPhone name to display the numbers including IMEI of the backed-up device.

  • How can I stop my browser crashing all the time?

    My browser shuts down frequently for some unknown reason. Once it crashes at a particular website, or place on a website, I can almost never access that point again, the browser will close every time I try to go there.
    I've been using Firefox, but I've tried other browsers, and it happens with all of them. I was getting the message box, "Browser closed unexpectedly", with the option to restore the session or start a new one. I had to download an upgrade, to the newest Firefox, in order to use Turbotax. Now the message is "We're sorry, Firefox crashed unexpectedly", with options to start over or restore session.
    If I restore the session, it just crashes again if I try to return to the point I was attempting to access.
    There was another person who posted about this same problem, and was advised to use the Disk Utility to repair the disk. I followed the directions, did the disk repair, etc., but it's still closing unexpectedly. It doesn't seem to be happening as often, but I can't access Turbotax now. It closes every time, while I'm waiting for the site to create a secure connection.
    I'm on dial-up, too. I don't know if that has anything to do with it. I hope not, as that's my only option at this time. I'm in an area that has frequent power outages, so I shut my machine down whenever I'm not using it. I have been caught by surprise a few times, and the power has gone off while I was using the computer. I don't know if that could have caused this problem to develop.
    Anybody know why this happens, or more importantly, how I can fix it?

    Thanks, but no, it doesn't help. That's basically trouble-shooting Safari. The problem is with my system, I'm not using Safari, though I've tried it. I tried Safari, Firefox, Opera, and Seamonkey, they all do the same thing, at exactly the same websites.
    I know I need to update. I'm on dial-up and haven't been able to update. I don't have someplace or somebody I can go to to access via high-speed. There are no internet cafes around here. There are no Apple stores around here. You can't get an update disk from Apple, which seems really ridiculous to me, but if you don't have high speed access, they don't really seem to care about doing anything whatsoever to help you out.
    I realize there are not a lot of us out in the sticks, but we do exist, there really are still places without all the bells and whistles.
    Thanks anyway, I'm working on finding out how I might be able to score an update. If can get that, if it still boots me out, I'll re-post.
    My thanks to all who responded. I appreciate your time.

  • How can I find which applications are using the most power?

    I have recently noticed a full charge of power doesn't last as long as it used to on my iPad 2.  Is there some way to determine which applications are using the most power?
    I have been monitoring my home network router accesses and have noticed the iPad logs accesses every 15 seconds.  This only happened recently.  It had been well behaved and only accessing once or twice a day before.  I installed the most recent iTunes upgrade, per suggestions during a Sync.  The problems seemed to occur after this update.  I have gone through all the settings and have minimized the applications requiring higher power (I switch off the location services unless I'm away from home.  Likewise, I turn off my cellular carrier unless I'm away from home, etc.)
    In short, how can I maximize my power usage (aside from turning it off)?
    Thanks.
    Dave

    Thanks for responding so quickly.
    I'm really trying to find out why the battery is depleting much faster than it used to all of a sudden.  I used to be able to put a full charge on it and it would last about 5 to 6 days with normal use (normal for me).  Now that battery only lasts about 2 to 3 days with the same use.
    I DO recharge it when it needs to be charged but this is indicating there is something else (new) that is causing the power drain.

Maybe you are looking for

  • HP Pro L7680 all-in-one printing extra blank pages

    No matter what I print the printer adds a blank page before and after each print job. Doesn't matter application amd I don't see it on fax, scans or copies. Thi shappened after my laptop had to be wiped and reloaded. I reloaded the drivers and has ha

  • Ipad Screen protector with impact protection?

    I need to get a Protection for my ipad and iphone5 from my kids, and I came a cross Rhino Shield on marshable. http://www.kickstarter.com/projects/1081571316/rhino-shield-the-impact-resistant -screen-protector looks very good indeed, and this is what

  • Designing entire ad layouts in Photoshop vs. Indesign?

    Why would you take a layout from Illustrator or Photoshop to InDesign when you can do the entire layout in either of those programs, with crop guides and save the files as a PDF for printing? Is there any reason to not do an entire layout in Photosho

  • Weblogic security error

              Hi folks,           I'm not especially proficient with Weblogic, I haven't really done any development           with it but I am a little familiar with configuring some pieces. Bearing this           in mind, what follows is pretty sparse

  • Returned Failure Exit Code 1603

    I am having an issue with one server in particular trying to install the CM client. The server is running Server 2008 R2 and is used as our primary file server. ccmsetup.log repeats the following line... ![LOG[File 'C:\Windows\ccmsetup\vcredist_x86.e