メソッド | プロパティ | エフェクト | イベント | スタイル | フレームあり | フレームなし

mx.controls
Link クラス

継承を示す線継承を示す線継承を示す線継承を示す線


Link クラス
mx.controls.Button の拡張

Link コントロールは実質的に境界のないボタンであり、マウスをコンテンツ上に移動したときにコンテンツがハイライト表示されます。一般的に、これらの特徴はブラウザページに含まれるリンクなどに見られます。Link が何らかのアクションを実行できるようにするには、Button の場合と同様、click ハンドラを指定する必要があります。

MXML シンタックス

<mx:Link> タグは、親クラスのすべてのプロパティと、次のプロパティを継承します。

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

を参照するにはここをクリックしてください

メソッド

mx.core.UIComponent クラスから継承されるメソッド
drawFocus   getFocus   getFocusManager   setEnabled   setFocus  

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  



プロパティ
staticversion:String
このクラスのバージョンを表すストリングです。

mx.controls.Button クラスから継承されるプロパティ
icon   label   labelPlacement   version  

mx.controls.SimpleButton クラスから継承されるプロパティ
falseDisabledSkin   falseDownSkin   falseOverSkin   falseUpSkin   selected   toggle   trueDisabledSkin   trueDownSkin   trueOverSkin   trueUpSkin   version  

mx.core.UIComponent クラスから継承されるプロパティ
enabled   errorString   tabEnabled   tabIndex   version  

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  



エフェクト

mx.core.UIComponent クラスから継承されるエフェクト
focusInEffect   focusOutEffect  

mx.core.UIObject クラスから継承されるエフェクト
creationCompleteEffect   hideEffect   mouseDownEffect   mouseOutEffect   mouseOverEffect   mouseUpEffect   moveEffect   resizeEffect   showEffect  



イベント

mx.controls.Button クラスから継承されるイベント
click 

mx.controls.SimpleButton クラスから継承されるイベント
buttonDown  buttonDragOut  click 

mx.core.UIComponent クラスから継承されるイベント
focusIn  focusOut  invalid  keyDown  keyUp  valid  valueCommitted 

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 



スタイル
cornerRadius 型 : Number   CSS の継承 : なし
ハイライト表示される長方形の角丸の半径です。デフォルト値は 4 です。
rollOverColor 型 : Number   形式 : Color   CSS の継承 : あり
マウスポインタを重ねたときのリンクの色です。デフォルト値は 0xE3FFD6 です。
selectionColor 型 : Number   形式 : Color   CSS の継承 : あり
リンクを押したときの背景色です。デフォルト値は 0xCDFFC1 です。
textRollOverColor 型 : Number   形式 : Color   CSS の継承 : あり
マウスポインタを重ねたときのリンクのテキストの色です。デフォルト値は 0x2B333C です。
textSelectedColor 型 : Number   形式 : Color   CSS の継承 : あり
リンクを押したときのテキストの色です。デフォルト値は 0x000000 です。

mx.controls.Button クラスから継承されるスタイル
borderThickness   cornerRadius   horizontalGap   textRollOverColor   textSelectedColor   verticalGap  

mx.controls.SimpleButton クラスから継承されるスタイル
repeatDelay   repeatInterval  

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  

mx.core.UIObject クラスから継承されるスタイル
color   fontFamily   fontSize   fontStyle   fontWeight   horizontalGap   leading   marginLeft   marginRight   textAlign   textDecoration   textIndent   verticalGap  



プロパティの詳細

version

static  version:String  

このクラスのバージョンを表すストリングです。


SimpleLink.mxml
<?xml version="1.0"?>
<!-- Link コントロールの使用方法を示す簡単な例 -->
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FFFFFF">

<mx:Panel title="Link Panel" marginTop="10">
        
<!-- クリックイベントは getURL() という ActionScript によって処理されます。-->
<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>