Change the color of selecteditem in a LIST FLEX

i WANT TO CHANGE THE COLOR OF SELECTEDITEM IN A LIST.  WHEN EVER USER DOUBLE CLICK THE ITEM IT SHOULD CHANGE THE COLOR...
  THIS IS MY LIST WITH DOUBLE CLICK EVENT...PLEASE HELP.....THIS SEEMED SO SIMPLE BUT I ALREADY SPENT FEW HOURS..
HELP WILL BE APPRECIATED. THANKS
<s:List id="shopslist1" left="0" right="0" top="57" bottom="0"
            initialize="shopslist1.dataProvider=actions" labelField="details" color="Red"   doubleClick="shopslist1_doubleClickHandler(event)">      
    </s:List>
protected function shopslist1_doubleClickHandler(event:MouseEvent):void
                shopslist1.selectedItem. ?????????

Hello,
Please see following code:
<?xml version="1.0" encoding="utf-8"?>
<!-- dpcontrols\spark\SparkListSimpleStyles.mxml -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
   xmlns:s="library://ns.adobe.com/flex/spark"
   xmlns:mx="library://ns.adobe.com/flex/mx">
<s:layout>
<s:VerticalLayout/>
</s:layout>
<fx:Script>
<![CDATA[
protected function myList_doubleClickHandler(event:MouseEvent):void
myList.setStyle("selectionColor" ,"#CC6600");
]]>
</fx:Script>
<s:List id="myList"
alternatingItemColors="[#66FFFF, #33CCCC]"
    doubleClick="myList_doubleClickHandler(event)">
<s:dataProvider>
<mx:ArrayCollection>
<fx:String>Flex</fx:String>
<fx:String>Flash Builder</fx:String>
<fx:String>Flash</fx:String>
<fx:String>Director</fx:String>
<fx:String>Dreamweaver</fx:String>
<fx:String>ColdFusion</fx:String>
</mx:ArrayCollection>
</s:dataProvider>
</s:List>
</s:Application>
Thanks and Regards,
Vibhuti Gosavi | [email protected] | www.infocepts.com

