TabNavigator - How to change what happens when a user clicks a tab

I am using a TabNavigator in my Flex application and I'd like
to be able to change what happens when a user clicks a tab on the
TabNavigator. I'd like to be able to handle the click on the tab
myself and stop Flex from perfoming it's default actions. Anyone
have a clue how to do this? Any help would be much appreciated!
Mike

Yeah, in the following code, the changeHandler has an effect
but the click effect does not:
<?xml version="1.0"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
private function clickHandler():void{
accounts.setStyle("fontSize",20);
stocks.setStyle("fontSize",20);
futures.setStyle("fontSize",20);
private function changeHandler():void{
accounts.setStyle("fontSize",7);
stocks.setStyle("fontSize",7);
futures.setStyle("fontSize",7);
]]>
</mx:Script>
<mx:TabNavigator borderStyle="solid"
click="clickHandler()" change="changeHandler()">
<mx:VBox id="accounts" label="Accounts"
width="300"
height="150">
<mx:Label text="Accounts"/>
</mx:VBox>
<mx:VBox id="stocks" label="Stocks"
width="300"
height="150">
<mx:Label text="Stocks"/>
</mx:VBox>
<mx:VBox id="futures" label="Futures"
width="300"
height="150">
<mx:Label text="Futures"/>
</mx:VBox>
</mx:TabNavigator>
</mx:Application>

