source: ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/common/components/RssLinkButton.mxml @ 2339

Last change on this file since 2339 was 2339, checked in by olhsha, 12 years ago

fixing rss-button on the commentspanel via spacer. It seems to be the mots optimal solution in the presence of Flex Vertical-Scroll-Bar bug.

File size: 874 bytes
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
3                   cornerRadius="5"
4                   borderStyle="solid"
5                   width = "18"
6                   >
7        <mx:Script>     
8                <![CDATA[
9                        import clarin.cmdi.componentregistry.services.Config;
10                        import clarin.cmdi.componentregistry.common.StyleConstants;
11                       
12                        private const OUT_FOCUS_BORDER_COLOR:String="white";
13                        private const IN_FOCUS_BORDER_COLOR:String = "haloBlue";
14                       
15                        private function focusBorder():void{
16                                setStyle("borderColor", IN_FOCUS_BORDER_COLOR);
17                               
18                        }
19                       
20                        private function unFocusBorder():void{
21                                setStyle("borderColor", OUT_FOCUS_BORDER_COLOR);
22                        }
23                ]]>
24        </mx:Script>
25       
26  <mx:Image id="pict"
27          source="{StyleConstants.rssIcon}"
28          toolTip = "RSS feed"
29          useHandCursor="true"
30          buttonMode="true"
31          mouseOver = "focusBorder()"
32          mouseOut = "unFocusBorder()"
33          />
34</mx:Canvas>
35
Note: See TracBrowser for help on using the repository browser.