Main Page | Packages | Class Tree | Index | Help

mx.controls

class CustomButton

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


class CustomButton
extends Button

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



Field Summary


className: String
name of this class


falseDisabledSkin



falseDisabledSkinL
symbol name of skin element for the left end cap in the disabled state


falseDisabledSkinM
symbol name of skin element for the middle piece in the disabled state


falseDisabledSkinR
symbol name of skin element for the right end cap in the disabled state


falseDownSkin



falseDownSkinL
symbol name of skin element for the left end cap in the down state


falseDownSkinM
symbol name of skin element for the middle piece in the down state


falseDownSkinR
symbol name of skin element for the right end cap in the down state


falseOverSkin



falseOverSkinL
symbol name of skin element for the left end cap in the over state


falseOverSkinM
symbol name of skin element for the middle piece in the over state


falseOverSkinR
symbol name of skin element for the right end cap in the over state


falseUpSkin
skins for the button are always CustomBorders


falseUpSkinL
symbol name of skin element for the left end cap in the up state


falseUpSkinM
symbol name of skin element for the middle piece in the up state


falseUpSkinR
symbol name of skin element for the right end cap in the up state


horizontal: Boolean
whether the caps and middle are placed horizontally or vertically


ignoreClassStyleDeclaration
ignore class styles for Button


trueDisabledSkin



trueDisabledSkinL
symbol name of skin element for the left end cap in the selected disabled state


trueDisabledSkinM
symbol name of skin element for the middle piece in the selected disabled state


trueDisabledSkinR
symbol name of skin element for the right end cap in the selected disabled state


trueDownSkin



trueDownSkinL
symbol name of skin element for the left end cap in the selected down state


trueDownSkinM
symbol name of skin element for the middle piece in the selected down state


trueDownSkinR
symbol name of skin element for the right end cap in the selected down state


trueOverSkin



trueOverSkinL
symbol name of skin element for the left end cap in the selected over state


trueOverSkinM
symbol name of skin element for the middle piece in the selected over state


trueOverSkinR
symbol name of skin element for the right end cap in the selected over state


trueUpSkin



trueUpSkinL
symbol name of skin element for the left end cap in the selected up state


trueUpSkinM
symbol name of skin element for the middle piece in the selected up state


trueUpSkinR
symbol name of skin element for the right end cap in the selected up state

static
version: String
Version string Copyright (C) 2003 Macromedia, Inc.

Fields inherited from class mx.controls.Button

__label, __labelPlacement, _color, _iconLinkageName, _inherited_selected, borderW, btnOffset, centerContent, clipParameters, falseDisabledIcon, falseDisabledSkin, falseDownIcon, falseDownSkin, falseOverIcon, falseOverSkin, falseUpIcon, falseUpSkin, hitArea_mc, initIcon, labelPath, mergedClipParameters, symbolName, symbolOwner, trueDisabledIcon, trueDisabledSkin, trueDownIcon, trueDownSkin, trueOverIcon, trueOverSkin, trueUpIcon, trueUpSkin, version

Fields inherited from class mx.controls.SimpleButton

__emphasized, __emphatic, __emphaticStyleName, __state, __toggle, autoRepeat, boundingBox_mc, btnOffset, buttonDownHandler, clickHandler, detail, dfi, dfs, disabledIcon, disabledSkin, downIcon, downSkin, dti, dts, 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, skinName, stateNames, style3dInset, symbolName, symbolOwner, tagMap, tdi, tds, 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, version

Fields inherited from class mx.core.UIComponent

clipParameters, drawFocus, enabled, focusEnabled, focusManager, focusTextField, groupName, kStretch, mergedClipParameters, origBorderStyles, origBorderValues, popUp, symbolName, symbolOwner, tabEnabled, tabIndex, version

Fields inherited from class mx.core.UIObject

__height, __width, _color, _topmost, addEventListener, buildDepthTable, changeColorStyleInChildren, changeTextStyleInChildren, childrenCreated, className, clipParameters, color, createAccessibilityImplementation, createChildAtDepth, createEvent, ction, dispatchEvent, embedFonts, findNextAvailableDepth, fontFamily, fontSize, fontStyle, fontWeight, handleEvent, idNames, ignoreClassStyleDeclaration, initProperties, marginLeft, marginRight, methodTable, notifyStyleChangeInChildren, removeEventListener, setStyle, stylecache, styleName, symbolName, symbolOwner, textAlign, textColorList, textDecoration, textIndent, validateNow, version

Fields inherited from class 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

Fields inherited from class Object

__proto__, constructor, prototype

Properties inherited from class mx.controls.Button

icon, label, labelPlacement

Properties inherited from class mx.controls.SimpleButton

emphasized, selected, toggle, value

Properties inherited from class mx.core.UIComponent

height, width

Properties inherited from class mx.core.UIObject

bottom, height, left, minHeight, minWidth, right, scaleX, scaleY, top, visible, width, x, y

Constructor


CustomButton ( )


Method Summary


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



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


Methods inherited from class mx.controls.Button

