Help make selectable TileList... Code included

I have a list with layout, TileLayout value. Without my itemrenderer, I get this behavior:

As you can see I can choose the elements and they are highlighted in blue.

selected.png

However when I apply my converter component, a thumbnail is displayed and I can choose the thumbnails but they are not visually selected and are are more highlighted.

How can I make my converter element changes color when selected?

Also, I have allow_multiple_selection set to True. Are these items and then stored in a table? How can I access this list of selected items?

Here is my list code

< s:List id = "testlist" x = "198" y = "256" dataProvider = "{imageService.lastResult.images.image}" itemRenderer = "thumbrenderer" width = "912" height = "275" includeIn = "State1' allowMultipleSelection 'true' = >"
< s:layout >
< s:TileLayout requestedColumnCount = "3" horizontalGap = "10" verticalGap = "30" / >
< / s:layout >

< / s:List >

And here is my review:

<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:fx s:ItemRenderer ' http://ns.Adobe.com/MXML/2009 "
xmlns:s = "library://ns.adobe.com/flex/spark".
xmlns:MX = "library://ns.adobe.com/flex/mx".
autoDrawBackground = "false" width = "250" height = "265" >

< mx:Image id = 'thumb' x = '9' = "6" width = "250" height = "265" source = "{data.thumburl}" click = "thumb_clickHandler (event)" / > "

< fx:Script >
<! [CDATA]
Import flashx.textLayout.factory.TruncationOptions;

Import mx.controls.Alert;
Import mx.events.ItemClickEvent;

protected function thumb_clickHandler(event:MouseEvent):void
{
var ev:ItemClickEvent = new ItemClickEvent (ItemClickEvent.ITEM_CLICK, true);
EV. Item = data;
EV.index = itemIndex;
Alert.Show (EV. Item.ImageUrl);
dispatchEvent (ev);
}



[]] >
< / fx:Script >

< / s:ItemRenderer >

Try to set autoDrawBackground = "true" on the ItemRenderer.  If you want more control on the graphics and colors in each State Watch renderers here by one example: http://flexponential.com/2009/12/13/multiple-selection-in-a-spark-list-without-the-control - key /

The selected items in a list are available through the selectedItems or selectedIndices property.

Tags: Flex

