CustomButton
| Kind of class: | class |
|---|---|
| Inherits from: | Button < SimpleButton < UIComponent < UIObject < MovieClip |
| Classpath: | mx.controls.CustomButton |
| File last modified: | Tuesday, 18 December 2007, 15:44:37 |
a button that resizes in one dimension by placing two end caps
and stretching a middle piece
and stretching a middle piece
Summary
Constructor
Class properties
- version : String
Class properties inherited from Button
Class properties inherited from SimpleButton
Class properties inherited from UIComponent
Class properties inherited from UIObject
Instance properties
- className : String
- name of this class
- ignoreClassStyleDeclaration
- horizontal : Boolean
- whether the caps and middle are placed horizontally or vertically
- falseUpSkin
- falseDownSkin
- falseOverSkin
- falseDisabledSkin
- trueUpSkin
- trueDownSkin
- trueOverSkin
- trueDisabledSkin
- falseUpSkinL
- falseUpSkinM
- falseUpSkinR
- falseDownSkinL
- falseDownSkinM
- falseDownSkinR
- falseOverSkinL
- falseOverSkinM
- falseOverSkinR
- trueUpSkinL
- trueUpSkinM
- trueUpSkinR
- trueDownSkinL
- trueDownSkinM
- trueDownSkinR
- trueOverSkinL
- trueOverSkinM
- trueOverSkinR
- falseDisabledSkinL
- falseDisabledSkinM
- falseDisabledSkinR
- trueDisabledSkinL
- trueDisabledSkinM
- trueDisabledSkinR
Instance properties inherited from Button
__label __labelPlacement _color _iconLinkageName _inherited_selected borderW btnOffset centerContent className clipParameters falseDisabledIcon falseDisabledSkin falseDownIcon falseDownSkin falseOverIcon falseOverSkin falseUpIcon falseUpSkin hitArea_mc icon icon initIcon label labelPath labelPlacement trueDisabledIcon trueDisabledSkin trueDownIcon trueDownSkin trueOverIcon trueOverSkin trueUpIcon trueUpSkin
Instance properties inherited from SimpleButton
__emphasized __emphatic __emphaticStyleName __state __toggle autoRepeat boundingBox_mc btnOffset buttonDownHandler className clickHandler detail dfi dfs disabledIcon disabledSkin downIcon downSkin dti dts emphasized falseDisabledIcon falseDisabledIconEmphasized falseDisabledSkin falseDisabledSkinEmphasized falseDownIcon falseDownIconEmphasized falseDownSkin falseDownSkinEmphasized falseOverIcon falseOverIconEmphasized falseOverSkin falseOverSkinEmphasized falseUpIcon falseUpIconEmphasized falseUpSkin falseUpSkinEmphasized fdi fds fri frs fui fus iconName idNames initializing interval linkLength phase preset refNames rolloverIcon rolloverSkin selected skinName stateNames style3dInset tagMap tdi tds toggle tri trs trueDisabledIcon trueDisabledIconEmphasized trueDisabledSkin trueDisabledSkinEmphasized trueDownIcon trueDownIconEmphasized trueDownSkin trueDownSkinEmphasized trueOverIcon trueOverIconEmphasized trueOverSkin trueOverSkinEmphasized trueUpIcon trueUpIconEmphasized trueUpSkin trueUpSkinEmphasized tui tus upIcon upSkin value
Instance properties inherited from UIComponent
Instance properties inherited from UIObject
__height __onUnload __width _color _endInit _id _maxHeight _maxWidth _minHeight _minWidth _preferredHeight _preferredWidth _tf _topmost addEventListener bottom buildDepthTable changeColorStyleInChildren changeTextStyleInChildren childrenCreated className clipParameters color createAccessibilityImplementation createChildAtDepth createClassChildAtDepth createEvent dispatchEvent embedFonts findNextAvailableDepth fontFamily fontSize fontStyle fontWeight handleEvent height idNames ignoreClassStyleDeclaration initProperties invalidateFlag left lineColor lineWidth marginLeft marginRight methodTable minHeight minWidth notifyStyleChangeInChildren removeEventListener right scaleX scaleY setStyle stylecache styleName tabEnabled textAlign textDecoration textIndent tfList top validateNow visible width x y
Class methods
Class methods inherited from UIObject
Instance methods
- calcSize (tag:Number, ref:String) : Void
- setSkin (tag:Number, linkageName:String, io:Object) : Object
Instance methods inherited from Button
Instance methods inherited from SimpleButton
calcSize changeIcon changeSkin createChildren draw getLabel getSelected getState getToggle init keyDown keyUp onDragOut onDragOver onKillFocus onPress onPressDelay onPressRepeat onRelease onReleaseOutside onRollOut onRollOver refresh removeIcons setEnabled setIcon setLabel setSelected setSkin setState setStateVar setToggle setView showEmphasized size viewIcon viewSkin
Instance methods inherited from UIObject
__getTextFormat _createChildren _getTextFormat cancelAllDoLaters constructObject createChildren createClassObject createEmptyObject createLabel createObject createSkin destroyObject doLater doLaterDispatcher draw drawRect getClassStyleDeclaration getMinHeight getMinWidth getSkinIDName getStyle getStyleName init initFromClipParameters invalidate invalidateStyle move redraw setColor setMinHeight setMinWidth setSize setSkin setVisible size
Event handlers
Event handlers inherited from SimpleButton
Event handlers inherited from UIComponent
Constructor
CustomButton
function CustomButton (
)
Class properties
version
static version:String = "2.0.2.127"
(read)
Instance properties
className
className:String = "CustomButton"
(read)
name of this class
falseDisabledSkin
falseDisabledSkin = CustomBorder.symbolName
(read)
falseDisabledSkinL
falseDisabledSkinL = "F3PieceLeftDisabled"
(read)
symbol name of skin element for the left end cap in the disabled state
falseDisabledSkinM
falseDisabledSkinM = "F3PieceMiddleDisabled"
(read)
symbol name of skin element for the middle piece in the disabled state
falseDisabledSkinR
falseDisabledSkinR = "F3PieceRightDisabled"
(read)
symbol name of skin element for the right end cap in the disabled state
falseDownSkin
falseDownSkin = CustomBorder.symbolName
(read)
falseDownSkinL
falseDownSkinL = "F3PieceLeftDown"
(read)
symbol name of skin element for the left end cap in the down state
falseDownSkinM
falseDownSkinM = "F3PieceMiddleDown"
(read)
symbol name of skin element for the middle piece in the down state
falseDownSkinR
falseDownSkinR = "F3PieceRightDown"
(read)
symbol name of skin element for the right end cap in the down state
falseOverSkin
falseOverSkin = CustomBorder.symbolName
(read)
falseOverSkinL
falseOverSkinL = "F3PieceLeftOver"
(read)
symbol name of skin element for the left end cap in the over state
falseOverSkinM
falseOverSkinM = "F3PieceMiddleOver"
(read)
symbol name of skin element for the middle piece in the over state
falseOverSkinR
falseOverSkinR = "F3PieceRightOver"
(read)
symbol name of skin element for the right end cap in the over state
falseUpSkin
falseUpSkin = CustomBorder.symbolName
(read)
falseUpSkinL
falseUpSkinL = "F3PieceLeft"
(read)
symbol name of skin element for the left end cap in the up state
falseUpSkinM
falseUpSkinM = "F3PieceMiddle"
(read)
symbol name of skin element for the middle piece in the up state
falseUpSkinR
falseUpSkinR = "F3PieceRight"
(read)
symbol name of skin element for the right end cap in the up state
horizontal
horizontal:Boolean
(read)
whether the caps and middle are placed horizontally or vertically
ignoreClassStyleDeclaration
ignoreClassStyleDeclaration = { Button: 1 }
(read)
trueDisabledSkin
trueDisabledSkin = CustomBorder.symbolName
(read)
trueDisabledSkinL
trueDisabledSkinL = falseDisabledSkinL
(read)
symbol name of skin element for the left end cap in the selected disabled state
trueDisabledSkinM
trueDisabledSkinM = falseDisabledSkinM
(read)
symbol name of skin element for the middle piece in the selected disabled state
trueDisabledSkinR
trueDisabledSkinR = falseDisabledSkinR
(read)
symbol name of skin element for the right end cap in the selected disabled state
trueDownSkin
trueDownSkin = ""
(read)
trueDownSkinL
trueDownSkinL = falseDownSkinL
(read)
symbol name of skin element for the left end cap in the selected down state
trueDownSkinM
trueDownSkinM = falseDownSkinM
(read)
symbol name of skin element for the middle piece in the selected down state
trueDownSkinR
trueDownSkinR = falseDownSkinR
(read)
symbol name of skin element for the right end cap in the selected down state
trueOverSkin
trueOverSkin = ""
(read)
trueOverSkinL
trueOverSkinL = falseOverSkinL
(read)
symbol name of skin element for the left end cap in the selected over state
trueOverSkinM
trueOverSkinM = falseOverSkinM
(read)
symbol name of skin element for the middle piece in the selected over state
trueOverSkinR
trueOverSkinR = falseOverSkinR
(read)
symbol name of skin element for the right end cap in the selected over state
trueUpSkin
trueUpSkin = CustomBorder.symbolName
(read)
trueUpSkinL
trueUpSkinL = falseDownSkinL
(read)
symbol name of skin element for the left end cap in the selected up state
trueUpSkinM
trueUpSkinM = falseDownSkinM
(read)
symbol name of skin element for the middle piece in the selected up state
trueUpSkinR
trueUpSkinR = falseDownSkinR
(read)
symbol name of skin element for the right end cap in the selected up state
Instance methods
calcSize
function calcSize (
tag:Number,
ref:String) : Void
setSkin
function setSkin (
tag:Number,
linkageName:String,
io:Object) : Object