Vertical forms that parade with the tab to keep the cursor on the screen

I have a high vertical shape that is roughly 2000px in height. If the user moves through the fields, they "fall" the bottom of the screen. Which means, the cursor moves in a field out of sight but the scroll bar will not push down automatically to compensate and keep the cursor in view. Ideally the scroll bars to move with the cursor as they do when a tab in a traditional html form. Any help is appreciated. Thank you.

Lokesh-


I had to do this thing myself. A bit like it to be registered in the normal...

Anyway, here's an example application that does what you try to do:

http://www.Adobe.com/2006/mxml">


private void checkPos(target:Object=null):void {}
var yPos:Number = target.y + target.height;
Debug.Text = "";
var shiftAmt:Number = 0;
If {(yPos>cont.verticalScrollPosition+cont.height)}
shiftAmt = yPos-(cont.verticalScrollPosition + cont.height);
Debug.Text += "Move down: '+ shiftAmt + '\n';"
} ElseIf (yPos<=cont.verticalScrollPosition)>
shiftAmt = yPos-(cont.verticalScrollPosition + target.height);
Debug.Text += "Move to the top: '+ shiftAmt + '\n';"
}
cont.verticalScrollPosition += shiftAmt;
Debug.Text += "yPos:" + yPos + "display space: '+ cont.verticalScrollPosition +' - '+ (cont.verticalScrollPosition + cont.height);"
}
]]>








If your form has a TON of controls, then you can just make a function to automatically bind the listener in actionscript... dunno which is easier. Writing onFocus = 'blabla' for each component is a drag, but it's simple...

If there is an easier way to do it, I hope that someone will say so, because this is how I do it and it's not very fun.

Tags: Flex

