Methods | Properties | Effects | Events | Styles | Examples Frames | No Frames

mx.controls
Class Link

Inheritance ImageInheritance ImageInheritance ImageInheritance Image


class Link
extends mx.controls.Button

The Link control is essentially a borderless Button whose contents highlight when the mouse hovers over it. These traits are often exhibited by links contained within a browser page. In order for the Link to perform some action, as is the case with a Button, you must specify a click hander.

MXML Syntax

The <mx:Link> tag inherits all the properties of its parent classes, and the following properties:

 <mx:Link
rollOverColor="0xE3FFD6"
selectionColor="0xCDFFC1"
textSelectedColor="0x000000"
/>

Click here to view the Examples

Methods

Methods inherited from class mx.core.UIComponent
drawFocus   getFocus   getFocusManager   setEnabled   setFocus  

Methods inherited from class mx.core.UIObject
addEventListener   applyProperties   buildDepthTable   commitProperties   constructObject2   createAccessibilityImplementation   createChildAtDepth   createChildren   createClassChildAtDepth   createClassObject   createEmptyObject   destroyObject   dispatchEvent   doLater   draw   drawRect   executeBindings   fillRect   findNextAvailableDepth   getRepeaterItem   getStyle   handleEvent   init   invalidate   invalidateLayout   invalidateProperties   invalidateSize   invalidateStyle   layoutChildren   measure   move   redraw   removeEventListener   setDepthAbove   setDepthBelow   setMask   setSize   setSizeNoLayout   setStyle   swapDepths  



Properties
staticversion: String
Version string for this class.

Properties inherited from class mx.controls.Button
icon   label   labelPlacement   version  

Properties inherited from class mx.controls.SimpleButton
falseDisabledSkin   falseDownSkin   falseOverSkin   falseUpSkin   selected   toggle   trueDisabledSkin   trueDownSkin   trueOverSkin   trueUpSkin   version  

Properties inherited from class mx.core.UIComponent
enabled   errorString   tabEnabled   tabIndex   version  

Properties inherited from class mx.core.UIObject
alpha   baselinePosition   className   depth   documentDescriptor   height   heightFlex   id   instanceIndices   isDocument   kStretch   layoutHeight   layoutWidth   maxHeight   maxWidth   minHeight   minWidth   mouseX   mouseY   nestLevel   oldHeight   oldWidth   oldX   oldY   parent   parentApplication   parentDocument   percentHeight   percentWidth   preferredHeight   preferredWidth   repeaterIndices   scaleX   scaleY   styleName   tabEnabled   toolTip   version   visible   width   widthFlex   x   y  



Effects

Effects inherited from class mx.core.UIComponent
focusInEffect   focusOutEffect  

Effects inherited from class mx.core.UIObject
creationCompleteEffect   hideEffect   mouseDownEffect   mouseOutEffect   mouseOverEffect   mouseUpEffect   moveEffect   resizeEffect   showEffect  



Events

Events inherited from class: mx.controls.Button
click 

Events inherited from class: mx.controls.SimpleButton
buttonDown  buttonDragOut  click 

Events inherited from class: mx.core.UIComponent
focusIn  focusOut  invalid  keyDown  keyUp  valid  valueCommitted 

Events inherited from class: mx.core.UIObject
creationComplete  dragComplete  dragDrop  dragEnter  dragExit  dragOver  draw  effectEnd  effectStart  hide  hideToolTip  initialize  load  mouseChangeSomewhere  mouseDown  mouseDownSomewhere  mouseMove  mouseMoveSomewhere  mouseOut  mouseOver  mouseUp  mouseUpSomewhere  move  resize  show  showToolTip  unload 



Styles
cornerRadius Type: Number   CSS Inheritance: no
Corner radius of hilite rectangle. The default value is 4.
rollOverColor Type: Number   Format: Color   CSS Inheritance: yes
Color of link as you move the mouse pointer over it. The default value is 0xE3FFD6.
selectionColor Type: Number   Format: Color   CSS Inheritance: yes
Background color of the link as you press it. The default value is 0xCDFFC1.
textRollOverColor Type: Number   Format: Color   CSS Inheritance: yes
Text color of the link as you move the mouse pointer over it. The default value is 0x2B333C.
textSelectedColor Type: Number   Format: Color   CSS Inheritance: yes
Text color of the link as you press it. The default value is 0x000000.

Styles inherited from class mx.controls.Button
borderThickness   cornerRadius   horizontalGap   textRollOverColor   textSelectedColor   verticalGap  

Styles inherited from class mx.controls.SimpleButton
repeatDelay   repeatInterval  

Styles inherited from class mx.core.UIComponent
backgroundAlpha   backgroundColor   backgroundDisabledColor   backgroundImage   backgroundSize   barColor   borderCapColor   borderColor   borderSides   borderStyle   borderThickness   cornerRadius   disabledColor   dropShadow   errorColor   fillColors   highlightColor   modalTransparency   scrollTrackColor   selectedFillColors   shadowCapColor   shadowColor   shadowDirection   shadowDistance   symbolBackgroundColor   symbolBackgroundDisabledColor   symbolBackgroundPressedColor   symbolColor   symbolDisabledColor   themeColor  

Styles inherited from class mx.core.UIObject
color   fontFamily   fontSize   fontStyle   fontWeight   horizontalGap   leading   marginLeft   marginRight   textAlign   textDecoration   textIndent   verticalGap  



Property Detail

version

static  version: String  

Version string for this class.


Examples
SimpleLink.mxml
<?xml version="1.0"?>
<!-- Simple example to demonstrate the Link control -->
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FFFFFF">

    <mx:Panel title="Link Panel" marginTop="10">
        
        <!-- Click Event is handled by ActionScript Method called getURL()-->
        <mx:Link label="Click here for Flex main page"
            click="getURL('http://www.macromedia.com/go/flex15_apps','_blank');" color="#0000FF"/>

    </mx:Panel>

</mx:Application>   
       




 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flex/15/asdocs_en/mx/controls/Link.html