A 2-sided track's Thumb, with a list of items in center, forces the tumb to jump on selected item

With Adobe Catalyst, you can create nifty VerticalScrollBars for DataLists. I've create a thumb of the verticalscroll bar as two images (left & right of track).  When I click on an item in the list, the thumb listens to the mouse on the track and tries to scroll to that area, instead on selecting the ticket.
Check the image for a clearer explanation:
In the Code of the Skin of List:
<s:VScrollBar fixedThumbSize="true" skinClass="components.VerticalScrollbar1" x="0" y="0" viewport="{dataGroup}"/>
And the Skin VerticalScrollBar1:
<?xml version="1.0" encoding="utf-8"?>
<s:Skin xmlns:s="library://ns.adobe.com/flex/spark" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:d="http://ns.adobe.com/fxg/2008/dt">
<fx:Metadata>[HostComponent("spark.components.VScrollBar")]</fx:Metadata>
<s:states>
<s:State name="normal"/>
<s:State name="disabled"/>
<s:State name="inactive"/>
</s:states>
<s:Button skinClass="components.Track1" x="7" y="0" id="track"/>
<s:Button skinClass="components.Thumb1" x="0" y="104" id="thumb"/></s:Skin>
and the Thumb1:
<?xml version="1.0" encoding="utf-8"?>
<s:Skin xmlns:s="library://ns.adobe.com/flex/spark"     xmlns:fx="http://ns.adobe.com/mxml/2009"     xmlns:d="http://ns.adobe.com/fxg/2008/dt" xmlns:graphics="assets.graphics.*">
<fx:Metadata>[HostComponent("spark.components.Button")]</fx:Metadata>
<s:states>
<s:State name="up"/>
<s:State name="over"/>
<s:State name="down"/>
<s:State name="disabled"/>
</s:states>
<graphics:Graphic2 x="0" y="0" d:userLabel="ThumbLeft"/>
<graphics:Graphic1 x="146" y="0" d:userLabel="ThumbRight"/>
</s:Skin>
Notice that there are two thumbs, and an empty area in the middle, in the hope that it would ignore the mouse of that area where the items are located.

