SDK 3.4 - Tree and List rollover update flicker

I have a rollover issue with items in a tree or list.  When the item is rolled over in a tree or list, an update to that item is made from our server.  It seems that the update causes the rollover indication to disappear.  It's like the item is being redrawn.  Is there a way to disable the item invalidation?  Is this a bug with my sdk?
I also have a button on the item renderer that disappears too.  It is added and removed in commit properties, since it extends TreeItemRenderer and it's displayed over the icon.  Since the icon is added and removed in commitProperties, the button has to be added and removed in commitProperties to keep it's child index above the icon.

Here is some code.  Notice when you rollover, the highlight goes away.
Test.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="955" minHeight="600"
                     height="100%" width="100%">
     <mx:List
          dataProvider="{dp}"
          itemRollOver="onRollover()"
          labelField="label"
          height="100%"
          width="100%"/>
     <mx:Script>
          <![CDATA[
               import mx.collections.ArrayCollection;
               [Bindable]
               public var dp:ArrayCollection = new ArrayCollection([new Asset(), new Asset()]);
               protected function onRollover():void {
                         for each(var item:Object in dp)
                              if(item is Asset)
                                   Asset(item).name += "test";
          ]]>
     </mx:Script>
</mx:Application>
And Asset.as:
package
     [Bindable]
     public class Asset
          public function Asset()
          public var name:String = "test";
          public var label:String = "test";

Similar Messages

  • Sharing Events/Handlers for Tree and List

    I have a Tree component and a List component that both share
    very similar functionality. In particular, I have setup
    functionality to edit the labels in each component only when I
    trigger a custom event from a ContextMenu, preventing the default
    action of editing the item when it is selected.
    Since Tree extends List, I was wondering if there was some
    easy way to make a Class/Component that could contain all the logic
    for this functionality that could be shared across Tree and List
    (or any List-based) components.
    I'm basically trying to avoid duplicating code.
    Any thoughts/suggestions?
    Thanks!

    "ericbelair" <[email protected]> wrote in
    message
    news:ga8h3q$9pn$[email protected]..
    >I have a Tree component and a List component that both
    share very similar
    > functionality. In particular, I have setup functionality
    to edit the
    > labels in
    > each component only when I trigger a custom event from a
    ContextMenu,
    > preventing the default action of editing the item when
    it is selected.
    >
    > Since Tree extends List, I was wondering if there was
    some easy way to
    > make a
    > Class/Component that could contain all the logic for
    this functionality
    > that
    > could be shared across Tree and List (or any List-based)
    components.
    >
    > I'm basically trying to avoid duplicating code.
    >
    > Any thoughts/suggestions?
    I think what you're looking for is called "monkey patching",
    which involves
    putting a file of the same name and directory structure in
    your project as
    the original was in the Framework. I don't know much more
    about it than
    that, though.

  • The truth about objects, references, instances and cloning (Trees and Lists

    Hello
    As a few of you may have know from my postings over the past few weeks, ive been building my first real java ap and trying to learn along the way, hitting a few snags here and there.
    One main snag i seem to have been hitting a fair bit is objects and instances, im kinda learning on how they work and what they mean but as a php programmer it seems to be very different.
    as pointed out to me if you have objectA=objectB then in php you have two objects that share the same value but in java you have still one object value and one object pointing to the value.
    sooo my first question is
    if i have this
    Object objA=new Object()
    Object objB=objA()then object A creates a new memory allocation for the object data right? and object B is simply a reference to the object A memory allocation right?
    so therefore there is no instance of objectB? or is there an instance of object B but it just takes up the same memory allocation as object A?
    anyway, what is the point of being able to say objB=objA what can that be used for if not for making a copy of an object (i understand now that it doesnt copy an object)
    My second question (which i think i actually understand now, but im posting it to see if the answers may help others)
    If i have a List structure (e.g. arraylist) then when i add a datatype such as a treemap does it not add the changed treemap, ill try and explain with code
    ArrayList mylist=new ArrayList()
    Treemap myTree=new Treemap()
    myTree.put("hello","howdy");
    myTree.put("bye","cya");
    mylist.put(myTree);
    System.out.println(mylist.toString());
    myTree.put("another","one");
    mylist.put(myTree);
    System.out.println(mylist.toString());now to be honest ive not actually tried that code and it may actually procude the right results, but from my experience so far that similar sort of thing hasnt been working (by the way i know the above code wont compile as is :p)
    anyway what i assume is that will output this
    [Hello,howdy,bye,cya] <<this is the first system out
    [Hello,howdy,bye,cya,another,one  <<this is the second system out
    Hello,howdy,bye,cya,another,one] <<this is the second system out
    where it should produce this
    [Hello,howdy,bye,cya,
    Hello,howdy,bye,cya,another,one]
    Why when I update the treemap does the arraylist change, is this because the thing that is being put in the array list is infact not an object but simply a reference to an object?
    thanks for everyones help so far :)

    as pointed out to me if you have objectA=objectB then
    in php you have two objects that share the same value
    but in java you have still one object value and one
    object pointing to the value.Some years ago, I built a small website managing data saved in an XML file using PHP. Being used to Java, I used an OO approach and created classes managing data structures and having setter/getter methods. The fact that PHP did actually create a copy of any object being passed as and argument made me crazy. This way, I wasn't able to reach the same instances from several different places in my code. Instead, I had to put a certain operator ("&" I think) before any reference to force PHP not to make a copy but pass the reference. I also found a note on the PHP site saying that copying was faster than passing the reference, which I actually couldn't believe. If I'm not wrong, they changed the default behaviour in PHP5.
    if i have this
    Object objA=new Object()
    Object objB=objA()then object A creates a new memory allocation for the
    object data right? and object B is simply a reference
    to the object A memory allocation right?The statement "new <Class>" allocates memory. The reference itself just takes up a few bytes in order to maintain some administrative data (such as the memory address). References are basically like pointers in C, though there's no pointer arithmetics and they can't point to any arbitrary place in memory (only a legal instance or null).
    so therefore there is no instance of objectB? or is
    there an instance of object B but it just takes up
    the same memory allocation as object A?There is an instance of objectB, but it's just the same instance that objectA is pointing at. Both references objectA and objectB contain the same memory address. That's why they'd produce a result of "true" if compared using the "==" operator.
    anyway, what is the point of being able to say
    objB=objA what can that be used for if not for making
    a copy of an object (i understand now that it doesnt
    copy an object)Sometimes you don't want to make a copy, as 1) it consumes more memory and 2) you'd lose the reference to it (making it more difficult to tell what instance is actually accessed). If there was no way to pass a reference to an object into a method, methods wouldn't be able to affect the original instance.
    Why when I update the treemap does the arraylist
    change, is this because the thing that is being put
    in the array list is infact not an object but simply
    a reference to an object?The ArrayList doesn't change at all. It's the instance that's being changed, and the ArrayList has a reference to it.

  • Report with ALV tree and ALV list?

    I need to create a report with layout as same as this one
    [http://trangiegie.com/MyFile/output.JPG]
    It looks like a report with combination of ALV tree and list. The tree works like a navigation bar. Wonder if there are any demo programs like this. Will appreciate any help.

    For Tree alone - You can check program : BCALV_TREE_02
    Program Name                   Report title
    BCALV_GRID_DND_TREE            ALV Grid: Drag and Drop with ALV Tree
    BCALV_GRID_DND_TREE_SIMPLE     ALV GRID: Drag and drop with ALV tree (simple)
    BCALV_TEST_COLUMN_TREE         Program BCALV_TEST_COLUMN_TREE
    BCALV_TEST_SIMPLE_TREE         Program BCALV_TEST_SIMPLE_TREE
    BCALV_TREE_01                  ALV Tree Control: Build Up the Hierarchy Tree
    BCALV_TREE_02                  ALV Tree Control: Event Handling
    BCALV_TREE_03                  ALV Tree Control: Use an Own Context Menu
    BCALV_TREE_04                  ALV Tree Control: Add a Button to the Toolbar
    BCALV_TREE_05                  ALV Tree Control: Add a Menu to the Toolbar
    BCALV_TREE_06                  ALV tree control: Icon column and icon for nodes/items
    BCALV_TREE_DEMO                Demo for ALV tree control
    BCALV_TREE_DND                 ALV tree control: Drag & Drop within a hierarchy tree
    BCALV_TREE_DND_MULTIPLE        ALV tree control: Drag & Drop within a hierarchy tree
    BCALV_TREE_EVENT_RECEIVER      Include BCALV_TREE_EVENT_RECEIVER
    BCALV_TREE_EVENT_RECEIVER01
    BCALV_TREE_ITEMLAYOUT          ALV Tree: Change Item Layouts at Runtime
    BCALV_TREE_MOVE_NODE_TEST      Demo for ALV tree control
    BCALV_TREE_SIMPLE_DEMO         Program BCALV_TREE_SIMPLE_DEMO
    BCALV_TREE_VERIFY              Verifier for ALV Tree and Simple ALV Tree

  • Abap Objects generating List Trees and Grids

    Hi Friends,
      Please provide me the Information for how to work with ABAP OBJECTS creating(and manipulating)the combination of List Trees and Grids.
    Regards,
    Sowjanya

    There are a couple of examples programs,  You can start by checking out transaction DWDM for some of the basic ABAP oo controls.  You can also check out any program which begins with BCALV* for examlple of ALV grids, trees, and lists.
    REgards,
    Rich Heilman

  • After getting a new desktop I downloaded iTunes and authorized my new computer and then de-authorized my old one,  When I try to update my 5S it says my phone is not authorized and list my wifes email address as the account holder and not mine.  How

    After getting a new desktop I downloaded iTunes and authorized my new computer and then de-authorized my old one,  When I try to update my 5S it says my phone is not authorized and list my wifes email address as the account holder and not mine.  How do I correct this. I am using Windows 8.1 .  My wife has never had an iTuunes account

    Hello Lakesidetom,
    It sounds as though you are experiencing an issue with an Apple ID and authorizations. Based on your post, it sounds like you are familiar with the authorizing and deauthorizing process. The Apple ID in question (your wife's email) may be originating from the iPhone you are attempting to update. Is it possible that your wife created an Apple ID or iCloud account which is signed in on that iPhone? Below, I have included links to some resources that may help you determine if your wife has created an Apple ID:
    How to find your Apple ID - Apple Support
    Use these steps if you forgot your Apple ID or aren't sure that you have one.
    Apple - My Apple ID
    If you can't remember your Apple ID, just provide us with some information and we'll find it for you. Then we'll help you reset your password.
    Thank you for contributing to Apple Support Communities.
    Cheers,
    Bobby_D

  • How can I move my contact list to new ID account and question about updating iOS

    How can I move my contact list to new ID account?
    And should I update my iOS system ?

    Hello Godde
    Lets start with checking out the articles below for setting up Family Sharing and more information about Apple ID’s. I will say that you will not be able to transfer any purchases to a different Apple ID, but you can rename the Apple ID. If you want to use Family Sharing, then you will need to just create a new iCloud account and then follow the steps in the second article to start sharing content between you to.
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    Sharing purchased content with Family Sharing
    http://support.apple.com/kb/HT201085
    Regards,
    -Norm G.

  • My young kids have ipads and since I updated the software, but they have their own icloud account, predictive text within their messages shows all my contacts from my iphone but the contacts are not listed as their contacts, how do I stop this?

    My young kids have ipads and since I updated the software, but they have their own icloud account, predictive text within their messages shows all my contacts from my iphone but the contacts are not listed as their contacts, how do I stop this?

    I have deleted the iCloud account under my name on their iPads and replaced with their ones. Apple support said yesterday I needed to click the small 'I' by each name as it came up in the TO box and remove it. After doing rid for each contact under each letter of the alphabet it should remove them from latest contacts. Having done this, although I could not remove groups I had sent, I am not convinced they will not return once I have written a few texts, any ideas?

  • Ap Store shows update for DropCopy and lists it as installed yet it will no clear my updates page in my account.

    Ap Store shows update for DropCopy and lists it as installed yet it will not clear the updates page in my account. How do I clear this?

    I tried the debug mode in mac app store too >> Fail.
    The first time I feel disapointing from apple software.

  • Trees and Unmanaged Dropdown Lists

    Does anybody know if it's possible to create heirarchical property value lists? For example, we want to have a keyword system for documents and users with some top-level categories and then some more specific categories under them, and not just one long unorganized list. Is this possible to do using trees and/or unmanaged dropdown lists? I'm not sure how to make these. Do you have to insert a table into SQL server somewhere?

    Yes, you can do this.  I don't have the benefit of access to my database from where I am at the moment, so please pardon me if I get some of this wrong.
    * There's a sample table in your primary portal database called something like &#034;samplepicklist&#034; - that will show you the data structure
    * You create a tree property
    * Bind that property to the table...
    In my case I'm using it to provide a region/country hierarchy list for user info.
    1) Property is named &#034;Country (by Region)&#034;
    2) Set values to...
            - Property is visible in the UI (checked)
            - Searchable (checked)
            - Type is &#034;Tree&#034; (when you select this the screen will change)
    3) got a view together - view is called &#034;vw_PTProfile_RegionCountries&#034;.  Set the Database Table Name setting to the name of your view or table.
    4) Provide your hierarchy info.  There are two bits - display/storage value name and ordering key.  In my case my values look like...
        PICK COLUMN                        SORT ORDER
        rgn_descr                              rgn_id
        country_descr                        country_id
    Blammo - done.  I now have a hierarchical region/country list.
    NOTES:
    * I'd suggest using a view so you can link to other data sources, etc. and not worry as much about shaping the data the way the portal needs it
    * The property works on most classes of objects EXCEPT documents.  This isn't an issue with the property as much as the document property editing approach (&#034;documents are special objects&#034;)
    That help?
    I love these kinds of things and want to make best use of them myself, so if anyone has any ideas on how to kick the portal into overdrive using properties (or sees that I'm mis-using this approach or steered Dave in the wrong direction) please, please do respond to this thread.
    Thanks,
    Eric

  • How do I retrieve my old calendar and lists from my iPad now that I've updated it?

    How do I retrieve my old calendar and lists from my iPad now that I've updated it?

    You're almost there. When you look in that Profiles folder, you should see one or more folders with semi-randomized names. The most recent one probably is your last active profile.
    You have a lot of options for how to recover:
    * Restore last bookmarks backup ([[Restore bookmarks from backup or move them to another computer]])
    * Manually copy over saved password files to your currently active profile folder ([[Recovering important data from an old profile]])
    * Attempt a complete "transplant" of your old settings folder to your new installation of Firefox (e.g., this thread: [https://support.mozilla.org/questions/965036 how to install and migrate info to a new laptop with Win 8])

  • HT3842 Those steps don't work. I'm using the lastest version of itunes (11.0.1.12) on Windows. This article was last updated in 2009 and lists itunes 7.7. Anyone have any ideas, or is there a new article that accounts for the changes to itunes?

    Those steps don't work. I'm using the lastest version of itunes (11.0.1.12) on Windows. This article was last updated in 2009 and lists itunes 7.7. Anyone have any ideas, or is there a new article that accounts for the changes to itunes?

    Try This
    http://support.apple.com/kb/PH12359

  • [svn:fx-trunk] 12554: In anticipation of deferring SDK-24211, I am making List.findKey and List.findString methods mx_internal.

    Revision: 12554
    Revision: 12554
    Author:   [email protected]
    Date:     2009-12-04 14:44:10 -0800 (Fri, 04 Dec 2009)
    Log Message:
    In anticipation of deferring SDK-24211, I am making List.findKey and List.findString methods mx_internal. When we fix SDK-24211, we will probably collapse/remove those two methods
    QE notes: This shouldn't affect tests unless you subclass these methods in which case you'll need to change the function signature.
    Doc notes: No
    Bugs: No
    Reviewer: Evtim 
    Tests run: Checkintests
    Is noteworthy for integration: Yes
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24211
        http://bugs.adobe.com/jira/browse/SDK-24211
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ComboBox.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownList Base.as

  • [svn:bz-trunk] 22363: Updates for SDK 4.5.2 and its player

    Revision: 22363
    Revision: 22363
    Author:   [email protected]
    Date:     2011-09-01 12:47:07 -0700 (Thu, 01 Sep 2011)
    Log Message:
    Updates for SDK 4.5.2 and its player
    Modified Paths:
        blazeds/trunk/build.properties
        blazeds/trunk/build.xml
        blazeds/trunk/modules/sdk/build.xml

    Adware Searchme is installed, removing it will help.
    1. Download and use free AdwareMedic to remove the adware
        http://www.adwaremedic.com/index.php
        Install , open,  and run it by clicking “Scan for Adware” button   to remove adware.
        Once done, quit AdwareMedic.
                   or
        Remove the adware  manually  by following the “HowTo” from Apple.
        http://support.apple.com/en-us/HT203987
    2. Safari > Preferences > Extensions
         Turn those off and relaunch Safari to test .
         Turn those on one by one and test.
    3. Safari > Preferences >  Search > Search Engine :
        Select your preferred   search engine.
    4. Safari > Preferences > General > Homepage:
         Set your Homepage.
    Additional steps:
    Start up in Safe Mode. http://support.apple.com/kb/PH18760
    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the method for:
    "Resetting SMC on portables with a battery you should not remove on your own".
    Repair Disk
    Steps 1 through 7
    http://support.apple.com/kb/PH5836

  • New update are listed on the app icon. When I click update all I'm prompted to enter password. When I do, the progress bars go away and nothing gets updated. Tried logging out, reset iPad, and nothing seems to work. Keeps asking me to enter password.

    New update are listed on the app icon. When I click update all I'm prompted to enter password. When I do, the progress bars go away and nothing gets updated. Tried logging out, reset iPad, and nothing seems to work. Keeps asking me to enter password.

    I've been having the same problem for days and just solved it. Tried going to Apple ID and had all the same problems you did in the second paragraph. I signed out with my current username on the ipad under settings--->store and signed back in with my oldest apple id and password. Now the apps don't ask for a password to upgrade. I too had a username that wasn't an email address and had to change to one that was at some point. That's what caused the problems. Hope this can work for you.

Maybe you are looking for

  • A question for the group; 9i or 10g?

    If you were to move an older application from 9i (Release 1) on a Windows NT machine to a LINUX machine with a new install of the Application Server, would you install 9iR2 or 10g? Is 10g ready for "Prime-Time?" (Or, in our case, a slot on an obscure

  • Group of documents from .jpg to .pdf?

    I need some help. I scanned 91 pages of documents and saved them in a folder on my desktop. The pages were scanned into my computer as .jpg and i need to send them as .pdf in an email. the file sizes are abnormally big too; each "picture" is about 1.

  • Plz help me (I have a problem)

    I have a project in my ics course (ics313 concepts of programming language) -The project is about devoloping a small programing language using java to implement it. -The titel of the project is ( the very small language VSL). -The project is on link

  • Error while displaying ESS Form 16, ~designbaseurl illegal host entry

    While executing the form 16 in portal we are getting an error. ~designbaseurl illegal host but if i run this directly using the url its working fine. Suggest mes. Thanks in advance, Mr.Chowdary

  • Mac os x 10.7.1 trash question

    I'm using OS x 10.7.1. When I drag files to the trash, i get a message that says Finder wants to make changes. Type your password to allow this. how do i get rid of that message/request?