Similar Messages

  • How can i change the color of  header in ouput list of alv?

    My output list heading is 'LIST OF COST CENTERS DATA' How can i change the color of that.
    I was searched in forum but i didn't get.if it is silly question please forgive me.

    we can change the header text color, by using the html font tag.
    < htmlb :tableView id               = "flights"
                                 table            = "<%= controller->it_flight %>"
                                 headerText       = "<font color='red'>Flight Details</font>"  <----are you talking abt this
                                 headerVisible    = "True"
                                 hasLeadSelection = "FALSE"
                                 footerVisible    = "FALSE"
                                 visibleFirstRow  = "1"
                                 onRowSelection   = "onRowSelection"
                                 iterator         = "<%= controller %>"
                                 selectedRowIndex = "<%= controller->row %>"
                                 width            = "100%"
                                 design           = "ALTERNATING" >

  • I'm a new MacBook owner, struggling!  Why can't I change the color of the font on emails I'm sending, can't change the Contact list to last name first.  HELP!

    How do I permanently change the color of the font for the emails I send?  How do list Contacts by LAST name, not first?  How do I put this little emoticon button on my tool bar?  THANK YOU.  saljack

    saljack wrote:
    How do I permanently change the color of the font for the emails I send?  How do list Contacts by LAST name, not first?  How do I put this little emoticon button on my tool bar?  THANK YOU.  saljack
    Order of contacts=Open contacts. Click on menu bar>preferences>general.
    What little emoticon?
    Color permanently=as far as I know, you cannot change it.
    Barry

  • How do you change the color of events on ICal.

    How do you changed the color of events on ICal? I was able to do this when I utilized ICal on the Snow Leopard system but can no longer do this with Lion.
    I know that I can select the Calanders list, but when I create a new "Calander" it doesn't allow me to choose a color and it doesn't show up in my list when working within an event.
    Thanks!

    Phoebe,
    Right-click on the new calendar and select "Get Info."
    Make sure that the ✓ mark is selected.
    Then choose the color from this pane:

  • Can't change the color of text of links on my Welcome Page

    I have a Welcome page with four links that happen to be text that I dragged over from my list of sites. I can change the text style and size but I cannot change the color from the default reddish brown.

    To change the color of any hyperlinks, you need to select the link, go to the Hyperlink page, choose the Format option, and then select the color you want for Normal, Rollover, Visited and Disabled.
    This should work.
    You can also set the default colors and formats you want for all other entries on that same page.

  • How can I change the color of the new tab button?

    Hi,
    I was wondering if there was a way to change the color of the new tab button, list all tab button, and tab groups button. I have been searching for personas that don't make it hard to see those particular buttons for days now, but since I can't seem to find any I was hoping there was a way to change those buttons' colors to make them more visible with the personas.
    [http://i54.tinypic.com/2ui9351.jpg Here's a picture of the situation]
    I want to change those 3 buttons (and the "show more bookmarks" button that appears when the window is too small to show them all) to white or some other more visible color. I know there's a way to change the background of those buttons, but I'd prefer if I could change the '+' button itself in the new tab button for example. Is there any way to do it? Because it's so hard to find personas that don't make it hard to see text or buttons.
    Thanks.

    jus an example
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    Blinking_Indicator_2003.vi ‏27 KB

  • How can we change the  color of the image for product display for different

    Hi All,
    How can we change the  color of the image for product display for different colors, to be displayed on site.
    jeff

    Hi priya,
    The requirement that you have stated is not a standard feature in ISA CRM. In order to do the same, you will need to modify the standard ISA code in Java. A common path for the solution would be as follows:
    1. Colours
        a. Maintain a text type for Color under the object - PCAT_ITM in Customizing.
        b. Modify the standard search of ISA to search within your new text type as well. (In standard it only searches in Description.
       c. Maintain all shirts colour data in the new type created in step a.
       d. Your requirement will be done!
    2. Price
      a. Use list prices for your shop and assign the appropriate condition type, acces in your catalog.
      b. Modify the standard search of ISA to search on the list prices as well.
      c. This too will be done!
    3. Accessories - This is very tricky, and will require some exploration. However, here's my opinion,
    a. Search for the standard function module, which will return the accessories when provided the product as an input.
    b. Modify this function module according to your requirement and ensure that it can be accessed remotely.
    c. Modify the JSP as in steps 1b and 2b above to call this new remote-enabled function module.
    d. Now you're done!!
    The ISA modification part is not so simple, you need a really good guy like "Sateesh Chandra" who'll be able to handle your requirements. This is all I could manage, hope it is some help to you!
    Thanks & Regards,
    Nelson.

  • Theme colors - Change the color of buttons

    Hi
    I went through the tuttorial, "Adding Styles to Components"
    I were able to change different properties of buttons by creating a Style Class with the same name as that of the theme but with different style attributes.
    This had the desired effect except for the background color.
    I played around abit with the style editor settings of a button with a theme applied on it, and found that when you are in the background tab of the editor and you select your desired new color, that there are no changes EXCEPT for when you select the " Repeat-y" from the "Tile" drop-down list. Only problem is you get a funny stripe through the middle of the button.
    Is this the only way to change the color of buttons, linked to a theme, to a new color?
    Any Advise
    Thank you

    To find the style properties defined in class Btn2, go to the theme's read-only css_master.css file:
    In the Projects window, expand Libraries > Default Theme > com.sun.rave.web.ui.defaultheme.css.
    Double-click the css_master.css file to open the file.
    Search the file for the style class of interest, such as Btn2.
    For example, to set a Btn2 background-color, both background-color and background-image must be defined to override the existing style class. Since you cannot make edits to the read-only css_master.css, use the style property editor to set the background-image to null and the background-color to the one desired for your component.

  • Does anyone know if there is a way to change the colors with the new update

    Can anyone tell me how to change the colors on my IPhone with the new IOS update?

    Nope, this only changes it to black and magenta.  I wsh I could find it again, it's there I promise.. There is a whole list of colors, I changed it to red and want to see if black is better.  Just don't care for all the blue..

  • How to change the color of a bullet

    I'm new to InDesign CS3. I've figured out how to create a bullet list, even change the bullet to something custom. But I now want to change the color of the bullets. I want to keep the text black, but have the bullets be a different color. Can someone point me to the method to do this.
    Many, many thanks!

    I don't "want" anithing in particular, much less turning inDesign into MS Word I do believe UX could be improved making it more intuitive while keeping the advanced features of Style libraries that can be applied across pages of a large project. On that note I am quite aware of the differenced between inDesign and MSWord as someone who has been working in DTP though that's not a daily activity at this time
    How would the program know what you want? Would you want specific keystrokes to invoke some sort of treatment to your text?
    Maybe I should've been more specific and thorough, my bad... it's not by some magic spell that the program would know "what I want" nor I mentioned keyboard shortcuts to perform "some sort of treatment" to the text.
    Looks like we have a case of "what we have here is a failure to communicate" LOL! ...And is most llikely my fault... perhaps I haven't been clear and simple enough in my explanation of how I would envision a more intuitive UI which would make for a more friendly UX.
    Let me try again:
    The program knows that the item selected is a list because when selecting a bulleted list in inDesign that's what happens... it's not a new feature, it's already context-aware.
    To see what I mean create a text area, and type 3 lines of text, then turn it into a bulleted list by clicking the bullet list button.
    At this point select the list...
    You will notice that once you highlight the list, the bullet list button in the properties toolbar (the same that contains font size, paragraph, alignment buttons and so on) will turn "on" showing the typical selected sate with a darker gray gradient effect, to indicate that the bullet list is selected because that attribute is active on the text area created by the type tool...
    ... I hope the concept above is clear and it's a fact that the program knows not "what I want", which wasn't even the point.. but knows that the selected item is a bullet list made of text that the user has written to which the program attached default basic bulletpoints at each "new line"
    Now, since we can agree that we have one object (the text field) that has been associated with another object (the bullet points added by the program) it should also be clear which "two objects" I was referring to.
    At this point, both ourselves and the program are aware to have 2 objects... and as we know they have several modifiable properties such as size, color, font, and so on as previously mentioned.
    So with the above cleared out, we now have:
    Object userTypedText
    and
    Object programAddedBulletPoints
    We know that they both have mofifiable property such as color, fontFamily, fontSize and few others I'll skip for example sake.
    Back to my original point of simplifying, it really boils down to allowing the Object userTypedText and the object programAddedBulletPoints to be separately accessible by users allowing them to change the properties, much like already done when selecting the text and changing font size for instance.
    All I was talking about was simply to allow users to modify properties of bullets or index of a list via an inspector (a currently missing feature) that would let users access and modify right away the properties of the programAddedBulletPoints that at this time can only be modified via the process illustrated by Nilsy.
    If you imagine that one would need to go through the same style "workflow" to merely change the fontsize or font color, you would surely agree that would be nonsense and should be done by a more immediately user-accessible character panel... so that's what I am suggesting: to have a more immediately user-accessible bullet/index property panel to let users select and edit both unordered and ordered lists appearance without forcing users to resort to having to jump between multiple style-formatting windows buried in tabbed panes.
    I hope I've been able to illustrate what I meant in my original comment.
    Cheers!
    tfbkny

  • How to change the color of a calendar entry

    How do you change the color of a calendar entry?

    Hi Skaytn,
    Welcome to the Support Communities!
    Are you referring to the Calendar app on your computer, or do you have an iCloud account?  The articles below will explain how to change calendar names and colors.  Whatever calendar you place an entry in will determine what it's color will be.
    Mac Basics: Calendar keeps your appointments
    http://support.apple.com/kb/HT5978
    Create new calendars
    By default, OS X includes two calendars in the Calendar app – Work and Home. If  you want to create a new calendar, choose New Calendar from the File menu. Type a name for your calendar in the text field. For example, if you have kids, you might want to create a separate calendar for each one to track their schedules. You can see and control how your calendars appear by clicking the Calendars button.
    To change the color or name of a calendar, select it from the calendars list, then choose Edit > Get Info. To remove a calendar and all of its events, right-click or Control-click the calendar's name,  then select Delete from the shortcut menu that appears.
    Calendar (Mavericks): Change calendar colors
    http://support.apple.com/kb/PH14984
    Change the color of a calendar and its events.
    Click the calendar’s name.
    Choose Edit > Get Info.
    Choose a new color from the pop-up menu in the top-right corner.
    iCloud: Change a calendar’s name or color
    http://support.apple.com/kb/PH2675
    Cheers,
    - Judy

  • How can I change the color on the source?

    I have a Dreamweaver 8 for Macintosh.
    On Code window, how can I change the color on "option value="
    from orange to perhaps red? It is hard for me to see the orange
    fonts on the source.
    Another one, how can I change the font size on the source?
    (Not on the design window).

    >>
    how can I change the color on "option value=" from orange to
    perhaps red?
    >>
    edit -> Preferences -> Category "Code Coloring". Now
    select "HTML" from the "Document type" list and click the "edit
    coloring scheme" button.
    in the next dialog "edit coloring scheme for HTML" you can
    either select "HTML form tags" from the "styles for" list or click
    within the sample form displayed in the "Preview" below -- just use
    the "Text color" color picker to switch the default "orange"
    (#FF9900) value to red
    >>
    how can I change the font size on the source?
    >>
    edit -> Preferences -> Category "Fonts" :: select the
    desired font from the "Code view" menu and change the font size
    from the "Size" menu to the right

  • Changing the color of font in Mail

    How do I change the color (rusty brown) of the mail list in my junk box? The brown color is difficult for me to read. I checked the Mail preferences but could not find any preference control to change the color.

    How did you manage to change.
    -logu

  • How can I change the color of iCal Calendars ?

    Under the heading of Calendars I have 9 categories, each has a colored square to the left. Each square can be checked or unchecked. I want to change the colors of these squares, can I do that?

    Control-click the calendar name in that list and select Get Info from the pop-up. There is a colour-selection popup top right.
    AK

  • Change the color

    Hi Everyone,
    I need to change the color tone of the image with out changing the structure of the image.
    for ex:
    I like to change the skin tone of my head part of image. Is it possible to change the skin tone color.
    I need some right way to process.
    Thanks and Regards
    Saran

    You need to play with filters, especially ConvolutionFilter. Here is the list of all filters and documentation:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filters/package-d etail.html

Maybe you are looking for

  • V3 job in sap R/3

    Hi Friends,            what is tcode for run v3 job in sap R/3 ? Thanks & Regards, Upendra.

  • Values showing up as null in expression

    I have a page that allows the user to modify some info in 2 fields and after making the change the info then gets sent to a servlet that makes the update. Problem is that before it's sent to the servlet the parameters show up as null. It's an object

  • How to open internet links from Outlook 2003 using Firefox not IE

    When I open an internet link from Outlook 2003 it always opens with Internet Explorer. I want to open with Firefox. == This happened == Every time Firefox opened == ?

  • How do I unhighlight text I just highlighted?

    I highlighted multiple lines of text within a document I'm creating.  However, I need to unhighlight some of the text I highlighted.  How do I accomplish this? Thanks in advance, Z.

  • BARIN Error 628 - RS_VARIANT_EXISTS

    Hi All, Ii have a query defined and it works fine in RSRT as well as in the BEx. But my requirement is to execute the query using background using ABAP. In one of the steps I have to validatethe query using RS_VARIANT_EXISTS with query and the varian