Similar Questions

  • can someone help with the following code plsql errors...

    Hello

    If anyone can help with the following code... to get a successful outing.

    create or replace package lib_01 as

    procedure lib_proc01 (p_user_id in numbers, p_user_name in varchar2);

    end lib_01;

    create or replace package body lib_01 as

    procedure lib_proc01 (p_user_id in numbers, p_user_name in varchar2) as

    number of v_user_id;

    v_user_name varchar2 (50);

    number of v_avl_books;

    number of v_avl_days;

    date of v_end_date;

    date of v_return_date;

    Start

    dbms_output.put_line ('Enter User Name');

    dbms_output.put_line (' username :'|| p_user_name);

    Select user_id, user_name in v_user_id v_user_name of user_registration where user_name = p_user_name;

    If v_user_name <>p_user_name then

    dbms_output.put_line (' username is not.) Please submit full name ');

    end if;

    If v_user_id is null or v_user_name is null then

    dbms_output.put_line ("' user not found");

    validate_userLogin;

    on the other

    validate_issuedbooks (p_issuecount);

    end if;

    If v_issuecount < v_avl_books then

    issuebooks;

    on the other

    Number of return of late_fee (p_mem_id, p_extradays, p_latefee_total);

    end if;

    If paid_flag = "Y" then

    issuebooks;

    on the other

    dbms_output.put_line ("' book may be issued due to its maximum reached late fees");

    end if;

    end lib_proc01;

    procedure validate_userLogin is

    procedure reg_proc is

    procedure user_validate (p_id_proof in varchar2, p_id_no out varchar2) is

    v_id_proof varchar2 (20);

    v_id_no varchar2 (20);

    Start

    Select user_name, id_proof, id_no, v_user_name, v_id_proof, v_id_no of user_registration where id_proof = p_id_proof;

    If v_id_proof = "Adhar_Card" then

    dbms_output.put_line ('user a valid proof of ID');

    dbms_output.put_line (' and the id no. :'|| is p_id_no).

    on the other

    dbms_output.put_line ('Invalid ID evidence.) Please submit valid proof of ID ');

    end if;

    exception

    When no_data_found then

    dbms_output.put_line ('No Data found');

    end user_validate;

    procedure member_validate (p_mem_id series)

    v_mem_flag char (1);

    curr_date date: = sysdate;

    date of v_mem_enddate;

    Start

    dbms_output.put_line('Mem_flag:'|| v_mem_flag);

    Select mem_flag in the v_mem_flag of user_login where user_id = v_user_id;

    If v_mem_flag = 'n' or v_mem_flag is null then

    dbms_output.put_line ('The User do not have membership');

    on the other

    Select mem_id in the v_mem_id of user_login where user_id = v_user_id;

    dbms_output.put_line ('the user has membership');

    v_mem_id: = p_mem_id;

    Select mem_enddate in the member_login v_mem_enddate where mem_id = v_mem_id;

    If v_mem_enddate < curr_date then

    dbms_output.put_line ('Membership has expired' | v_mem_id |' on ' | v_mem_enddate);

    on the other

    dbms_output.put_line ('User a validity again' | v_mem_enddate);

    end if;

    end if;

    exception

    When no_data_found then

    dbms_output.put_line ("' no data found");

    while others then

    dbms_output.put_line (' another error.) Please find");

    end member_validate;

    Start

    insert into user_registration values ('& first_name ',' & last_name', null, ' & user_type',)

    address_ty ("& bldg_no",

    '& bldg_name',

    '& Street',

    ' & city ",

    '& State',

    '& zip'

    ),

    user_phone ',' & user_mail ',' mem_idproof', ' & id_no');

    Dbms_output.put_line ('user is properly registered');

    exception

    When no_data_found then

    dbms_output.put_line ("' data not found");

    end reg_proc;

    Start

    Dbms_output.put_line (' enter ID or user name ');

    Dbms_output.put_line (' username: ' | p_user_name);

    If v_user_name is null then

    Dbms_output.put_line ('user not found');

    reg_proc;

    Insert user_login SELECT user_id_seq. NEXTVAL, user_name, NULL, mem_id_seq. NEXTVAL, user_type FROM user_registration WHERE user_name is lower (p_user_name);

    Dbms_output.put_line (' because the user wants to have the membership? ");

    Dbms_output.put_line ('If Yes, please pay dues");

    INSERT INTO member_login SELECT mem_id_seq. CURRVAL, SYSDATE, SYSDATE + avl_days, 500, 'Y' of user_login ul, bl book_loan WHERE ul.mem_type = bl.mem_type AND user_name = p_user_name;

    END IF;

    exception

    When no_data_found then

    dbms_output.put_line ("' no data found");

    When too_many_rows then

    dbms_output.put_line (' too many lines).

    END validate_userLogin;

    procedure validate_issuedbooks (p_issuecount series)

    number of v_issuecount;

    Start

    Select user_login u, bl book_loan, avl_days, avl_books in v_avl_days, v_avl_books where bl.mem_type = u.mem_type and user_id = p_user_id;

    SELECT count (case when end_date < end return_date then p_mem_id) as invalidcount in v_issuecount from book_count where mem_id = p_mem_id;

    v_issuecount: = p_issuecount;

    dbms_output.put_line (' no. books that the user contains the :'|| p_issuecount);

    end validate_issuedbooks;

    procedure issuebooks is

    procedure book_avl (p_avl_now_flag in p_avl_date Boolean, date) is

    v_avl_now_flag char (1);

    date of v_avl_date;

    procedure reader_bookissue is

    Start

    insert into values drive (p_user_id, v_book_id, sysdate, sysdate, null);

    insert into book_count values(p_mem_id,v_book_id,sysdate,sysdate,null);

    Update book_availability set issued_to is "Reader" where book_id = v_book_id;.

    end reader_bookissue;

    Start

    Select book_name, b.book_id avl_now_flag v_book_name, v_book_id, v_avl_now_flag of the book b, book_availability b where b.book_id = ba.book_id and ba.book_id = p_book_id;

    If v_avl_now_flag = "Y" then

    dbms_output.put_line ('the book is available for issuance' | v_book_id);

    on the other

    Select mem_type in the v_mem_type of user_login where user_id = (select user_id from book_availability where avl_now_flag = 'n' and book_id = p_book_id);

    If v_mem_type = "Reader" then

    reader_bookissue;

    dbms_output.put_line (' the book is with Reader.) Please try tomorrow.') ;

    on the other

    dbms_output.put_line ('the book is member');

    end if;

    Select avl_date in the book_availability v_avl_date where book_id = p_book_id;

    v_avl_date: = p_avl_date;

    dbms_output.put_line (' the available date is: ' | p_avl_date);

    end if;

    end book_avl;

    Start

    insert into book_count values(p_mem_id,p_book_id,sysdate,sysdate+v_avl_days,v_return_date);

    Update book_availability set book_id = p_book_id, avl_now_flag = 'n', avl_date is to_date (sysdate + v_avl_days,' dd-mm-yyyy ""), issued_to = v_mem_type, user_id = p_user_id where mem_id = p_mem_id;

    commit;

    dbms_output.put_line ("' the book published successfully");

    end issuebooks;

    Number of function return late_fee (p_mem_id in number, p_extradays series, p_latefee_total number) is

    number of v_extradays;

    number of v_latefee_total;

    number of v_latefee_per_book;

    number of v_latefee_per_day;

    number of v_book_count;

    Start

    Select trunc (sysdate) - v_end_date in v_extradays from book_received where mem_id = p_mem_id and book_id = p_book_id;

    p_extradays: = v_extradays;

    v_latefee_per_book: = v_latefee_per_day * v_extradays;

    v_latefee_total: = v_latefee_per_book * v_book_count;

    p_latefee_total: = v_latefee_total;

    dbms_output.put_line ('The total AMT for not returned books' | p_latefee_total);

    end late_fee;

    end lib_01;

    Hello

    I checked the first 10 lines after the beginning and I could count already several errors.

    Is it an exercise or a real code, you must provide?

    Kind regards.

    Alberto

  • Cannot make selections

    Hello

    I can't make selections under indicators made yellow in the timeline with the order of selection to make, but it is possible to make the same clips when setting to to use in out. But making a selection under a red light to help return the selections was possible.

    Did I miss something or someone has experienced something like this?

    I use first Pro CC 7.2.1 (4) on Mac and PC

    See you soon

    Kim

    Hi Kim DT.

    Please post on the Adobe forums,

    Please check this post, it will respond to your request.

    http://blogs.Adobe.com/PremierePro/2011/02/red-yellow-and-green-render-bars.html

    With this definition of preparatory of the road, what do mean the bars colored?

    • Green: This segment of the sequence has a preview of rendering that are associated with file. Playback will play using the rendering preview file. Full quality playback is certain to be in real time.
    • yellow: This segment of the sequence doesn't have a preview rendering that are associated with file. Reading will play in making each image just before that ICT reached it. Reading in full quality will probably be in real time (but it may not be).
    • Red: This segment of the sequence doesn't have a preview rendering that are associated with file. Reading will play in making each image just before that ICT reached it. Full quality playback will probably not in real time (but it could be).

    Kind regards

    Sandeep

  • Help with the enforcement code model

    I need to find a way to apply a pattern that I can't enforce through the specification of the normal template.

    I have a field that must be two numeric characters.  If only a numeric character is entered, then it must be two characters, with the first main character being zero.  So, if you enter 3, then the field becomes 03.

    In addition, none of the non-numeric characters cannot be accepted.  Unfortunately, if I try to specify a model in a numeric field, then it converts all non-numeric characters zeros!  Who does not work for my application.

    The plan I came up with is this: make the field so that it is not wide enough for the characters to width fixed to fit and check the box to limit the length of field to the visible area.  Then enter the code on the output event that will check the characters who had entered one at a time, first the left then the right.  It can examine the ASCII values for these characters to ensure that they represent 0 to 9 digits; This would mean that the ASCII value of each character must be greater than or equal to 48 and less than or equal to 57.  If one of the characters does not pass this test, then the computer will beep (as it does when I try to enter an alphabetic character in a numeric or decimal field, if it is possible to make a beep like that) and the field is cleaned.

    Can someone help me with this code?  I know I have to use javascript instead of formcalc (since there is no function ASCII in formcalc I know), and I don't know javascript, so I'm at a loss.

    Thanks for any help...

    Hello

    As with most of the code, there are a number of ways to do this. Here is an example that you can add to the event of output of the field in question and make sure that the language is set to JavaScript, or well the code generates an error. I've added comments for you to see what is happening:

    var myRegex = / ^ \d{2}$/; This corresponds to a 2-digit model

    var singleDigits = [0,1,2,3,4,5,6,7,8,9]; Table for verification to a single digit

    for (var i = 0; i)< singledigits.length;="" i++){="" loop="" through="" single="" digit="">

    If (this.rawValue == i) {/ / if the value is a number in the table}

    this.rawValue = "0" + i; Add a "0" in front

    }

    }

    If (this.rawValue! = null | this.rawValue! = ") {/ / only if the field contains a value...}

    If (! this.rawValue.match (myRegex)) {/ / and it does not match the model (i.e. 2 digits)}

    this.rawValue = "; Clear the field

    xfa.host.setFocus (this); set the focus on the ground

    xfa.host.messageBox ("error: reason for conflict.") Only 2 digits can be entered in this field. ") ; Enter any message you want here

    }

    }

    This field must be a text field for the '0' to be added to the front, otherwise, if it is a numeric field, the code will try to add the '0' mathematically the number entered and you'll end up with a single digit again.

    Another option is to make the field a comb 2 numbers and then you can delete the second block of code.

    -

    Dallas

  • error: implicit declaration of function 'GetActiveProcessorCount' is not valid in C99. Make sure that you include the prototype for the function.

    I get the following error:

    error: implicit declaration of function 'GetActiveProcessorCount' is not valid in C99. Make sure that you include the prototype for the function.

    I've included windows.h

    which includes winbase.h

    Winbase.h contains the prototype for the function in the above error message.

    If I disable 'Require the function prototypes' and 'Building with the C99 extensions', I get the following error:

    error: Undefined symbol "_GetActiveProcessorCount" referenced in "c:\Users\Public\Documents\National Instruments\CVI\HDLC\cvibuild. HDLC_RandD\Debug\HDLC_RandD.obj ".

    I work in the ICB 2013 SP2.

    Why I get this error.

    This function is only valid in Windows 7 and later versions. Because the ICB 2013 still supports Windows XP, this feature is excluded by default from Windows headers that are provided with CVI. If you do not need to worry about the versions of Windows prior to Windows 7, however, you can include it yourself, by adding the following macro in the dialog box options generation CVI (be sure to include for all configurations):

  • Microsoft helps make the windows for students genune?

    Genuine Windows is not available and its way too expensive for us students here in the Nepal.
    I had somewhere that Microsoft helps make real windows.
    How can I do?

    Unfortunately, no, you buy a genuine license if you need. You can get Windows 8 for a steep discount until January 31:

    http://www.Windows.com/buy

  • Hi, I need to download the trials individually or makes the CC trial includes all applications?

    Hi, I need to download the trials individually or makes the CC trial includes all applications?

    The applications are downloaded individually.

  • How to install lightroom with the help of my redemption code

    How to install lightroom with the help of a redemption code?

    Hello

    You can not install lightroom with a redemption code.

    You must use a serial number to install it.

    For the serial number, click on the below mentioned link

    https://redeem.licenses.Adobe.com/getserial

    Enter the code of redemption on the link above and you will get the serial number.

    Thank you and best regards,

    Garima SALAUN

  • Can't 'make selection' multiple paths

    When I draw many traces, then click 'choose' it only selects the last. When I use "select path" to select all the paths, then click on 'make selection' I get "WARNING: no pixels are selected error.» It's really frustrating and I never had the problem on cs6, cs5

    See the image in the new tab or window

  • pse11 don't make selections

    Hi-PSE11 worked but now does not allow me to do simple selection work of ants (tool rectangular / ellipse). It seems to make a type of contour mask refine, but no matter how many ways I try, I can't change it to ants. The viewport edge refine seems to not work when I select the mobile dotted in this menu. I've checked everything I can think of.

    Click on the upper right of the toolbar option and choose "Reset Tool". Then try to make selections

  • Using "Keylines" to help make the titles broadcast safe in Premiere Pro

    Hello

    I use the following great link provided by Bill Hunt to help make downrezzed to look reasonably good SD HD titles.

    http://library.CreativeCOW.NET/articles/hodgetts_philip/titles.php

    I have a question about the screenshot below, taken from the link above:

    Screen shot 2011-05-17 at 7.06.45 PM.png

    I understand the notion of "keylines" here, but I'm not sure how to make that happen within my title options menu.

    Does have another name in Premiere Pro?  My search for "keylines" in the Help menu has been in vain.

    In addition, in this context, the "80-204/204/204" numbers mean mean?

    Thank you!

    Matt

    No, probably just outside. They are useful here, while the Interior would be just if you need a specific look.

    The numbers, by the way, are the RGB values.

  • Required blackBerry Smartphone help eliminate the international code attach when I try to make calls from the phone book

    I just bought my first Blackberry.  Everything is great except... There was an international code pre-programmed in the phone, because when I try to call in the phone book, or return a call - do not do so by dialing the number from the keyboard) it attaches one + 86 to the front of the phone number.  How can HELP - I get rid of this?  Thanks for any help anyone can give me.

    Try this:

    go to call log > Menu > Options > SmartDialing > then change the country code + 1 for the USA.

  • Please can someone help me fix this code? Its doesn't seem to make the div you want to stick to the top of the page: the code is shown below.

    I need help, what is the problem with the code below:

    <! DOCTYPE html >

    < html >

    < head >

    < title > < / title >

    < style >

    *{

    margin: 0;

    padding: 0;

    }

    {#sticky}

    Width: 600px;

    background-color: #000;

    color: #fff;

    do-size: 2em;

    border-radius: 0.5ex;

    padding-top: 10px;

    padding-bottom: 10px;

    padding-left: 3px;

    }

    {#sticky.stick}

    position: fixed;

    top: 0;

    z index: 10000;

    }

    {#sticky-anchor}

    height: 0;

    }

    {#wrapper}

    Width: 600px;

    Auto margin: 0;

    padding: 0;

    }

    #header {}

    Width: 600px;

    height: 140px;

    Auto margin: 0;

    }

    #content {}

    Display: block;

    height: 800px;

    Width: 600px;

    background-color: pink;

    }

    < / style >

    < / head >

    < body >

    < script >

    function sticky_relocate() {}

    var window_top = $(window) .scrollTop ();

    var div_top is $('#sticky-anchor').offset () .top;.

    If (window_top > div_top) {}

    $('#sticky').addClass ('stick');

    } else {}

    $('#sticky').removeClass ('stick');

    }

    }

    {$(function()}

    $(window) .scroll (sticky_relocate);

    sticky_relocate();

    });

    < /script >

    < div id = 'wrapper' >

    < div id = "header" > < welcome h1 > < / h1 > < / div >

    < div id = "post-it-anchor" > < / div >

    < div id = "sticky" > it will stay at the top of the page < / div >

    < div id = "content" > < / div >

    < / div >

    < / body >

    < / html >

    Nothing wrong (other than a few problems regarding coding practices). You simply need to link to the top of the jQuery library.

  • How I would make my background to be like these sites, please someone help / tell me the code to insert into my muse site?

    Hi I need help putting this in my site, doe, anyone know how or the html/css code, I need to work. A website with background is http://dotto.be

    Thank you

    The site uses a term called Parallax scrolling.

    That can be achieved in Muse without any third party code.

    See video link below to get started:

    Adobe Muse - motion scrolling effect - YouTube

    It also seems to use the third party widget that you can buy on sites like:

    Muse - Themes.com - Adobe Muse Templates | Blog and Widgets of Muse

  • Need help make new samples of .png files

    Hello

    I bought some black with transparent background (png) tiled patterns and I want to make new samples out of each of them.  I'm doing everything I read and nothing works.

    I use CS6.  I have one .png templates in a document .ai.  I tried to drag on the box of the swatch group, and nothing happens.  When I click on "New shade" with the .png file selected, it creates a new shade but it's only in black, there is no model.  I tried to put a line around it and selecting 'New Swatch' again; He created a new grade with the race, but he did not use my .png image, he used the last nuance in the Panel!

    In addition, any input on what the size of the original .png file should be to make a shade.  Bought size is 3600 square px.  I don't know that I should probably use a different size.

    I thought it was supposed to be easy in Illustrator.  I have to do something wrong.  Help, please!  Thank you!

    Thanks for jumping in the tone! Your suggestion led me to the problem so I could fix.

    When I went to object > template > do as you suggested, I received an error message indicating that I couldn't make a shade of a linked object.  I included the image in the document and * finally * has managed to make a shade with success.

    Why it never appeared in my searches or documents Adobe, I found is beyond me, but all's well that ends well.

    Thanks again for your!

Maybe you are looking for