Class mx.controls.CustomButton

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

Description

a button that resizes in one dimension by placing two end caps and stretching a middle piece

Field Index

className, falseDisabledSkin, falseDisabledSkinL, falseDisabledSkinM, falseDisabledSkinR, falseDownSkin, falseDownSkinL, falseDownSkinM, falseDownSkinR, falseOverSkin, falseOverSkinL, falseOverSkinM, falseOverSkinR, falseUpSkin, falseUpSkinL, falseUpSkinM, falseUpSkinR, horizontal, ignoreClassStyleDeclaration, trueDisabledSkin, trueDisabledSkinL, trueDisabledSkinM, trueDisabledSkinR, trueDownSkin, trueDownSkinL, trueDownSkinM, trueDownSkinR, trueOverSkin, trueOverSkinL, trueOverSkinM, trueOverSkinR, trueUpSkin, trueUpSkinL, trueUpSkinM, trueUpSkinR
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, 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 CustomButton()

calcSize(), setSkin()
Inherited from Button
_getIcon(), _setIcon(), createChildren(), draw(), getBtnOffset(), getLabel(), getLabelPlacement(), init(), invalidateStyle(), onRelease(), setColor(), setEnabled(), setHitArea(), setLabel(), setLabelPlacement(), 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

CustomButton

function CustomButton()

Field Detail

className

className:String

ignoreClassStyleDeclaration

ignoreClassStyleDeclaration

horizontal

horizontal:Boolean

falseUpSkin

falseUpSkin

falseDownSkin

falseDownSkin

falseOverSkin

falseOverSkin

falseDisabledSkin

falseDisabledSkin

trueUpSkin

trueUpSkin

trueDownSkin

trueDownSkin

trueOverSkin

trueOverSkin

trueDisabledSkin

trueDisabledSkin

falseUpSkinL

falseUpSkinL

falseUpSkinM

falseUpSkinM

falseUpSkinR

falseUpSkinR

falseDownSkinL

falseDownSkinL

falseDownSkinM

falseDownSkinM

falseDownSkinR

falseDownSkinR

falseOverSkinL

falseOverSkinL

falseOverSkinM

falseOverSkinM

falseOverSkinR

falseOverSkinR

trueUpSkinL

trueUpSkinL

trueUpSkinM

trueUpSkinM

trueUpSkinR

trueUpSkinR

trueDownSkinL

trueDownSkinL

trueDownSkinM

trueDownSkinM

trueDownSkinR

trueDownSkinR

trueOverSkinL

trueOverSkinL

trueOverSkinM

trueOverSkinM

trueOverSkinR

trueOverSkinR

falseDisabledSkinL

falseDisabledSkinL

falseDisabledSkinM

falseDisabledSkinM

falseDisabledSkinR

falseDisabledSkinR

trueDisabledSkinL

trueDisabledSkinL

trueDisabledSkinM

trueDisabledSkinM

trueDisabledSkinR

trueDisabledSkinR

Method Detail

calcSize

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

setSkin

function setSkin(tag:
Number, linkageName:String, io:Object):Object