_getIcon, _setIcon, calcSize, createChildren, draw, getBtnOffset, getLabel, getLabelPlacement, init, invalidateStyle, onRelease, setColor, setEnabled, setHitArea, setLabel, setLabelPlacement, setSkin, setView, size, viewSkin

Methods inherited from class mx.controls.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, setSelected, setSkin, setState, setStateVar, setToggle, setView, showEmphasized, size, viewIcon, viewSkin

Methods inherited from class mx.core.UIComponent

dispatchValueChangedEvent, enabledChanged, findFocusFromObject, findFocusInChildren, getFocus, getFocusManager, init, isParent, onKillFocus, onSetFocus, pressFocus, releaseFocus, setEnabled, setFocus, setVisible, size

Methods inherited from class mx.core.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, mergeClipParameters, move, redraw, setColor, setMinHeight, setMinWidth, setSize, setSkin, setVisible, size

Methods inherited from class 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, onDragOut, onDragOver, onEnterFrame, onKeyDown, onKeyUp, onKillFocus, onLoad, onMouseDown, onMouseMove, onMouseUp, onPress, onRelease, onReleaseOutside, onRollOut, onRollOver, onSetFocus, onUnload, play, prevFrame, removeMovieClip, setMask, startDrag, stop, stopDrag, swapDepths, unloadMovie, valueOf

Methods inherited from class Object

addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toLocaleString, toString, unwatch, valueOf, watch



Field Documentation

className

var className: String
name of this class

falseDisabledSkin

var falseDisabledSkin

falseDisabledSkinL

var falseDisabledSkinL
symbol name of skin element for the left end cap in the disabled state

falseDisabledSkinM

var falseDisabledSkinM
symbol name of skin element for the middle piece in the disabled state

falseDisabledSkinR

var falseDisabledSkinR
symbol name of skin element for the right end cap in the disabled state

falseDownSkin

var falseDownSkin

falseDownSkinL

var falseDownSkinL
symbol name of skin element for the left end cap in the down state

falseDownSkinM

var falseDownSkinM
symbol name of skin element for the middle piece in the down state

falseDownSkinR

var falseDownSkinR
symbol name of skin element for the right end cap in the down state

falseOverSkin

var falseOverSkin

falseOverSkinL

var falseOverSkinL
symbol name of skin element for the left end cap in the over state

falseOverSkinM

var falseOverSkinM
symbol name of skin element for the middle piece in the over state

falseOverSkinR

var falseOverSkinR
symbol name of skin element for the right end cap in the over state

falseUpSkin

var falseUpSkin
skins for the button are always CustomBorders

falseUpSkinL

var falseUpSkinL
symbol name of skin element for the left end cap in the up state

falseUpSkinM

var falseUpSkinM
symbol name of skin element for the middle piece in the up state

falseUpSkinR

var falseUpSkinR
symbol name of skin element for the right end cap in the up state

horizontal

var horizontal: Boolean
whether the caps and middle are placed horizontally or vertically

ignoreClassStyleDeclaration

var ignoreClassStyleDeclaration
ignore class styles for Button

trueDisabledSkin

var trueDisabledSkin

trueDisabledSkinL

var trueDisabledSkinL
symbol name of skin element for the left end cap in the selected disabled state

trueDisabledSkinM

var trueDisabledSkinM
symbol name of skin element for the middle piece in the selected disabled state

trueDisabledSkinR

var trueDisabledSkinR
symbol name of skin element for the right end cap in the selected disabled state

trueDownSkin

var trueDownSkin

trueDownSkinL

var trueDownSkinL
symbol name of skin element for the left end cap in the selected down state

trueDownSkinM

var trueDownSkinM
symbol name of skin element for the middle piece in the selected down state

trueDownSkinR

var trueDownSkinR
symbol name of skin element for the right end cap in the selected down state

trueOverSkin

var trueOverSkin

trueOverSkinL

var trueOverSkinL
symbol name of skin element for the left end cap in the selected over state

trueOverSkinM

var trueOverSkinM
symbol name of skin element for the middle piece in the selected over state

trueOverSkinR

var trueOverSkinR
symbol name of skin element for the right end cap in the selected over state

trueUpSkin

var trueUpSkin

trueUpSkinL

var trueUpSkinL
symbol name of skin element for the left end cap in the selected up state

trueUpSkinM

var trueUpSkinM
symbol name of skin element for the middle piece in the selected up state

trueUpSkinR

var trueUpSkinR
symbol name of skin element for the right end cap in the selected up state

version

static var version: String
Version string Copyright (C) 2003 Macromedia, Inc.

All Rights Reserved. The following is Sample Code and is subject to all restrictions on such code as contained in the End User License Agreement accompanying this product.


Constructor Documentation

CustomButton

function CustomButton()

Method Documentation

calcSize

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

setSkin

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

Parameters:
tag
id number of skin
linkageName
name symbol name of object
io
initObj object containing initialization properties
Returns:
reference to object


The documentation was generated from the following file:


Copyright © 1997-2005 Macromedia, Inc. All rights reserved. Generated with AS2Doc