Decorator not changing when you click on listitem

Dear,
I'm developing a mobile application for my thesis and I was working with flash builder burrito. I now installed the new SDK and flashbuilder 4.5.
I changed my code a little bit so it would work with the new SDK.
But there's one problem I can't solve.
I have a list with objects in it. When the element is not checked you can see a gray V, when you click on it it should become a green V. So the user can see wich one is checked and wich not. Here for I use a list with an itemrenderer.
The problem is when he loads the page he can set the decorator correctly. But when you click on a listitem he doesn't change the decorator.
I've allready tried to debug , and the debugger is going to the itemrenderer and setting the decorator but de decorator doesn't change in my list.
I made a small example to show:
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark" title="Home"
          initialize="init()">
     <fx:Script>
          <![CDATA[
               import mx.collections.ArrayCollection;
               [Bindable]
               private var m_list:ArrayCollection = new ArrayCollection();
               private function init():void
                         for(var i:int = 0 ; i<5 ; i++)
                              var test:SelectableItem = new SelectableItem("Item"+i);
                              m_list.addItem(test);
               protected function list1_clickHandler(event:MouseEvent):void
                    SelectableItem(m_list.getItemAt(listID.selectedIndex)).toggleSelection();                              
          ]]>
     </fx:Script>
     <s:List id="listID"
               x="0" y="99" width="480" height="596"
               dataProvider="{m_list}"
               itemRenderer="views.ListItemRenderer"
               click="list1_clickHandler(event)"/>
</s:View>
This is my class:
package views
     public class SelectableItem
          private var m_name:String;
          private var m_selected:Boolean;
          public function SelectableItem(name:String,selected:Boolean = false)
               m_name = name;
               m_selected = selected;
          public function get name():String
               return m_name;
          public function set name(value:String):void
               m_name = value;
          [Bindable]
          public function get selected():Boolean
               return m_selected;
          public function set selected(value:Boolean):void
               m_selected = value;
          public function toggleSelection():void
               selected = !selected;
and here is my itemrenderer:
<?xml version="1.0" encoding="utf-8"?>
<s:IconItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                         xmlns:s="library://ns.adobe.com/flex/spark"  iconWidth="64" iconHeight="64"
                         labelFunction="itemLabelFunction">
     <fx:Script>
          <![CDATA[
               [Embed(source="checked.png")] 
               public var checked:Class;
               [Embed(source="unchecked.png")]
               public var unchecked:Class;
               override public function set data(value:Object):void
                    super.data = value;
                    if(value != null)
                         if(value.selected)
                              decorator = checked;
                              setStyle("color", "red");
                         else
                              decorator = unchecked;
                              setStyle("color", "black");
               private function itemLabelFunction(item:Object):String
                    return item.name;
          ]]>
     </fx:Script>
</s:IconItemRenderer>
As you can see I also use setStyle and change the color when you click it. This is because that works. This is only temporary offcourse.
And I think that's a strange thing that setStyle does work but setting the decorator to a new image doesn't.
I hope my question was clear and that someone can help me.
Thanks in advance.
Kind regards,
Thibault Heylen

I believe this was the bug: http://bugs.adobe.com/jira/browse/SDK-29929
It will be fixed in the next release of Flex.

