Help needed "tabEnabling" not working in simple login page - Flex

Hello Friends,
I need a small help in Flex. I am doing a simple login page application  in FlashBuilder 4.0 & i have kept 2 input boxes like Login,Password  and a submit buttion. On clicking the button i am calling a method, so  far everything is working fine.... But some how tabenabling is not  working. suppose if you are in login inputbox and i press "tab key" it  has to go to password input box.. but its not working. can any one help  me on this, why it is not working. i have tried all the attempts using  tabEnabled = "true". but stil i am failing to do this.
your help would be appreciated.
Rajesh
Message was edited by: Rajeshb_Flash

<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
   width="100%"
   height="100%"
   verticalAlign="middle"
   horizontalAlign="center">
<mx:Script>
  <![CDATA[
   import com.tel.model.EventConstants;
   import mx.controls.Alert;
   import mx.managers.CursorManager;
   import mx.rpc.events.FaultEvent;
   import mx.rpc.events.ResultEvent;
   import mx.rpc.http.mxml.HTTPService;
   private var httpService:HTTPService;
   public var userID:String = "";
   public function init():void{
   private function mouseClickSubmit():void{
    if(userName.text != "" && password.text != ""){
     userID = userName.text;
     initService();
    }else{
     if(userName.text == ""){
      Alert.show("Please enter 'User Name'.","Alert!")
     }else if(password.text == ""){
      Alert.show("Please enter 'Password'.","Alert!")
   private function initService():void{
    var params:Object = new Object();
    params["userName"] = userName.text;
    params["password"] = password.text;
    httpService = new HTTPService();
    httpService.showBusyCursor = true;
    httpService.resultFormat = "xml";
    httpService.method=URLRequestMethod.POST;
    httpService.addEventListener(ResultEvent.RESULT, httpServiceResultHandler);
    httpService.addEventListener(FaultEvent.FAULT, httpServiceFaultHandler);
    httpService.url = "Login.action";
    httpService.send(params);
   private var boolFirstRun = true;
   private function httpServiceResultHandler(event:ResultEvent):void{
    httpService.removeEventListener(ResultEvent.RESULT, httpServiceResultHandler);
    httpService.removeEventListener(FaultEvent.FAULT, httpServiceFaultHandler);
    httpService = null;
    var resultXML:XML = new XML(event.result.toString());
    if(resultXML.children().toString() == "true"){
     boolFirstRun = false;
     dispatchEvent(new Event(EventConstants.LOGIN_SUCCESS))
    }else{
     userName.text = "";
     password.text = "";
     Alert.show("Login Failed! Invalid 'User Name' or 'Password'.","Alert")
   private function httpServiceFaultHandler(event:FaultEvent):void{
    httpService.removeEventListener(ResultEvent.RESULT, httpServiceResultHandler);
    httpService.removeEventListener(FaultEvent.FAULT, httpServiceFaultHandler);
    httpService = null;
  ]]>
</mx:Script>
<mx:Panel title="Login Page" width="400" height="300" styleName="loginPanel" verticalAlign="middle" horizontalAlign="center" backgroundImage="assets/images/hello.jpg" backgroundAlpha=".1">
   <mx:VBox width="260" height="95" styleName="loginBox" backgroundAlpha=".2">
   <mx:HBox width="100%">
    <mx:Label width="85" text="User Name" styleName="loginTextStyle"/>
    <mx:TextInput width="150" id="userName"/>
   </mx:HBox>
   <mx:HBox width="100%">
    <mx:Label width="85" text="Password" styleName="loginTextStyle"/>
    <mx:TextInput width="150" id="password" displayAsPassword="true"/>
   </mx:HBox>
   <mx:HBox width="100%">
    <mx:Spacer width="80%"/>
    <mx:Button label="Enter" id="submit" click="mouseClickSubmit()"/>
   </mx:HBox>
  </mx:VBox>
</mx:Panel>
</mx:VBox>

Similar Messages

  • HELP NEEDED Data not working IPhone 6 3GB

    Hi there, For the past few months have had extremely frustrating issues surrounding my data usage on my O2 phone. It's a long story and I'll try and keep it brief. Around Feb/March on old contract/phone ( Iphone 5s 1GB) - found that when I ran out of data and called 2202 to add more data, I would be charged but the data was never used. As soon as I hung up the phone it still wouldn't connect (which it didnt use to do before) Got a new phone and contract on upgrade - IPhone 6, 3GB - As soon as I took it home and switched it on I got a text saying my data had run out. O2 said this was because my new contract had not kicked in. Left it 24 hours and still did not work on data. TRIED EVERYTHING network settings update/changed APN/turned on and off/reset. Nothing worked. They even added 5GB of data and changed my contract for the remainder of the month which they said should kick it into gear but it did not work at all. Never used my new phone on 3G. Then my bill date came - and it miraculously worked - clearly because the data had been reset. Within two weeks it had run out (no idea how I am very good with data) and AGAIN same issue - couldn’t add moreo2 have been extremely unhelpful and saying the issue is my fault and something is draining my data. My issue is though how can it work fine for 2 weeks and then as soon as I add more within milliseconds of putting down the phone something has sucked all my data? No account issues/nothing they can see is wrong apart from my account says I have used all my data (including the 1GB I called up to add on.) Im waiting for my bill date which is the 24th to see what happens. But o2 have essentially said they cannot help me which is ridiculous. I have changed all my data settings to stop push notifications/background app refresh etc. Any ideas as to why when I run out that is it? Apologies for the long message but its been an ongoing issue and very frustrating.

    So its now my bill refresh day. I've immediatley turned off my data so that its not being used. My My O2 says I only have an allwance of 1.09GB when my tarrif says 3GB on a different MyO2 page. WHAT IS GOING ON! How can they then say this is my own fault! (I've screenshotted this) Also a quick question - If i want to get out of my contract without having to wait 8 weeks for them to reply to my complaint, is there any way I can sell the phone myself? Or do I have to hand it back? At the end of old contracts I've always sold myself rather than handing over for 100 quid because I can get more. 

  • Help viewer does not work after update to 10.4.4

    Since updating to 10.4.4 my Help viewer does not work, and all of the troubleshooting fixes suggested in other threads have not had any success in resolving this. I've noted that when I go to Users>Library>Documentation>Help there is no mac.help file - can someone tell me if that means that I've lost the file altogether and need to reinstall it? I get to the first screen of the viewer, but the links from there don't work. Thanks for any help that you can provide!

    Thanks for your suggestion. I downloaded OnyX and ran the cleaning function. After restarting, I opened Help and once again the first screen appeared fine. But again most of the links did not work, though those under the "What's New" heading did work. I might add that I had previously tried a variety of suggestions posted in another thread, which included deleting from the caches folder in Home>Library several files such as com.apple.helpui and help.plist in the Preferences folder. (As noted in my previous post this evening, I also created another user but that also did not have any effect.) Any other ideas? Thanks

  • PLz help 7key is not working suddenli in my N-73

    PLz help 7key is not working suddenli in my N-73 and the 7 is simply displaying on the screen help plz....
    Birla

    Ok.
    It sounds as if something is keeping the key pressed, and that can be down to 2 reasons.
    The phone has got wet and the internal key is corroded and fused, making a constant connection
    or
    Dust or dirt in under that key and are having the same affect
    Either one of these reasons will need to be fixed at a Nokia Care Point as it will involve taking the phone apart.
    You can find the nearest NCP to you at the Store Locator
    Use the drop down list on the right to find your country.
    If it is either of these faults, the NCP will probably charge you as it wont be a warranty fault, but a customer created fault.
    Hope this helps.
    My posts are my opinion and in no way the direct views of Nokia.
    If my posts are helpful, please give me some KUDOS using the green star on the left.

  • Just updated my laptop to itunes 10.5,the help feature does not work.also updated my ipad2 3g wifi 64gig to ios5, now none of my purchased apps are working?? please help?

    I JUST UPDATED MY ITUNES TO ITUNES10.5 ON MY LAPTOP(WIN7)
    THE HELP FEATURE DOES NOT WORK.
    I ALSO UPDATED MY IPAD2 3G WIFI 64GIG TO IOS5 AND NOW NONE OF MY PURCHASED APPS WORK??????????

    I have seen this before. You need to update the apps in your app store, and once they are updated, they will work again.

  • Help button is not working in Infoview

    Hi All ,
    I am working on BO XI R2 environment and help button is not working properly in my infoview.
    I can get help files from Admin console but the same is not true with infoview.I got two different server installations, one of them its working fine but not for the other.
    I checked for help files in IIS and they are there , even I verified web.config file as well for infoview and it also seems to be correct.
    Please advice what could be the reason.
    Thanks,
    Vivek.

    CLOSED

  • F4 help key does not work in ESS on ITS in Portal

    Hello All,
    F4 help key is not working in all iviews in ESS in Portal.When i try to press it nothing happens and no pop up appears,kindly please suggest wt might be the cause of this error? Iam tired struggling with this issue and not able to trace out reason for the same.My Email Id is [email protected] .Plz revert at earliest.
    regards,
    Saumya

    Hi,
      This kind of problem is known when webgui is being started from an IAC, e.g. HRWPC_FC_EXEC
    You have to set parameter ~webgui_popups 1 in the service file of this IAC.
    BR,
    Disha.
    Pls reward points for helpful answers.

  • In P6 P6 Help link is not working

    Hi,
    My P6 help link is not working in help menu.
    P6 Library and Support link are working.
    As suggested in another discussion i tried to update link in Admin>Application setting and restarted weblogic, But system is still taking some other link than i defined in application setting.
    Can anybody help?

    Hi,
    We worked on this issue ,
    Solution:
    In the P6 EPPM Admin application in the corresponding configuration, In P6 Help url we have modified the url from  http://hostname:8203/p6help/help to http://hostname:8203/p6help/ and we restarted the P6 server in weblogic console.
    Then everything fine now,
    Regards
    Kumar

  • HELP-Rollover image not working

    I am having problems with the rollover image on my index page @ edzayi.com.  While the rollover images work fine on the rest of my pages it is not working on this particular page.  I have checked the code on different pages and compared it to my index page and although everything looks the same, it is still not working.  HELP!!!!

    eddem wrote:
    Thanks so much Nadia.  It was a matter of moving the meta script.  You are the best!!  Now it works the way I intended it to: www.edzayi.com
    You're welcome  :-)
    And yes, the right alignment was intentional.
    Does look a little strange though  - would look much better centered (personal opinion of course)     ;-)
    Nadia
    Adobe® Community Expert : Dreamweaver
    http://twitter.com/nadiap
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    http://csstemplates.com.au/

  • Help front camera not working on my sons iPod touch 5g

    Help front camera not working on my sons iPod touch 5g

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:       
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    -  Make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • Zsh completion can not work after re-login

    I follow http://www.linux-mag.com/id/1106/
    my .zshrc
    autoload -U compinit
    compinit
    zstyle ':completion:*' verbose yes
    zstyle ':completion:*:descriptions' format '%B%d%b'
    zstyle ':completion:*:messages' format '%d'
    zstyle ':completion:*:warnings' format 'No matches for: %d'
    zstyle ':completion:*' group-name
    if [ -d ~/zshfunc ] ; then
    r() {
    local f
    f=(~/zshfunc/*(.))
    unfunction $f:t 2> /dev/null
    autoload -U $f:t
    fpath=(~/zshfunc $fpath)
    autoload -U ~/zshfunc/*(:t)
    fi
    There is a ~/zshfunc/_fossil script, but it can not work after re-login.
    The temp workaround is re-type 'compinit' manually.
    fossil <tab> # will use file name as completion
    compinit
    fossil <tab> # will show commands for fossil
    Last edited by dlin (2014-11-10 00:47:14)

    Hi
    Thanks for the tip. However, I elected not to save the XP SP2 uninstall files when I installed SP2. so I appear to be stuffed.
    There must be some creative drivers that work with an audigy with XP SP2 installed!
    If not then its either re-format the Hard Dri've and re-install everything again (Doh!!) or get another (not Creative Labs) soundcard.
    this is really bugging me.
    Zonker

  • My Help Viewer is not working for mac help

    My Help viewer is not working for mac help. Everytime i choose mac help the window opens then closes. But when i open another help like safari help it opens and works fine. If i switch it back to mac help the window just closes and the application quits.
    If you know how to fix please telll!

    noname212,
    Using "Search Discussions" with the term "Help Viewer" you will lead you to numerous posts which refer to Troubleshooting Help Viewer by Dr. Smoke.
    Good Luck
    ;~)

  • My Safari browser is not working well. Junk pages keep poping in and key pages for me appear intoxicated by alien pop ups preventing me navigate that page. Updated last Safari version and problem prevailed. Tried downloading Safari for Mac OS X Mavericks.

    My Safari browser is not working well. Junk pages keep popping up and key pages, for me, appear intoxicated by alien pop ups preventing me navigate that page.
    I updated to latest Safari version (7.0.4) but the problem persists.
    I tried downloading a new version of Safari for Mac OS X Mavericks but couldn't find it available.
    Thanks for your help.

    The pop ups are malware. It's not necessary to reinstall Safari.
    Help here ..
    The Safe Mac » Adware Removal Guide
    The Safe Mac » Genieo
    The Safe Mac » Mac Malware Guide
    Just so you are aware, on a Mac running Mavericks, the only way to reinstal Safari to to restore OS X using OS X Recovery

  • Front page opens works shortly freezes. only yellow green buttons work. I click yellow to minimize normal top bar menu appears I choose new page, opens works normally. The restart saved tabs does not work on that first page.

    front page opens works shortly freezes.
    only yellow green buttons work. I click yellow to minimize normal top bar menu appears I choose new page, opens works normally.
    The restart saved tabs does not work on that first page.

    Hi @prdstudio3 ,
    Thank you for visiting the HP Support Forums. The Serial Number needed to be removed from your Post. This is From our Rules of Participation:
    Protect privacy - yours and others'. Don't share anything about yourself that you would not want to see on a road-side billboard. Don't post contact or other personal information-your own or anyone else's-or any content that you receive in one-to-one communications without the author's consent. For example, don’t post your computer’s serial # or contact information publicly, and do not allow someone you don’t know to remotely take control of your computer.
    If you need people to contact you directly, either ask them to send you a private message or subscribe to the thread so you will be notified when there are replies. You may also click on your name anywhere in the forum and you will be taken to your profile page, where you can find a list of threads you have participated in.
    Sharing personal email addresses, telephone numbers, and last names is not allowed for your safety. If you have any questions feel free to send me a private message in reply.
    Thank you
    George
    I work for HP

  • I have a printer xerox 3220 on networking ,have pc´s and a mac ,problem:it´s already install but does not work ,only print many page with code program,i will appreciate the solution

    i have a printer xerox 3220 on networking ,have pc´s and a mac ,problem:it´s already install but does not work ,only print many page with code program,i will appreciate the solution

    Hi guillermospain,
    Welcome to the Support Communities!
    The article below may be able to help you with this.
    Click on the link to see more details and screenshots. 
    OS X: Connecting a Wi-Fi printer to your Wi-Fi network
    http://support.apple.com/kb/ht3500
    OS X Mountain Lion: Set up a printer
    http://support.apple.com/kb/PH11145
    OS X Mountain Lion: Reset the printing system
    http://support.apple.com/kb/PH11143
    Cheers,
    - Judy

Maybe you are looking for

  • Data Federator connection from universe - commProtocol EBUS error

    I am working with a prospect that is attempting to get a universe to communicate with DataFederator via JDBC.  We modified the jdbc.sbo file and added the line <Paramter Name="URL format">jdbc:datafederator://$DATASOURCE$;catalog'&quot';$DATABASE$'&q

  • Officejet Pro 8500 Premium

    The copier runs the printhead align every time you turn it on or print from the computer. This started after calling tech support, case #[Personal Information Removed]. I originally called because of color problems and the ink level showing empty whe

  • AE CC 2014 and OSX 10.7.5?

    I see the system requirements call for 10.8 or 10.9 - is anyone using AE CC 2014 with 10.7.X? I have a lot of ProTools work to wrap up this year before I update my OS (which will require new protools version and a new interface, pricey!) I have an SS

  • Elements Organizer does not die on exit

    I've been using Photoshop Elements for more than 10 years now and I use it for 40,000+ photos, videos and PDF. I'm currently using Elements 11 on 64 bit Windows 7, but the problem has been there for the last few versions. I've had a consistent proble

  • Mac mini to television and monitor?

    Hi everybody, I'm buying a Mac Mini as soon as the updated models are released. I'm also planning on buying a 24" Apple LED Cinema Display and a Panasonic TC-32LX85 32-Inch 720p LCD HDTV. My question is this: Will I be able to hook up the Mac Mini to