Similar Messages

  • What happens when multiple users access the same servlet?

    Do the users share all the same resources? Or is a new process generated for each user? I have a servlet that builds a string to return to the user and I only have myself to test, so I can't really see what happens when many users access the servlet. Is there a possibility that the string will get screwed up, like when dealing with multiple threads, or do all the users get their own resources and I don't have to worry about that?

    huh? if you can point a test servlet at it, you can point a browser at it (even if the servlet does not serve html it will run)
    try pasting the servlet URL into a web browser
    refreshing multiple browsers repeatedly could provide a manual test

  • How do I ensure that when a user clicks a box on the check box widget, the check box remains?

    Hi, I am using Captivate version 7. I am using a Checkbox widget on a slide. When the user checks the check box and then closes out of the course, how do I ensure that when the user goes back into the course, the check box remains? We're posting on an LMS. Thanks!

    Every widget, variable is reset when a course is restarted. Moreover you cannot control what is checked in the Checkbox widget by another action than the user click, even though you can change the value of the associated variable. I think you'll have to look for another solution.

  • What happens once an user click shutdown button

    when an user clicks shutdown button, what OS does
    1. will it stop all the process running in the background right away and spend time in closing those?
    2. apps (exe) which were running won't be having any control and it is fully operating system which does everything
    to kill all the running processes right?
    3. What is the exact flow that OS follows to kill apps when shutdown button is pressed.?

    Hello Sarath_dnv,
    About the Windows Shutdown details, please take a look at the following article.
    http://blogs.msdn.com/b/b8/archive/2011/09/08/delivering-fast-boot-times-in-windows-8.aspx
    1. The user initiates a shutdown by selecting “shut down” from the Start menu, or by pressing the power button; or an application initiates shutdown by calling an API such as ExitWindowsEx() or InitiateShutdown().
    2. Windows broadcasts messages to running applications, giving them a chance to save data and settings. Applications can also request a little extra time to finish what they’re doing.
    3. Windows closes the user sessions for each logged on user.
    4. Windows sends messages to services notifying them that a shutdown has begun, and subsequently shuts them down. It shuts down ordered services that have a dependency serially, and the rest in parallel. If a service doesn’t respond, it is shut down forcefully.
    5. Windows broadcasts messages to devices, signaling them to shut down.
    6. Windows closes the system session (also known as “session 0”).
    7. Windows flushes any pending data to the system drive to ensure it is saved completely.
    8. Windows sends a signal via the ACPI interface to the system to power down the PC.
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • What happened when i now click a photo in a particular album i get the message "the volume for img_4006 cannot be found"  what do i do

    when i click on a photo in a particular album---i get the message "the volume for img_4006.jpg cannot be found.  it used to open just fine.  all other photos in different albums open up.  what happened and i can i fix this?
    thanks

    Are you running a Managed or a Referenced Library?
    A Managed Library, is the default setting, and iPhoto copies files into the iPhoto Library when Importing. The files are then stored in the Library package
    A Referenced Library is when iPhoto is NOT copying the files into the iPhoto Library when importing because you made a change at iPhoto -> Preferences -> Advanced. The files are then stored where ever you put them and not in the Library package. In this scenario you are responsible for the File Management.

  • How to control what happens when an app crashes?

    I can't for the life of me remember where the setting is for telling MacOS X to display a dialog asking if you want to Relaunch, Reset, Ignore etc.
    Anyone? Thanks, people.

    smithrj,
    Don't think I communicated my question well enough: I know how to crash an app. What I don't remember is where I find the setting which changes the OS's behavior, once an app's crashed. By default, an OS X installation prompts the user with a dialog, to the effect: "Application Safari has unexpectedly crashed. Do you want to Relaunch, File a report, Ignore?"
    But I have changed this behavior to permanently Ignore. Now, where was the setting? Thanks.

  • Changing what happens when the I close the lid?

    I recently switched from Windows to a 13" MacBook Pro. I really like my MacBook, however, I was wondering if there was a way to set what the computer does when I close the lid (i.e. instead of going to sleep is there a way to tell it to just stay on and shut off the display)? I do work in the theatrical market and also a lot of video editing and would like to be able to start a process and then close the lid and allow it to run while I am away from the computer. Any help or suggestions would be appreciated.

    This idea sounds highly inadvisable from the heat point of view - with a processor-intensive activity like handling video you are asking to overheat the laptop if the lid is closed.
    MaxBooks are designed to be able to run when closed,so overheating should not be a proble if the MacBook ventilation is not blocked.
    <http://support.apple.com/kb/ht3131>

  • Change what happens when I click on earbuds

    Hello!
    Let's cut straight to my problem!
    I am fairly new to Macbook, so please be patient and try to understand me (I am from Sweden and my English is not 100%)
    SO... I want to Macbook (Pro) to react the same was as my iPhone (5) when I use my earbuds. Volume up and down works the way I want, simply changeing the volume. But when I have spotify playing on my iPhone and press the mid-button it will act as pause/ play. And double click will do 'next' and triple click will do a 'previous'
    When I try to do this on my Macbook, it will just launch iTunes instead (even though I have Spotify up and running)
    Is there any way I can change the "deafault media player via earbuds" to make them a controller for Spotify/ VLC media player instead of iTunes.
    I hope you guys understand my problem and that the solution is simple! I don't know much technical terms in the Macbook world, so please try and explain simple and step-to-step ways to fixing my problem!
    Thank you!
    Regards Gustav

    Dammit, can't find an edit button o.O
    In other words, I want my earbuds controller to react the same way as the F7 F8 and F9 keys, with previous, play and next

  • Trigger when user clicks a tab ??

    I have a tabbed canvas. When the user clicks a tab of the canvas, what trigger fires? Thanks

    The WHEN-TAB-PAGE-CHANGED-trigger.
    Inside, you can use :SYSTEM.TAB_NEW_PAGE and :SYSTEM.TAB_PREVIOUS_PAGE to detect from where to where navigation goes.

  • I want to change my Apple ID because I have a new email address, but what happens when someone tries to facetime me using my old Apple ID?

    I want to change my Apple ID because I have a new email address, but what happens when someone tries to facetime me using my old Apple ID? Will they still be able to contact me on facetime using my old Apple ID?

    Not if you change the ID.  You would need to give them the new address.

  • How to rename in batch.  What happens when I follow instructions is that I get 8909808001.jpg  for 1.  All I want is 1.

    How to rename in batch.  What happens when I follow instructions is that I get 8909808001.jpg  for 1.  All I want is 1.

    Provide the name of the program you are using so a Moderator may move this message to the correct program forum
    This Cloud forum is not about help with program problems... a program would be Photoshop or Lighroom or Muse or ???

  • What happens when you earn points on here? how do you use them

    what happens when you earn points on here? how do you use them

    https://discussions.apple.com/static/apple/tutorial/reputation.html

  • HT1657 What happens when you rent movies and they don't play? How come that question is not on the list?

    What happens when you rent movies and they don't play and you tried getting credit for it?  I rented two movies which they were very very old movies in black & white and they both don't play.  I never had this problem before even when downloading videos. Now how can I get credit for it?  I contact itunes a number of times and no one has done nothing as of yet.  Itunes also asked me for my order number which I sent them but still no credit.

        Great question MommaBof4! This is actually something that can be completed. VZW does have the option to turn this feature on or off based upon the users request. If you would like to update this feature on your device please give us a call by dialing *611 send from your VZW device, thanks!
    MatthewS_VZW
    Follow us on Twitter @VZWSUPPORT

  • HT201342 What happens when I purchase a new iPad? How Will my music, photos and information transfer? Does iCloud hold all of that, if so how do I access it?

    What happens when I purchase a new iPad? How Will my music, photos and information transfer? Does iCloud hold all of that, if so how do I access it?

    Welcome to the Apple Support Communities
    When you set up iCloud on a new device, you will get photos from Photo Stream (you will have to transfer them to the device), your contacts, calendars, notes, reminders and your iCloud mail address. All of this will be done automatically by iCloud when you log in iCloud on your device.
    To transfer your purchased music, see > http://support.apple.com/kb/HT2519 Also, if you have the music on your computer, just connect the iPad to the computer and sync it with iTunes to get your apps, movies, music...

  • I am due to upgrade my iPhone 3 to iPhone 5. I have icloud which co-ordinates my phone and mac what happens when I get a new phone - I dont want to lose all my contacts, notes, addresses etc. Do I have to disconnect icloud and how? What happens?

    I am due to upgrade my iphone 3 to iphone 5.  I have icloud which is co-ordinating my iphone 3 and Mac Pro updating each other.  What happens when I get a new phone - I dont want to lose all my addresses, notes etc.  What is the procedure and step by step action?  The new phone arrives - then what?

    When I upgraded from the iPhone 3GS to iPhone 5, I simply did a Backup of my phone using iTunes, plugged in the new iPhone 5 into my Mac, and did a Restore of that backup to put everything back. This procedure is documented around the web. Also, the new phone will ask you for your Apple ID and when you enter it, all your iCloud info will be downloaded to the phone. It worked pretty well for me.

