Class mx.controls.Button

MovieClip
   +--mx.core.UIObject
      +--mx.core.UIComponent
         +--mx.controls.SimpleButton
            +--mx.controls.Button

Description

Button class - extends SimpleButton - adds label and text with layout - adds ability to resize without distorting the skin

Field Index

__label, __labelPlacement, _color, _iconLinkageName, _inherited_selected, borderW, btnOffset, centerContent, className, clipParameters, falseDisabledIcon, falseDisabledSkin, falseDownIcon, falseDownSkin, falseOverIcon, falseOverSkin, falseUpIcon, falseUpSkin, hitArea_mc, icon, initIcon, label, labelPath, labelPlacement, mergedClipParameters, symbolName, symbolOwner, trueDisabledIcon, trueDisabledSkin, trueDownIcon, trueDownSkin, trueOverIcon, trueOverSkin, trueUpIcon, trueUpSkin
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, emphasizedStyleDeclaration, falseDisabled, falseDisabledIcon, falseDisabledIconEmphasized, falseDisabledSkin, falseDisabledSkinEmphasized, falseDown, falseDownIcon, falseDownIconEmphasized, falseDownSkin, falseDownSkinEmphasized, falseOver, falseOverIcon, falseOverIconEmphasized, falseOverSkin, falseOverSkinEmphasized, falseUp, falseUpIcon, falseUpIconEmphasized, falseUpSkin, falseUpSkinEmphasized, fdi, fds, fri, frs, fui, fus, iconName, idNames, initializing, interval, linkLength, phase, preset, refNames, rolloverIcon, rolloverSkin, selected, skinName, stateNames, style3dInset, symbolName, symbolOwner, tagMap, tdi, tds, toggle, tri, trs, trueDisabled, trueDisabledIcon, trueDisabledIconEmphasized, trueDisabledSkin, trueDisabledSkinEmphasized, trueDown, trueDownIcon, trueDownIconEmphasized, trueDownSkin, trueDownSkinEmphasized, trueOver, trueOverIcon, trueOverIconEmphasized, trueOverSkin, trueOverSkinEmphasized, trueUp, trueUpIcon, trueUpIconEmphasized, trueUpSkin, trueUpSkinEmphasized, tui, tus, upIcon, upSkin, value
Inherited from UIComponent
clipParameters, drawFocus, enabled, focusEnabled, focusManager, focusTextField, groupName, height, kStretch, mergedClipParameters, origBorderStyles, origBorderValues, popUp, symbolName, symbolOwner, tabEnabled, tabIndex, width
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, symbolName, symbolOwner, tabEnabled, textAlign, textColorList, textDecoration, textIndent, tfList, top, validateNow, visible, width, x, y
Inherited from MovieClip
_alpha, _currentframe, _droptarget, _focusrect, _framesloaded, _height, _lockroot, _name, _parent, _quality, _rotation, _soundbuftime, _target, _totalframes, _url, _visible, _width, _x, _xmouse, _xscale, _y, _ymouse, _yscale, enabled, focusEnabled, hitArea, tabChildren, tabEnabled, tabIndex, tooltipText, trackAsMenu, useHandCursor

Method Index

new Button()