Similar Messages

  • How do I check internet usage history? When i use the "History" tab on the tool bar all I see is today's activity & the calendar does not change when I click on it. Thanks

    How do I check internet usage history? When i use the "History" tab on the tool bar all I see is today's activity & the calendar does not change when I click on it. Thanks

    zedzed,
    Here's another thought.
    Navigate to HD > Users > Library > Safari: Make a duplicate of History.plist.
    To duplicate the file, click once to highlight it. Press the Command + D keys.
    Drag the History,plist copy file to the Desktop.
    Highlight it. Press the Command + I keys, to get info.
    Change Open With to TextEdit.
    When you open the file in TextEdit, it will be difficult to read, but you will be able to pick out some sites.
    ali b

  • Why doesn't Skype not close when you click the X b...

    I'd like to get some input as to why Skype does not close when you click the red X button on the top right corner but rather only gets minimized. It's frustrating and makes no sense at all. The only way to close Skype is to right click the icon in the tray and choose "Quit Skype."
    I'd like to understand why this useless feature exists. It renders the minimize button ( - ) useless, which is only two squares away from the X button. 
    Please don't proceed to list other programs that do this (i.e. some antivirus software) as that was not what I asked. It's standard for programs to close when the X button is clicked, as will happen momentarily when I click the X button on my Chrome browser window when I'm done typing this quation. Thanks

    What he was talking about was setting it to ""run as administrator" in the shortcut/executable as you should know that would run the application in a true administrator mode (like Windows XP) vs. the default crippled administrators group in Windows.  I personally have not had to do this since I have not run into the issue but for those that have, people claimed it has helped/resolved the issue.  In regards to following UI interaction rules, it does as it actually closes the form.    Skype doesn't send an additional closure to the resident system tray icon form because it's a memory resident communication program.  Some programs give you that option, others don't.   Geforce Experience is one of the latest programs I use, that doesn't.  Nobody forces anything on you.  If you feel your family is "forcing" something on you, you always have the option of "forcing" something on them or suggesting another method you prefer  in order to stay in contact with you.  In the end that's a family issue, not a Skype one.
    If you want to close Skype down in one click you can do so using the provided shortcuts in the following thread.  You can also assign those shortcuts hotkeys or assign them to a key on your keypboard/mouse using additional key mapping software to completely close Skype with the press of a single button.
    http://community.skype.com/t5/Windows-desktop-client/How-to-quit-Skype-with-keyboard-shortcut-on-Win...

  • :system.cursor_block value does not change when mouse click

    Form created with Forms version 6.0.8.8.0. Consists of a control block that has the toolbar buttons, a filter control block that contains item, and a data block. The filter control block and data block are on a tabbed canvas. There are 3 tabs with corresponding filter control block and data block on each.After the data block is queried, code sets the navigation to the control block with the go_item built-in. The user would use a mouse click on the filter control block on one of the tabs to activate an LOV, code is in a generic when-mouse-click trigger that will determine the item focus with the value in the system variable :system.cursor_block. Works for the first tab. Does not work for 2nd or 3rd tab. On-error trigger does not capture any error. Values for :system.cursor_block for tab 1 show that value before mouse click is 'control.detail' and after mouse click is 'filter.a'. For tabs 2 and 3 the value before mouse lick is 'control.detail' and after mouse click is 'control.detail' instead of 'fiter.b' or 'filter.c'. Verified that the 3 filter blocks are identical. Can anyone shed some light on this anomoly? I have been looking for this solution (many different iterations and changes to trap it) for too long.

    :System.Cursor_Block reports the name of a block, NOT a BlockName.ItemName.
    Use :System.Trigger_Item with your mouse click, or :System.Cursor_Item.

  • Yahoo mail in FF is slow to load (if it loads at all) and the e-mails do not open when you click on them. I do not have this problem in Chrome or IE

    When I click on Yahoo in FF, the page is slow to load. When it does, the e-mail is even slower to load. When it does load and I click on an e-mail, the e-mail does not open. Any suggestions? If I delete FF and reinstall it, will I lose all the information in FF (e.g. Book marks or preferences)? Thanks in advance for your help.

    HI afirst,
    Just in case [[Back up and restore information in Firefox profiles]], but before that you can clear the cache for a specific site in the about:permissions page.
    Select Yahoo mail on this page and forget the site. This will remove cookies and active logins for mail. Please then restart Firefox and relogin to Yahoo mail.
    If there are any other questions, happy to help.

  • HT1848 when i purchase music on itunes and sync my iphone5 the new song appears twice -- one version that does not play when you click on it and another that plays. why is this happening? what can i do to remove the version that is 'fake'?

    I bought music from itunes and synced my iphone5 to get the music on it.  The problem i am having is that 2 versions of the song appear on my iphone -- one light gray 'fake' version which doesnt play when i click on it and another real version.  can anyone help why this is happening? and how i can delete the 'fake' version from my iphone?

    If that's the best you can do why don't you get on another forum?

  • Photo Does Not Enlarge when you click thumbnail

    I have just installed the update to iWeb, etc. and now have a problem when viewing my web page. I get to the web page and try to click on the picture thumbnail to enlarge it and nothing happens. What gives?
    iMac G5;2ghz;2gb ram, superdrive   Mac OS X (10.4.1)  

    Apple goofed! (again) LOL!
    there is an undefined java functions in your http://web.mac.com/stephenflint/iWeb/CruzWedding/Pre-Ceremony_files/Pre-Ceremony .js , fourth line from the bottom, I found:
    var options = slideshowWindowOptions(height, width);
    slideshowWindowOptions function is not defined anywhere in the js file. Unless someone contradicts me on this, I have to say this is sloppy works!
    Apple should pay me for debugging their codes

  • How to create a looping music player that does not restart when you go to other pages

    Hello
    I am new to web design. I apologize if I do not use the write
    terminology. I am designing a website. I want to have a song that
    loops continuously throughout the site and does not restart when
    you click on the different pages. I have included a link to a site
    that I found that does what I want to do. (Hopefully this link will
    give you a better idea of what I am trying to describe)
    http://www.marcuscoleministries.com/index2.html
    Thanks for your time and consideration

    You will have to use frames which in itself is a bad idea.
    IMO music that
    plays automatically is a terrible idea. It is likely to drive
    away many
    visitors and is unlikely to retain even a single visitor.
    Avoid frames. Drop the music. You'll be happy you did.
    Walt
    "dbone1" <[email protected]> wrote in
    message
    news:fn36v6$de7$[email protected]..
    > Hello
    >
    > I am new to web design. I apologize if I do not use the
    write terminology.
    > I
    > am designing a website. I want to have a song that loops
    continuously
    > throughout the site and does not restart when you click
    on the different
    > pages.
    > I have included a link to a site that I found that does
    what I want to do.
    > (Hopefully this link will give you a better idea of what
    I am trying to
    > describe)
    http://www.marcuscoleministries.com/index2.html
    >
    > Thanks for your time and consideration
    >
    >

  • I am trying to use the brightness adjustment on a grayscale photoshop CS6 file.  The preview shows the adjustment working and changes the brightness, but when you click to apply the change, it does not apply the adjustment.  I have run into this problem b

    I am trying to use the brightness adjustment on a grayscale photoshop CS6 file.  The preview shows the adjustment working and changes the brightness, but when you click to apply the change, it does not apply the adjustment.  I have run into this problem before, although rarely, with some other files over the years and with earlier versions of CS.  I would like to know how to overcome this problem?

    Make sure you are viewing your image at 100%. At smaller views, pixels and layers and the way they interact are approximate interpolations and won't show you the actual pixel-for-pixel changes.

  • Please help. My facebook app will not open on my iphone 4. I deleted it,numerous times and downloaded it again. It uploads, but when you click on the icon, it flickers then closes.  Help.

    Please help. My facebook app will not open on my iphone 4. I deleted it,numerous times and downloaded it again. It uploads, but when you click on the icon, it flickers then closes.
    Help.

    Then the next step would be to restore your phone.  My advice is that prior to restoring you import your photos and videos to your computer and back up your contacts (by syncing them with iCloud or to a supported program on your computer using iTunes) as a number of users report losing these when restoring their device.

  • Hi there, Can you please HELP ME? I created a signature for my email account, but I can not choose it because the option is daded under "none"and nothing happens when you click on it! Thank you, Johan

    Hi there, Can you please HELP ME? I created a signature for my email account, but I can not choose it because the option is daded under "none"and nothing happens when you click on it! Thank you, Johan

    This can be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • Final cut pro x - lion - mbp 2011 2.0 15 - not responding at all since latest update. Can't open or edit projects, loading window that pops us when you click the app (as it loads) does not go away, says loading compressor support.  Have tried reinstalling

    final cut pro x - lion - mbp 2011 2.0 15 - not responding at all since latest update. Can't open or edit projects, loading window that pops us when you click the app (as it loads) does not go away, says loading compressor support, paralyzed.  Have tried reinstalling, default settings etc
    Appreciate suggestion, working on deadline. Thanks.  

    Here is the start of the crash report:
    Process:         Final Cut Pro [20568]
    Path:            /Applications/Final Cut Pro.app/Contents/MacOS/Final Cut Pro
    Identifier:      com.apple.FinalCut
    Version:         10.0.1 (185673)
    Build Info:      ProEditor-185670300~1
    App Item ID:     424389933
    App External ID: 4138831
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [102]
    Date/Time:       2011-11-11 20:41:32.201 -0800
    OS Version:      Mac OS X 10.7.2 (11C74)
    Report Version:  9
    Interval Since Last Report:          192058 sec
    Crashes Since Last Report:           14
    Per-App Interval Since Last Report:  157161 sec
    Per-App Crashes Since Last Report:   14
    Anonymous UUID:                      DD542B2F-58A0-482E-AAFA-ECADEC76F562
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000280000003
    VM Regions Near 0x280000003:
        CG shared images       00000001cbf62000-00000001cc182000 [ 2176K] r--/r-- SM=SHM 
    -->
        STACK GUARD            00007fff5bc00000-00007fff5f400000 [ 56.0M] ---/rwx SM=NUL  stack guard for thread 0
    Application Specific Information:
    objc[20568]: garbage collection is OFF

  • Since i upgraded to FF4 Beta. The suggestion bit in my Google toolbar, works but not when you click on a suggestion?

    It gives suggestions but when you click on them nothing happens they just disappear.

    Hi satorilori-
    You might try this:
    -> Clear Cookies & Cache
    https://support.mozilla.com/en-US/kb/Template:clearCookiesCache
    -> Clear the Network Cache
    -> Reload web page(s) and bypass the cache.
    Press and hold Shift and left-click the Reload button.
    Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    Press "Cmd + Shift + R" (MAC)
    Check and tell if its working. Hope that helps!

  • Since upgrading to Firefox 27.0 some webpages will not load when I click on them. It gives me a message saying that Firefox can't find the server.

    Since upgrading to Firefox 27.0 some webpages will not load when I click on them. It gives me a message saying that Firefox can't find the server. I have to click the link several time before it will load and sometimes when they do load it does not show the page right. It is like the HTML is messed up or something. I have tried everything I can think of. I started in safe mode, still did it., I removed add-ons, still did it., I reset Firefox and still did it., I completely uninstalled Firefox and re-installed Firefox and it still does it. I have tried Malware Bytes Anti-Malware scans and Avast boot-time scans and found no malware or viruses. I have found that those websites open the first time with no problems on my IE9 and they used to do so in Firefox 26.0. I'm at my wit's end. The website links are in my bookmarks and are used all the time so they are trusted and my avast is set to allow them. They range from news websites to gun websites and everything I have read says that Mozilla does not filter those unless something has changed recently.

    Try this as a first step;<BR><BR>
    Clear the Cache '''''Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"'''''<BR><BR>
    and<BR><BR>
    Remove Cookies '''''Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"'''''<BR><BR>
    If there is still a problem,
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''
    While you are in safe mode;
    '''''Firefox Options > Advanced > General'''''. Look for and turn off '''Use Hardware Acceleration'''.

  • Why can't I get the image to view larger when you click on a thumbnail?

    I thought that there was a way to have the image open up larger in a new little window when you click the thumbnail on a photos page....when I click a thumbnail on my photos page it takes me right to slideshow view and the images are displayed too small to see fine detail (I am a retoucher, so my clients need to be able to see hi res images) I can't find a way to change the size of the slideshow images or to get my thumbnails to click open to a hi res version in a new window. The only solution I can think of is to use a blank template page, make each small image a link to a hidden page with the image at hi resolution....but this would take forever and I would have a gazillion pages on my site that way. Any idea how to get around this. Seems like the older version of iweb didn't have this problem...????
    (for an example of what I mean, my site: http://www.katesilsby.com (retouch page) and what old iweb did and what I want to happen: http://web.mac.com/vogier/iWeb/vivian%20ogier/wardrobe.html

    (for an example of what I mean, my site: http://www.katesilsby.com (retouch page) and what old iweb did and what I want to happen: http://web.mac.com/vogier/iWeb/vivian%20ogier/wardrobe.html
    iWeb2 photos page is completely different from that of iWeb1.
    iWeb2 photos page can be retro back to iWeb1, but not without major javascript coding.
    or using completely different previewing method for larger image, example: http://hdl.50webs.com/Lytebox/Photos.html

Maybe you are looking for

  • Error while purchasing an item in Apple Store

    Hello ... I Live in Iraq and my problem started yesterday when i tried to purchase the item Part number: MD827LL/A         ( price is 29$, shipped to US address ). I entered the 16 number of my credit card correctly but i incorrectly entered the secu

  • Views Status at MARA general info segment level

    Hi all, Please guide me how to maintain Views Status at MARA general info segment level.I am extending standard MATMAS IDOC for my own fields. Thank you.

  • How to expand 'Move to' list shown in Bridge

    How is the list of folders/drives in 'Move to' shown when I right-click on an image? Is it possible to modify this list to show my most-recently used folder? Thanks!

  • Ciscoworks 3.2.1 Upgrade Path

    We have Ciscoworks 3.2.1 (Windows Server).  We also currently have Cisco Prime Infrastructure 1.2 (appliance) for wireless management. I'm getting a bit confused trying to determine the appropriate upgrade path for the LMS server.  I'm wondering if I

  • Recover Database Package Object

    Hi, i accidently replace my package in my schema on last friday, how i gonna recover it back? my company is running a full backup of the database, and do not open up flashback function in that database. How I just recover only one object without caus