Change the color of LinkBar when mouseDown.

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Change the color of LinkBar when mouseDown.

    Hi,
    When inserting a LinkBar, by default when you click on a link, it turns the
    background of that item blue. I want it yellow. Which property should I change
    to get the appropriate results?
    Thanks
    She

    Shelady Guest

  2. Similar Questions and Discussions

    1. How to change the color of the LinkBar background.
      Hi, I am using link bar and by default when I click on the links it shows the blue color in the link background. I want to change this blue color to...
    2. Can't change gradient color
      My gradient will only allow me to change colors - defaults to a white to black fill. Everything else in my project is changeable to whatever color I...
    3. Change colour of another vector sprite on mousedown
      Hi folks, Wandered if anyone could shed any light on something please? Im creating a colouring book and it works fine but one thing is puzzling...
    4. how to change color of <hr noshade> with CSS ??
      Hi, how can the color of an <hr> line be changed with CSS? Thank you, thank you, thank you.
    5. Color Change
      hi; quick question: how can i chang the Background Color of the Current Record in a Continuous Form. thanks in advance;
  3. #2

    Default Re: Change the color of LinkBar when mouseDown.

    You may need to do something different for individual LinkBars.

    <?xml version="1.0"?>
    <!-- controls\bar\LBarSimple.mxml -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

    <mx:LinkBar id="lb" borderStyle="solid"
    mouseDown="StyleManager.getStyleDeclaration('LinkB ar').setStyle('backgroundColor
    ','#ffccee')"
    itemClick="navigateToURL(new URLRequest('http://www.adobe.com/' +
    String(event.label).toLowerCase()), '_blank');">
    <mx:dataProvider>
    <mx:String>Flash</mx:String>
    <mx:String>Director</mx:String>
    <mx:String>Dreamweaver</mx:String>
    <mx:String>ColdFusion</mx:String>
    </mx:dataProvider>
    </mx:LinkBar>
    </mx:Application>

    Greg Lafrance Guest

  4. #3

    Default Re: Change the color of LinkBar when mouseDown.

    I tried this code but it is changing the whole link bar color when I click on
    one item. I want when I click on a link, only the background of "that link"
    changes from default blue to yellow.

    Any idea!!!!!

    She

    Shelady Guest

  5. #4

    Default Re: Change the color of LinkBar when mouseDown.

    selectionColor seems to do it.

    <?xml version="1.0"?>
    <!-- controls\bar\LBarSimple.mxml -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

    <mx:LinkBar id="lb" borderStyle="solid"
    selectionColor="#ffccee"
    itemClick="navigateToURL(new URLRequest('http://www.adobe.com/' +
    String(event.label).toLowerCase()), '_blank');">
    <mx:dataProvider>
    <mx:String>Flash</mx:String>
    <mx:String>Director</mx:String>
    <mx:String>Dreamweaver</mx:String>
    <mx:String>ColdFusion</mx:String>
    </mx:dataProvider>
    </mx:LinkBar>
    </mx:Application>


    Greg Lafrance Guest

  6. #5

    Default Re: Change the color of LinkBar when mouseDown.

    Thank you sir. Thank you so much for helping me out.
    She
    Shelady Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139