_getIcon(), _setIcon(), calcSize(), createChildren(), draw(), getBtnOffset(), getLabel(), getLabelPlacement(), init(), invalidateStyle(), onRelease(), setColor(), setEnabled(), setHitArea(), setLabel(), setLabelPlacement(), setSkin(), setView(), size(), viewSkin()
Inherited from SimpleButton
changeIcon(), changeSkin(), getSelected(), getState(), getToggle(), keyDown(), keyUp(), onDragOut(), onDragOver(), onKillFocus(), onPress(), onPressDelay(), onPressRepeat(), onReleaseOutside(), onRollOut(), onRollOver(), refresh(), removeIcons(), setIcon(), setSelected(), setState(), setStateVar(), setToggle(), showEmphasized(), viewIcon()
Inherited from UIComponent
dispatchValueChangedEvent(), enabledChanged(), findFocusFromObject(), findFocusInChildren(), getFocus(), getFocusManager(), isParent(), onSetFocus(), pressFocus(), releaseFocus(), setFocus(), setVisible()
Inherited from UIObject
__getTextFormat(), _createChildren(), _getTextFormat(), cancelAllDoLaters(), constructObject(), createClassObject(), createEmptyObject(), createLabel(), createObject(), createSkin(), destroyObject(), doLater(), doLaterDispatcher(), drawRect(), getClassStyleDeclaration(), getMinHeight(), getMinWidth(), getSkinIDName(), getStyle(), getStyleName(), initFromClipParameters(), invalidate(), mergeClipParameters(), move(), redraw(), setMinHeight(), setMinWidth(), setSize()
Inherited from MovieClip
attachAudio(), attachMovie(), beginFill(), beginGradientFill(), clear(), createEmptyMovieClip(), createTextField(), curveTo(), duplicateMovieClip(), endFill(), getBounds(), getBytesLoaded(), getBytesTotal(), getDepth(), getInstanceAtDepth(), getNextHighestDepth(), getSWFVersion(), getTextSnapshot(), getURL(), globalToLocal(), gotoAndPlay(), gotoAndStop(), hitTest(), lineStyle(), lineTo(), loadMovie(), loadVariables(), localToGlobal(), moveTo(), nextFrame(), onData(), onEnterFrame(), onKeyDown(), onKeyUp(), onLoad(), onMouseDown(), onMouseMove(), onMouseUp(), onUnload(), play(), prevFrame(), removeMovieClip(), setMask(), startDrag(), stop(), stopDrag(), swapDepths(), unloadMovie(), valueOf()

Constructor Detail

Button

function Button()

Field Detail

symbolName

static symbolName:String

symbolOwner

static symbolOwner

className

className:String

btnOffset

btnOffset:Number

_color

_color

__label

__label:String

__labelPlacement

__labelPlacement:String

initIcon

initIcon

falseUpSkin

falseUpSkin:String

falseDownSkin

falseDownSkin:String

falseOverSkin

falseOverSkin:String

falseDisabledSkin

falseDisabledSkin:String

trueUpSkin

trueUpSkin:String

trueDownSkin

trueDownSkin:String

trueOverSkin

trueOverSkin:String

trueDisabledSkin

trueDisabledSkin:String

falseUpIcon

falseUpIcon:String

falseDownIcon

falseDownIcon:String

falseOverIcon

falseOverIcon:String

falseDisabledIcon

falseDisabledIcon:String

trueUpIcon

trueUpIcon:String

trueDownIcon

trueDownIcon:String

trueOverIcon

trueOverIcon:String

trueDisabledIcon

trueDisabledIcon:String

clipParameters

clipParameters:Object

mergedClipParameters

static mergedClipParameters:Boolean

labelPath

labelPath:Object

hitArea_mc

hitArea_mc:MovieClip

_iconLinkageName

_iconLinkageName:String

centerContent

centerContent:Boolean

borderW

borderW:Number

labelPlacement

labelPlacement:String
returns the label placement of left,right,top, or bottom

label

label:String
gets the associated label text

icon

icon:String
sets the associated icon use setIcon() to set the icon

_inherited_selected

_inherited_selected:Boolean

Method Detail

init

function init(Void):Void

draw

function draw()

onRelease

function onRelease(Void):Void
This method calls SimpleButton's onRelease()

createChildren

function createChildren(Void):Void

setSkin

function setSkin(tag:
Number, linkageName:String, initobj:Object):MovieClip

viewSkin

function viewSkin(varName:
String):Void

invalidateStyle

function invalidateStyle(c:
String):Void

setColor

function setColor(c:
Number):Void

setEnabled

function setEnabled(enable:
Boolean):Void

calcSize

function calcSize(tag:
Number, ref:Object):Void

size

function size(Void):Void

getLabelPlacement

function getLabelPlacement(Void):
String

setLabelPlacement

function setLabelPlacement(val:
String):Void

getBtnOffset

function getBtnOffset(Void):
Number

setView

function setView(offset:
Number):Void

setLabel

function setLabel(label:
String):Void

getLabel

function getLabel(Void):
String

_getIcon

function _getIcon(Void):
String

_setIcon

function _setIcon(linkage):Void

setHitArea

function setHitArea(w:
Number, h:Number)