Number validator: when click, red box wont disappear when valid (but will with tab!)

Hi
Reproduce problem:
- paste code to new project (below)
- click checkbox
- click on the first input box
- enter: 100
The red glowing error box should have disappeared, but it will disappear only when you focus
on another component e.g. the second input box.
If you refersh the screen, click the checkbox, and **TAB** onto the first input box, type 100,
the error glow will disappear as I expected. This is what I want for click also. Any ideas?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
    initialize="onInit()">
    <mx:Script>
        <![CDATA[
            import mx.validators.NumberValidator;
            private var amountValidator:NumberValidator;
            private function onInit():void{
                amountValidator = new NumberValidator();               
                amountValidator.property = "text";
                amountValidator.trigger = txtAmount;
                amountValidator.triggerEvent = "change";
                amountValidator.minValue = 10;
                amountValidator.domain = "int";
                amountValidator.precision = 0;
                amountValidator.allowNegative = false; 
                amountValidator.source = txtAmount;                        
            private function onInputChange():void{
                amountValidator.validate();
                trace("input");
            private function checkClick():void{
                if(myCheckBox.selected){
                    amountValidator.validate();
        ]]>
    </mx:Script>
    <mx:HBox horizontalGap="5" x="68" y="37">
        <mx:CheckBox id="myCheckBox" click="checkClick()"/>
        <mx:TextInput id="txtAmount" change="onInputChange()" width="160" height="20" restrict="0-9" maxChars="8" x="75" y="44"/>
        <mx:TextInput id="dummyInput"  y="72" x="75"/>
    </mx:HBox>
</mx:Application>

Found the answer/workaround. Its logged as  a bug here: https://bugs.adobe.com/jira/browse/SDK-26549
Add an event tag to the target TextInput e.g. <mx:TextInput id="myTextInput" keyUp="myTextInput.drawFocus(true)".....

Similar Messages

  • My screen won't scroll, and apps won't open when touched, but will with double touch.  When an icon is touched a black outline surrounds it.  Any suggestions?

    My iPhone 4s suddenly stopped opening apps when icons were touched.  Touching an icon puts a black box around it and it will only open with a double touch, then app will not scroll at all.  Also, cannot switch sideways l between home screens. Tried resetting, resyncing, no help.

    Oh my gosh! Thank you so much for your answer! I wasn't able to fix my phone for days and my cell phone company's store didn't even know how to fix it.  Thank you so much!  BTW your answer made my phone work again!!!

  • Purchased and downloaded/installed Captivate 7 but get 'serial number valid but' error

    Purchased and downloaded/installed Captivate 7 but get 'serial number valid but a qualifying product could not be found on this computer' error.  I have checked serial number, checked that I purchased correct version (7) direct and not an upgrade but the drop down list tha tthe window shows is only previous 6 versions and it is 7 I purchased/installed and is opening.

    Captivate thinks you bought an upgrade.  Adobe Support will have to help you. 
    I went through this (with an upgrade) but my qualifying product was also an upgrade, and Adobe didn't list my original product (CP2).  So there was no way to put in all the info. 
    And, just FYI, keep that serial number handy.  Even after Adobe Support fixed my Captivate so that it will run, every once in awhile...for no apparent reason...Captivate will start in "trial" mode and I have to re-enter the serial number.  It always works after I do that.  But, it's a pain so I now keep the serial number posted on my bulletin board for handy reference.
    Rebecca

  • My iMessage won't activate my email but will with phone number. I type my password and it says it's wrong I change it and it still says its wrong. I even made a new account and it still says the password is wrong.

    My iMessage won't activate my email but will with phone number. I type my password and it says it's wrong I change it and it still says its wrong. I even made a new account and it still says the password is wrong.

    Hi hectorness12!
    Thanks for using the Apple Support Communities! I have found an article that can help you with troubleshooting your iMessage issue. The article can be found here:
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    Thanks,
    Braden

  • TS1369 I have set up 3 ipod today and now the 4th one wont connect to itunes, but will charge from a power point

    I have set up 3 ipod today and now the 4th one wont connect to itunes, but will charge from a power point

    - 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
    - Try another cable. I dubt it will help but do it since you have more cables
    - Try another USB port
    - Try on another cable. Again I doubt it will do anything
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar                          

  • Confirmed serial number valid but when I do set up says not valid

    I managed to get a tech on chat who confirmed my serial number for CS6 Master Suite was valid but when I do set up and enter sn it says it is not valid.

    copy and paste into your browser's address bar, http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html

  • CS5 Reinstall Error: Serial Number Valid, but no eligible product code. Chat not accepted. What now?

    I am trying to reinstall CS5 from my disks (I also tried an online download) and continue to get this error:
    The serial number you entered is valid but a qualifying product cannot be found on this computer.
    I don't have a serial number for an earlier version and when I click the "your account page," I get a 413 error (Header length too large).
    What should I do?

    Hi Adobe Team,
    I have emailed you my phone number, but am still desperately waiting for an answer to my question. I have also emailed you a few times, and really need a solution ASAP as I have a big project due.
    Help!

  • Serial number valid, but no qualifying product?

    I bought Acrobat XI Pro ($199) and download the trial application.  when I enter serial number, return message "Serial number is valid but a qualify product could not be found on this computer.  I have another computer tower right next to this one that has Acrobat X (but I cannot retrieve existing serial number.  On my Adobe Account it only indicates that I have Adobe ExportPDF annual.  How do I get XI Pro to work or get a refund of my money?

    If you registered AA X, then you should be able to get the SN from Adobe Support.

  • Battery charges when asleep but will NOT charge while awake

    Hello -
    By battery will charge when off/asleep but will not charge while awake. It just slowly drains to nothing and dies even though adapter is plugged in. magsafe adapter light is green when open/on and orange when off/asleep and lights on battery indicate charging while in the latter state. still using stock battery that came with computer when I got it a few years ago, so it's not new by any means, but when fully charged lasts as long as it used to. I would think maybe charger is issue, but it DOES charge, just not while awake. not sure why computer wouldn't still work correctly while plugged in if in battery indicator it says power source is "power adapter," but its not. I have tried resetting PMU and calibrating battery. the combo of the two seemed to work when having issue a few months ago, but it just started doing it again. frustrating because once it dies I have to wait several hours until its fully charged again, so it cramps the workflow... any ideas? battery info from profiler below.
    Cheers,
    Ian
    Battery Information:
    Model Information:
    Serial Number: DP-ASMB013-3556-2063
    Manufacturer: DP
    Device name: ASMB013
    Pack Lot Code: 0001
    PCB Lot Code: 0000
    Firmware Version: 0102
    Hardware Revision: 0300
    Cell Revision: 0100
    Charge Information:
    Charge remaining (mAh): 81
    Fully charged: No
    Charging: No
    Full charge capacity (mAh): 4571
    Health Information:
    Cycle count: 827
    Condition: Good
    Battery Installed: Yes
    Amperage (mA): -1134
    Voltage (mV): 10921
    System Power Settings:
    AC Power:
    System Sleep Timer (Minutes): 60
    Disk Sleep Timer (Minutes): 10
    Display Sleep Timer (Minutes): 20
    Automatic Restart On Power Loss: No
    Wake On AC Change: No
    Wake On Clamshell Open: Yes
    Wake On LAN: Yes
    Display Sleep Uses Dim: Yes
    Battery Power:
    System Sleep Timer (Minutes): 5
    Disk Sleep Timer (Minutes): 10
    Display Sleep Timer (Minutes): 1
    Wake On AC Change: No
    Wake On Clamshell Open: Yes
    Display Sleep Uses Dim: Yes
    Reduce Brightness: Yes
    Hardware Configuration:
    UPS Installed: No
    AC Charger Information:
    Connected: Yes
    Charging: No

    Scott - Your answer ultimately led me to the answer, albeit months later, after much internal deliberation and some trial and error... thanks!
    Ruled out battery (as crazy as that sounds - it's had a bajillion cycles) as it didn't make sense that battery would charge but wouldn't work while awake. I have a friend whose battery is completely shot and his still works as long as magsafe is plugged in, and mine wouldn't even do that. tried another adapter and that worked. then tried mine in a different plug. so in the end, turns out I had a bum powerstrip... mag safe / battery recharge works properly when just plugged in somewhere different.
    So no need to buy a new charger or battery (yet!)
    thanks to all,
    Ian

  • When the user of my form clicks a box/radio button, a predefined text will appear elsewhere in the form.  How do I do this?

    I am creating a form for a hospital.  I have a form with Yes/No checkboxes.  I want the results of these checkboxes to trigger the display of predefined texts in textboxes on the same document.  For example, if it says: "Neck Pain?  Y  N" and they click "Y", I want a message to be entered in an "Instructions" box on the form.  I've got the form made, I just need direction on the if/then for all the clicking.  i.e., "if they click YES on this, type out THIS in this other field..."etc.

    Use this as the mouse up script for the checkbox:
    if (event.target.value!="No") {  //If checkbox is ticked
    this.getField("Textbox1").value = "Instructions for Neck Pain Go Here";  //Replace Textbox1 with the name of your field
    else this.getField("Textbox1").value = "";   //Clear the text field if checkbox is not ticked

  • Photoshop asks for serial number even when I sign in with my Adobe ID

    I have a Creative Cloud membership and I have installed Photoshop and Illustrator. Illustrator works fine, but when I run Photoshop it asks me to license the software. I sign in with my Adobe ID, but then it tells me to enter a serial number. I've tried reinstalling etc, it does not help.

    Having International English-only as an option is a business/legal requirement for Europe.
    I understand the frustration but it is difficult. If you sign up as a Free Trial user (so you have not yet paid for International English) which language should we default to? We default to the language of the operating system. Perhaps not perfect but a choice is made. And this works over 99% of the time, except for multi-lingual users whose OS is not set to English and choose International English-only. And yes I empathize as someone who can work fluently on both English and Japanese systems.
    Any more feedback you have on how you would suggest to improve things please let us know. I will make sure that the feedback reaches the correct teams here.

  • Firefox closes when "tools"+ "options" clicked & won`t respond to Typed URLs but ok with "bookmarked"urls

    Investigating why FF was using so much memory I was advised to use "Restore Firefox" button.
    Did that but now I can`t use "tools" "options" `cos it closes the browser. Other menus under "tools" work OK.
    If I try to download any updates for plug-ins etc the FF browser closes down.
    Can`t browse my images folders to add to interactive sites.....closes down FF
    Can type a URL but nothing happens but if I enter a "bookmarked" url or a "history" url then it is OK
    Firefox is 16.0.1
    Any help appreciated please.

    Thanks for your response.Unfortunately when I try to download '''anything''' my browser closes so I can`t reinstall Firefox.
    Many of the fixes say "go to Tools & Options" but when I click on Options the browser again closes.
    I seem to have lost access to IE some while ago and have been using Firefox OK up until recently, but then my computer started to go very slow and the Task Manager keeps showing 100% usage of the CPU.
    When I start the pc with only the desktop displaying, the CPU usage is 60-70% and around 35 processes are running. Is this normal?
    When I open Firefox the usage increases rapidly until the CPU shows 100%.
    It was while resetting Firefox to try and sort this usage problem that I lost my download ability and the use of "tools" then "options" and also urls that are typed in.(bookmarks & history ok)
    Any advice welcome.

  • HT204384 My SD card wont read in FInder but will show in disk utility, any advice?

    Hi, my card reader started to become inconsistant over the last week and it has now stopped reading cards all together. It will show up in Disk utility so i can format it etc but it just wont show in the Finder section. When i remove the card without prompting, i get the 'Failed to eject properly' message. Any advice would be appreciated. I only purchased in Nov 2011 brand new so not sure what operating system it is but you may know from date of purchase.
    Thanks
    Rob

    I had this problem too on my MBP mid-2012 running Mavericks.  SD cards (in MBP slot or USB reader) would not show up in Finder.  I was able to see them mounted in Disk Utility.  What tipped me off that they were in fact mounting (and led me to check Disk Util) is that the OS complained of improperly ejecting the sd card when I removed it.
    To clarify what BDAqua said, but I didn't understand until I saw another thread, here's what fixed my problem:  Click on 'Finder' 'Preferences', select Sidebar tab and tick the box 'external disks' in the Devices section.
    Now my sd cards show up.  Thanks!!

  • PSE 5.0 serial num valid, but will not run, how fix?

    Hard drive crashed and come bak from techs woirking fine but when click adobe PSE5.0 icon (as b4 crash) I only get error msg: 'Your adobe PS E user name, organization, or serial nmber is missing or invalid. The application cannot continue and must now exit."
    I cannot see what serial number the softwaare is using, but I have a note from a previous call where I wrote down the serial number. Today I called Adobe support and they said the serial number was valid.
    Then they said to come to this forum for a resolution...can you help, pls?
    gary hoffman

    In that case, i believe you will have to buy another serial number for the downloaded/trial version and then use it.
    If this is not an option, then be prepared to talk to customer care and see if they can help in some way.

  • HP TouchSmart 320-1130a strange error cant install, wont run linux live, but will boot ERD commander

    this PC came to me as a "look and see" with a stranger error.
    symptoms:
    HP boot splash screen bios (post) OK
    it starts to load windows then loops. (resets)
    what i tried: (and the strange symtoms)
    ran all the HP inbuilt diags, mem, cpu, hdd, pc board, all passed, OK
    it WILL happily boot via YUMI hirens boots cd (ERD) commander  XP mode  and can see all drives etc, can copy data from HDD to external usb or another portable drive.
    what it wont do:
    WONT boot a live USB/DVD linux via YUMI, starts to load (5 seconds worth then loops)
    WONT do clean win7 install, starts to load (5 seconds then loops)
    PC is not running hot, cpu only just warm.
    RAM modules pass with memcheck, (2 checkers ran)
    Help, any ideas???
    (I can pretty well try anything that people suggest tech-wise with PC`s)
    no go in safe mode, (just loops)
    i put a freshly formatted 80GB sata drive in. set windows 7 setup in process, got just past the first white loading windows bar, then froze, and looped/resets
    with this same 80GB hard drive in, I CAN boot hirens +ERD commander  all works as expected.
    CANT boot any live linux usb/cd`s. loads a few seconds of a live cd/usb then loops.
    what i find odd is the fact that erd commander (XP) WILL boot and i can do as i like in the GUI , copy stuff from/to the hard drive.
    this proves CPU,HDD,RAM is ok (i think??? must be something wrong?)
    HDDD has been proven ok in another machine, scandisk,checkdisk, even spinrite.
    RAM has been proven via memcheck, memtest86, and another ram checker.
    dvd drive WILL boot hirens and erd commander.
    *someone told me could be the graphics part of the CPU that is partly dead?*
    any ideas?
    Cheers,
    Richard

    Hello @rgormley1968,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I have read your post on how you cannot install or run multiple operating systems on your computer, and I would be happy to assist you in this matter!
    Since your desktop is not able to perform a clean installation of Windows 7 and loops before you can perform any functions, please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region.
    http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    I hope this helps!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

Maybe you are looking for

  • Reset cleared items

    hello,   what is the difference between reset cleared itmes and reset & reverse cleared items in fbra , please let me know.

  • How to get value and name of the n'th parameter in a pl/sql funct./proced.

    procedure test(name varchar2, birthdate date, zip number, country varchar2); in procedure x I do test('Michael Postmann', to_date('03.01.1983', 'DD.MM.YYYY'), 7461, 'AUSTRIA'); And this should htp.print the following: test: name=Michael Postmann,birt

  • IPod Touch Web Browsing on TV

    Is there any way to web browse from iPod touch to a TV? I have the correct cable and for video out and can watch Videos and You Tube but being able to view the web too would be awesome! Any ideas please?

  • Any hints on using iPod Touch outdoors?

    One of the reasons I wanted an iPod touch was the availability of nature field guides.  I bought the iBird Plus app and recently tried to use it instead of carrying around a hard copy field guide.  It works fine in the shaded woods, but even with the

  • Pick Activity delaying WS response causing timeout error

    Hi, In my BPEL process, I am invoking a Webservice through partnerlink. After the invoke activity i am assigning some message to the output variable. It is working fine. Now, i want to display a custom message on WS response time out. In order to ach