Similar Questions

  • Online form that opens with the auto-numbering

    I need a web form that opens with a car number 5 digit assigned. Each new shape is increased by one. When submitted it sends to mysql db. All the connections between the form and mysql were made and they work. Just have not figured how to open form with automatic numbering. Any help would be appreciated.

    In all the systems I've seen, the number is generated NOT at THE BEGINNING but once the form is submitted. Think about it, Pedro. When you buy something from amazon, (or elsewhere) you get the number of receipt at the end of the process. When you request technical support online, you get a confirmation AFTER THE number.

    Generally, you are taken to a screen that says: «thank you for...» Your confirmation number is... "but this never happens until the end.

  • The "permanent" that come with the Nike watch complications on standard watch faces?

    The "permanent" that come with the Nike watch complications on standard watch faces?  I see this question has been asked before, but not yet received response - did someone know the answer please?

    No one has a new watch. They will not be shipped before seven. 16. then go to your local store to get an answer to your question.

  • How I replace the toolbar firefox... and remove the toolbar that starts with the MOST VISITED and SUGGESTED SITES

    Somehow lost the toolbar that has the page back arrow and refresh and stop icons. How can I replace those and remove a toolbar that starts with the MOST VISITED and lists several SUGGESTED SITES.

    Hello kittyheckel, please see the Navigation buttons such as back, home, bookmarks and recharge are missing. You'll want to disable the bookmarks toolbar and enable the navigation toolbar.

  • Question about re - install the software that came with the computer

    I inadvertently deleted the controller Ethernet and Bus High Definition Audio my laptop while trying to remove the Real Player I downloaded. How can I get these? What do I need to use the recovery disk that came with the computer or y at - it another way? If I use the recovery disk will I lose data and other software on the computer?

    Thank you.

    Hello

    If you are lucky man you will be able to use the tool to clean Windows system restore.
    This tool allow you to roll back the State of the OS to the point of beginning.
    I think you can use it and try to roll back the OS to the point where you have removed these applications.

  • Can we add this type on the Windows Server that comes with the Microsoft Action Pack subscription?

    Can we add this type on the Windows Server that comes with the Microsoft Action Pack subscription?

    Hello

    The question you have posted is related to professional level support. Please visit the link below to find a community that will offer in support of your request:

    http://social.technet.Microsoft.com/forums/en/category/WindowsServer

  • PHP: The partition on my solitaire game that come with the computer has a prefix of Php.How can I get rid of php?

    The partition on my solitaire game that come with the computer (but not on the same computer system of woman) has a prefix of Php.

    How can I get rid of the php?

    Hi pichick,

    1. what operating system is installed on your computer?

    2. when the question is is produced?

    3. you remember to make changes to your computer before the problem?

    4. are you referring to the solitaire game that is already installed in your operating system, the solitaire online game or the game of solitaire that is downloaded from the Internet?

    In the meantime, follow these methods.

    Method 1:

    Step 1:

    I suggest you Uninstall and reinstall the game and check (if referring to downloaded the game)

    Note: Specific measures for Windows 7 and Vista

    Step 2:

    If you are referring to the solitary of the Games Explorer, you can disable the feature, restart the computer and then turn on the game and check its features.
     
    a. click the Start button, select Control Panel, click programs and then click turn on turn Windows features on or off.

    If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    b. develop the Games folder, clear the check box next to solitaire to turn a Windows feature (game) off

    c. click OK.
     
    That repeat steps but next time make sure that the box next to solitaire.
     
    Turn on or off Windows features
    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-features-on-or-off

    Note: Specific measures for Windows 7 and Vista

    Method 2:

    If the issue took place recently, you can perform a System Restore to the point that it was working fine.

    Note: Specific measures for Windows 7

    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • I reinstalled XP Professional on the disc that came with the laptop. It is said that the activation code is incorrect.

    I inherited my mums old laptop. There were problems with it starting, so I reinstalled XP Professional on the disc that came with the laptop. He said that the activation code is incorrect. I ran the Microsoft Genuine Advantage Diagnostic Tool and ripped the report below. It seems that the activation code I have is correct, so can not understand why it won't work!

    Diagnostic report (1.9.0027.0):
    -----------------------------------------
    Validation of Windows data-->
    Release status: not activated
    Validation code: 1
    Code of Validation caching: n/a
    Windows product key: *-* - T6DFB - Y934T-YD4YT
    The Windows Product Key hash: 3g4CZGFEDgbKmn/oB4pa2FZsssU =
    Windows product ID: 55274-OEM-2211906-00102
    Windows product ID type: 2
    Windows license Type: OEM SLP
    The Windows OS version: 5.1.2600.2.00010100.3.0.pro
    ID: {AC5C185A-C24F-485D-981C-80689A11613E} (3)
    Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: N/a, hr = 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Product name: n/a
    Architecture: n/a
    Build lab: N/A
    TTS error: n/a
    Validation of diagnosis: 025D1FF3-230-1_025D1FF3-238-2_025D1FF3-258-3
    Resolution status: not activated

    Given Vista WgaER-->
    ThreatID (s): n/a
    Version: n/a

    Windows XP Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    File: No.
    Version: N/a, hr = 0 x 80070002
    WgaTray.exe signed by: n/a, hr = 0 x 80070002
    WgaLogon.dll signed by: n/a, hr = 0 x 80070002

    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002
    OGAExec.exe signed by: n/a, hr = 0 x 80070002
    OGAAddin.dll signed by: n/a, hr = 0 x 80070002

    OGA data-->
    Office status: 109 n/a
    OGA Version: N/a, 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Office Diagnostics: 025D1FF3-230-1_025D1FF3-238-2_025D1FF3-258-3

    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default browser: C:\Program may Explorer\IEXPLORE.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed

    Analysis of file data-->

    Other data-->
    Office details: {AC5C185A-C24F-485D-981C-80689A11613E}1.9.0027.05.1.2600.2.00010100.3.0.prox 32*-*-*-*-YD4YT55274-OEM-2211906-001022S-1-5-21-1343024091-602162358-682003330DIXONSXP,DIXONSXPAmerican Megatrends Inc.. 080012 20051128000000.000000 + 000Dell, Dell Computer, Dell, Dell system system system891C39E70184C06C08090409GMT Standard Time(GMT+00:00)03109

    License data-->
    N/A

    Windows Activation Technologies-->
    N/A

    --> HWID data
    N/A

    Activation 1.0 data OEM-->
    BIOS string matches: Yes
    BIOS marker string: Group 1 B 430 stores: Dixons | 1AE0C:Elitegroup Computer Systems Co., Ltd.
    Marker of OEMBIOS string. DAT: Dell, Dell Computer, Dell, Dell system system system

    Activation 2.0 data OEM-->
    N/A

    Help, please!

    Your relocation was made of a set of recovery discs Dell - which uses a key to Dell and cannot be enabled on any other brand.

    It's a Dixons computer odf, then I suspec that the COA sticker on the case is for XP Home edition, while the installation is Pro.

    You need to return to this system to its licensed version of Windows by using the recovery media for that PC - or a good disc XP Home OEM System Builder.

  • can't activate windows xp with the product key that came with the computer

    I got a computer of 510N HP Pavilion from a friend who was absolutely riddled with viruses and malware of all kinds.  Every thing I did to clarify apparently nowhere got done or made it worse.  At the end of the day, the computer would only begin to restart, stop after the start of the HP logo screen, then start to boot, etc and more.  All I could do was to install the hard drive in another computer and format, from scratch.  Now, I'm trying to install the system to XP op for the disc that came with the computer.
    the problem: the code the product key on the case went wrong with the disc.  After searching for solutions, I found a code on the disk by searching the files it contains, tried and it worked!  Problem is when I try to turn it on, it says it's an "unauthorized product key."  I tried to enter that code on the box and who says he is "invalid".  The Cd look authentic; are for distribution with new pc HP and Compaq.  After a further inspection drives are XP Professional SP2, while if it is XP Home Edition.  What gives?  Activation does not anyway. It is any use that will not make me buy a new set of disks?

    Please let me know if more info or detail is necessary.

    PS - only a single piece of hardware has been changed - the cdrom initially provided with the computer was bad, so I went out to perform the installation.

    When you perform a restore to the factory on some HPs condition you have two choices: 1) a restoration which keeps your data and programs (in a repair installation); (2) a full destructive restore which brings back the machine to the State, it's when you first opened the box. In your case, you have already wiped the drive, so the question is moot. I would call the HP technical support. Normally when you use an OEM recovery media (HP, Dell, etc.) a product key is never required during the restore. If you have used the media to restore HP shipped with your system and are always asked for a key and one on the sticker machine is not accepted, then something is certainly. MS - MVP - Elephant Boy computers - don't panic!

  • I used a cleaning program that has removed the solitaire games that come with the software package of vista. Is it possible to recover?

    original title: OOPS! Remove Solitaire games by mistake

    My husband used a cleaning program that has removed the solitaire games that come with the software package of vista. Is it possible to recover?

    Hi L-959,

    Try to reinstall the game Solitaire to turn on or off Windows features.

    Turn on or off Windows features

  • Windows Vista on HP recovery, my current vista said that it isn't legal (it's that came with the computer)

    I intend to recover windows vista on my HP Pavilion DV4 - 1400. For some reason any my current vista said that it isn't legal (it's that came with the computer) I have not changed the operating system. My key of vista down my computer is damaged. If I perform my vista recovery provided with the recovery drive, this will solve the problem? The recovery process will be asking for a cd key, because as I said above that on my laptop is damaged.

    Hello

    with HP, you press F11 on startup to start the recovery process

    and it shouldn't have an entry of your share product key

    for any other questions about the process of recovering HP contact HP because it's their recovery process not microsofts

    Contact HP

    http://welcome.HP.com/country/us/en/contact_us.html

    HP support forums

    http://h30434.www3.HP.com/

  • "Error - a problem prevented the document under analysis. Please try again, or to correct this information, see Help and Support or the documentation that came with the scanner"while trying to scan using HP G4050 on windows 7

    A problem prevented the document are analyzed. Windows 7 - HP G4050 scanner.
    I have a HP G4050 which worked fine with Vista.  After the upgrade to Windows 7, I get the following error when scanning:

    A problem prevented the document are analyzed.  Please try again, or to correct this information, see Help and Support or the documentation that came with the scanner.

    I get a different error during an attempt of an overview.  It starts to get an overview of the page, gets about 2 inches to the bottom of the page and then I get the following error:

    An error occurred when you set the properties of the scanner.  If another program is scanning, please wait to complete, and then try again.

    I downloaded the latest driver (and reinstalled several times) of HP with no luck.  No errors are recorded in the Application events.

    I'm going nuts trying to figure out this one!  Thanks for your help.

    BT

    Update:

    I finally had time to unplug the scanner, wait 60 seconds and then plug it again.

    Problem solved.

    Scan of stupid...

    BT

  • Helps to identify a small part that comes with the card UTO2-XP

    As the described subject line, I'm puzzled to a part that comes with the box UTO2. It of small, rectangular, white, plastic as but sealed in a bag of ESD, pulled in the cage of the UTO2 module.  It looks like the home of cable fiber of some sort.

    If anyone knows what it's called and what/how it serves, very much appreciate your insight.

    Thank you

    The attached document (and the link below) identifies the part as a clip of fiber.  It was initially designed for the card (MRC-12) multi-rate optical.

    http://www.Cisco.com/en/us/docs/optical/spares/15454/SONET/guides/fbrclp.html

  • BlackBerry Smartphones how many mAh is the battery that comes with the 8130?

    How mAh is the battery that comes with the 8130?

    I opened my phone and it does not say how many mAh it is. I'm looking on ebay for an extra battery and want to get an equal or better than the current

    The 8130 comes with a 900mAh battery. Make sure you get a compatible battery for the BlackBerry device. Are listed here:

    http://www.blackberrysource.com/store/catalog.asp?item=782

  • BlackBerry smartphones of the suggestions for a weather link that works with the storm

    Hi guys,.

    Suggestions for a weather link that works with the storm?

    I like this one:

    http://www.NOAA.gov/

    I put in my zip code, and then when he shot to the top of my local forecast I bookmarked this page in my Storm. It marks the latitude and longitude, so when I go there next time I have to weather day.

    Easy to read and not a bunch of gadgets ads cluttering it up.

Maybe you are looking for