Maybe you are looking for

  • Problem generating stubs for Java EJB web service deployed in OAS

    I created an EJB web service and I've successfully deployed it in my Oracle App Server. Some of the methods work fine but others produce the ff error: org.apache.soap.SOAPException - java.lang.IllegalArgumentException: No Serializer found to serializ

  • Exporting a video that is 3 minutes and it keeps saying that it is 43 minutes

    This seems like a strange problem. I have been duking it out with the frequently asked questions forums and nothing seems to address this problem. Just to give you an idea of what I have going on. I am using a mac book pro with OS X version 10.6.8 I

  • Date to Calendar Week in Update Rules

    Hi Experts, Does anyone of you know how/where BI/BW do the mapping when translating date in to a week in update rules? Thanks in advance, Rose

  • Exporting RAW Files

    I am sure there is an easy answer to this but I can't find it...I'm afraid I'm pretty new to Aperature and RAW. I shoot in RAW and my Aperture files are in the NEF format. How do I export them as RAW? Or, what is the highest res format I can export?

  • How to preserve disclosure triangle state in audio bin when I close L8?

    Every time I open the audio bin, all my clips and loops have their disclosure triangle 'opened' and thus display every version of every clip. It makes for a long, long list. I would like to configure logic such that the disclosure triangles in the au