Here's a sample script that first defines a list of items in an array and uses it to update a number of dropdowns, name dd1...dd10:
// Populate an array with the list items
var aItems = ["-- Select a state --", "Alaska", "Hawaii", "Washington", "Oregon", "Idaho", "Montana", "Wyoming", "Nevada", "Colorado", "Arizona", "New Mexico"];
// Loop through the dropdowns...
for (var i = 1; i < 11; i += 1) {
    // ...and set the list items
    getField("dd" + i).setItems(aItems);
That's all there is to it. This can be run from the Mouse Up event of a temporary button that you create, the interactive JavaScript console (Ctrl+J), etc.
More info on setItems: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.752.html

Similar Messages

  • Help PLEASE with linked list. Inserting a string in the middle of

    I'm trying to insert new strings to a linked list but it seem i cant never insert. the following code has the instructions. What i'm I not doing right? If i try to use the code, the new strings don't go through
    please help someone
    // This method should insert a new node containing the string newString immediately after the first
        // occurrence of the string aString in the list. If aString is not in the list, the method should add a node
        // containing newString to the tail of the list.
        public void insertAfter(String newString, String aString)
            StringLLNode newNode = new StringLLNode();
            newNode.setData(newString);
            //Check if HeadNode == aString
            if (headNode.getData().equalsIgnoreCase(aString))
                headNode = newNode;
            //rest of the nodes
            StringLLNode currNode = headNode;
            while(currNode != null)
                if (currNode.getData().equalsIgnoreCase(aString))
                        newNode.setNext(currNode);
                        //System.out.println("It went THROUGH");
                currNode = currNode.getNext();
            //Last Node
            if (currNode != null)
                newNode.setNext(headNode);
        }

    I have to agree with flounder, go grab a pen and paper and logically work thru the code snippet you posted.
    public void insertAfter(String newString, String aString)
            StringLLNode newNode = new StringLLNode();
            newNode.setData(newString);
            //Check if HeadNode == aString
            if (headNode.getData().equalsIgnoreCase(aString))
                headNode = newNode;
            //rest of the nodes
            StringLLNode currNode = headNode;
            while(currNode != null)
                if (currNode.getData().equalsIgnoreCase(aString))
                        newNode.setNext(currNode);
                        //System.out.println("It went THROUGH");
                currNode = currNode.getNext();
            //Last Node
            if (currNode != null)
                newNode.setNext(headNode);
    }Given a linked list [A-E] we have: A => B => C => D => E. Each Node is referencing the node to it's right, so A references B, D references E etc.
    For example take aString = "A" and newString = "AB". Your code suggests the following:
    1. Create new_node "AB"
    2. if head[A] equals aString[A], TRUE
    2.a head = new_ node
    Now the resulting linkedlist is the following:
    AB => Null
    what happened to the rest of the list?
    Now we go on to your updated example, we result in the following list:
    A => AB => Null
    hmm do you see a pattern here? when inserting a new node we are disregarding any reference to the tail of the list.
    Extending on that idea we have the following pseudo code
    1. if node to be inserted
    1.a new_node.next = list_tail
    1.b current_node.next = new_node
    A => B => C => D => E, where newnode=AA
    AA => B => C => D => E //using 1.a
    A => AA => B => C => D => E //using 1.b
    Mel

  • COPA Report Layout with Object List (ALV)

    Hi,
    I have question about the COPA report layout with object list (ALV). Everytime I executed the report with ALV format, the amount for quantity column always shows with 3 decimal number, menwhile for amount column always follow by 2 decimal number.
    Can anyone help me regarding this matter? I do not know how to turn off the decimal number to be 0 in this type of layout, although in the form itself I already put 0 decimal number.
    Thanks.

    Hi,
    Better to raise this issue in CO Forum. You can expect some solution.
    regards

  • Remember selected item with ComboBox

    Hey All,
    I was just wondering how other pople solve this issue.
    I have a combobox with a XX number of items in there. Now
    when I re-populate the combobox the selected item get's lost. I
    also would like to remember the selected item during sessions. For
    instance when A user selected item XX on monday. I would like to
    have it automatically set XX again when a user comes back on
    tuesday.
    Is there a meganism in adobe flex that allows me to remember
    a 'state' of a object, or is that custom programming?
    Ideally I would like to have a component that can do teh work
    for me rather then my application handles the logic, some sort of a
    state manager?
    Ries

    Use a SharedObject, and write to it in the ComboBox change
    handler. See SharedObject in FB3 help sys.

  • In my Apple Macbook Air, most of the USB Flash/Thumb Drives are not shown in the Finder Window. Only a few Brands of USB /Flash Thumb Drives are shown or compatible or shown in the Finder. How do I use any Flash/Thumb Drive with my Apple MacAir?

    In my Apple Macbook Air, most of the USB Flash/Thumb Drives are not shown in the Finder Window. Only a few Brands of USB /Flash Thumb Drives are shown or compatible or shown in the Finder. How do I use any Flash/Thumb Drive with my Apple MacAir?

    Yes, junker thumb drives pour like rain in the market.  
    Which makes are working on your Air, and which arent?
    Stick to Sandisk and a couple of other reliable mfg. of memory sticks

  • I am trying to import standard midi file that I created in Band in a Box into Logic Pro 9.  I can not get all the track to play with internal instrument sounds... only the piano track.  how can I get the others to play... drums, bass etc????   Help

    I am trying to import standard midi file that I created in Band in a Box into Logic Pro 9.  I can not get all the track to play with internal instrument sounds... only the piano track.  how can I get the others to play... drums, bass etc????   Help

    Don't drag the midi into an open Logic project. The tracks won't set up correctly.
    'Open' the midi file with Logic as if it were a Logic project. Then all the tracks will be set up so you can start editing them and applying better saved sounds and instruments, but you'll be at a starting place where you can hear what's going on.

  • Ok i work at a military base and there were iPod touch's given out to some units and I have found one and would like to return it but don't know the owner so is there a way to track a name with the serial number?

    Ok i work at a military base and there were iPod touch's given out to some units and I have found one and would like to return it but don't know the owner so is there a way to track a name with the serial number? Or how can I find out who owns it?

    No. Turn it into the military police.

  • TS3376 I had my iphone set up to be tracked as registered with iCloud and it had been using it for a year one day it said no devices registered and stopped working why???

    I had my iphone set up to be tracked as registered with iCloud and it had been using it for a year today it said no devices registered and stopped working even though i tracked the selected iphone 4 device an hour earlier why did it do this???

    So basically the phone I was tracking was working an hour earlier it had no signal at times when it did pick up a signal it located it easily but an hour later the message came up no devices registered when my friend returned home I Checked the device I was tracking to make sure find my iphone was on but it was off and my friend didnt turn it off so my question is why did it turn itself off???
    Confused?

  • How to track your phone with free text

      is there any way  that i can track my stolen i pod touch but i dont have i cloud  but i have free text aand i need my ipod back so is there anyway i can  track it down with out icloud ???

    Here is Apple article:
    Reporting a lost or stolen Apple product
    While Apple might be able to get information when the iPod is connected to iTunes, there would be privacy issues with revealing it to anybody who claimed it was stolen. Just think what would happen if you sold the iPod and later claimed it was stolen or lost.

  • What can I do to track my daughter with her iPhone

    I want to be able to track my daughter with her iPhone.

    Install and turn on either Find my Iphone (you'll need her Apple ID and password) or Find my Friends on her phone, as well as yours

  • I updated my Iphone4 and had the m.calendar app with all of my daily temperatures saved, since the update after even after synching the iphone to itunes I have lost months of tracking I am devastated!! can anyone help get it back

    I updated my Iphone4 and had the m.calendar app with all of my daily temperatures saved, since the update after even after synching the iphone to itunes I have lost months of tracking I am devastated!! can anyone help get it back

    I don't understand this answer. What do you mean " your contacts should be in whatever program/service you have selected to sync."? The address book is created on the phone not in Itunes or any other program/service. When Itunes says backing up phone I have to assume it backs up everything on the phone. Most of what's on my phone does not come out of itunes. I download apps directly on the phone. When the software updates it does not bring those apps back. I have to go into the appstore and install them all over again. Itunes music library syncs with whatever is on the device your linked up to BUT the phone book just dissappears after you update the phone. There is no way to save it anywhere else.

  • How can I track my mac with a serial number

    How do I track my mac with a serial number.  My computer was stolen and the find my mac wasn't enabled?

    You can't.
    What To Do If Your iDevice or Computer Is Lost Or Stolen
    iPhone, iPod Touch, and iPad
    If you activated Find My Phone before it was lost or stolen, you can track it only if it is connected to the Internet by Wi-Fi or cellular. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. iCloud- Use Lost Mode
      6. What to do if your iOS device is lost or stolen
      7. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      8. Find My iPhone
      9. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Mac Computer
           Find My Mac can be used from Find My Phone at iCloud.com and via Find
           My Phone on your iDevice.
          The following is third-party anti-theft software:
               1.  STEM 2.1
               2.  MacPhoneHome 3.5
               3.  MacTrack 7.5.0
               4.  VUWER 1.7
               5.  Sneaky Bastar* 0.2.0
               6.  Undercover 5.1.1
               7.  LoJack for Laptops
               8. Hidden 2.0
               9. Prey 0.6.2

  • I have down loaded a track which was initially missing 1min 30 seconds. iTunes enabled my to reload the rack which is complete on the PC. However, syncing with my Ipad2 does not seem to replace the incomplete version with the full version. Thanks S

    I have down loaded a track which was initially missing 1min 30 seconds. iTunes enabled me to reload the rack which is now complete on the PC. However, syncing with my Ipad2 does not seem to replace the incomplete version with the full version.  Can anyone out there help?
    Thanks S

    Thanks for the response. Unfortunately, I've un-checked the track and re-synced the Ipad as suggested, but then re-checking and re-syncing han no effect. The track is still missing the final minute and a half or so. I've tried it twice, but the effect is the same.
    Any other ideas? Would un-checking the entire music collection and staring again work, or is that a road to disaster?

  • I'm Using home sharing and there are 156 tracks I can't import because these tracks were purchase with a diff account

    I'm Using home sharing and there are 156 tracks I can't import because these tracks were purchase with a diff account. How could I import them in my new computer
    TY

    Authorise the new computer to the older account. Can you do the transfer now?

  • Is there a way to get photos off of a thumb drive onto something that can be uploaded to the ipad. I am doing away with my windows systems and using the ipad exclusively?

    is there a way to get photos off of a thumb drive onto something that can be uploaded to the ipad. I am doing away with my windows systems and using the ipad exclusively?

    iPad Photo Recovery: How to Recover Deleted Photos
    http://www.iskysoft.com/iphone-data-recovery-mac/ipad-photo-recovery.html
    How to Restore Lost or Deleted Files from iPad
    http://www.iphone-ipad-recovery.com/recover-ipad-mini-files.html
    How to Recover Deleted Files from iPad
    http://www.kvisoft.com/tutorials/recover-deleted-files-from-ipad.html
    How to Recover Photos from iPad
    http://www.ipubsoft.com/idevice-tips/recover-deleted-photos-on-ipad-mini.html
    iSkysoft Free iPhone Data Recovery
    http://www.iskysoft.com/iphone-data-recovery/
    Recover iPhone/iPad/iPod touch lost data, Free.
    Free recover iPhone/iPad/iPod touch lost contacts, photos, videos, notes, call logs and more
    Recover data directly from iPhone or from iTunes backup
    Preview and recover lost iOS data with original quality
    Wondershare Dr.Fone for iOS
    http://www.wondershare.net/data-recovery/iphone-data-recovery.html?gclid=CJT7i9e 6gb4CFcvm7AodbUEAJQ
    Recover contacts, messages, photos, videos, notes, call history, calendars, voicemail, voice memos, reminders, bookmarks and other documents.
    iPad Data Recovery Software (PC & Mac)
    http://www.anysoftwaretools.com/ipad-data-recovery.html
    Jihosoft Mobile Recovery for iOS
    http://www.fonerecovery.com/iphone-data-recovery.html
     Cheers, Tom

Maybe you are looking for

  • JMF example AVTransmit2.java and AVReceive2.java is not working for me?

    Dear all I want to develop a class which will capture my voice data from my microphone and then will send it to the sound system of my PC following RTP protocol. For that I tried both AVTransmit2.java and AVReceive2.java class from http://java.sun.co

  • CA reporting wrong DOFD---UPDATE

    I have been trying to figure out why this debt wasn't due to fall off my report until next year when I stopped paying the OC in May 2008, and today I called EX and they told me the DOFD was 6/2009 which is WRONG. She initiated a dispute for me statin

  • Duplicate concentric dots while keeping numbers upright

    I'm trying to illustrate several concentric circles shaped with dots containing numbers, as follows: Right now, I'm creating the circle patterns by rotating copies of the shape by even degree amounts. Each circle aside from the center one is a multip

  • Regarding TECO system status in Plant maintenance

    Can anyone suggest me the BADI or exit for blocking TECO status along with SDRQ user status

  • Annotation (metadata) working...

    At least the @Overrides is working OK in beta-1. Pretty cool. Probably Mr. J. Bloch would update his book "Effective Java" to advise to add "@Overrides" to all methods that are intended to override a concrete method declaration in a superclass. impor