Main Page | Packages | Class Tree | Index | Help

mx.controls

class Alert

Object
  |
  +--MovieClip
        |
        +--mx.core.UIObject
              |
              +--mx.core.UIComponent
                    |
                    +--mx.core.View
                          |
                          +--mx.core.ScrollView
                                |
                                +--mx.containers.Window
                                      |
                                      +--mx.controls.Alert


class Alert
extends Window

a alert window with a title bar, caption The title bar can be used to drag the alert window to a new location.



Field Summary


backgroundColor: Number


static
buttonDown: String
symbol name for the down state for the alert buttons

static
buttonDownEmphasized: String
symbol name of skin element for emphasized down button state

static
buttonHeight: Number
height of Alert buttons

static
buttonOver: String
symbol name for the over state for the alert buttons

static
buttonOverEmphasized: String
symbol name of skin element for emphasized over button state

static
buttonStyleDeclaration: String
style declaration name for the button text

static
buttonUp: String
symbol name for the up state for the alert buttons

static
buttonUpEmphasized: String
symbol name of skin element for emphasized up button state

static
buttonWidth: Number
width of Alert buttons

static
CANCEL: Number


static
cancelLabel: String
label for CANCEL button


className: String


static
messageStyleDeclaration: String
style declaration name for the message text

static
NO: Number


static
noLabel: String
label for NO button

static
NONMODAL: Number


static
OK: Number


static
okLabel: String
label for OK button

static
P: MovieClip



parent: MovieClip


static
style: Object


static
symbolOwner: Object


static
titleBackground: String
symbol name of skin element for background of the title bar

static
titleStyleDeclaration: String
style declaration name for the text in the title bar

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

static
YES: Number


static
yesLabel: String
label for YES button

Fields inherited from class mx.containers.Window

__contentPath, _child0, _title, back_mc, boundingBox_mc, button_mc, className, clipParameters, closeButton, content, deletePopUp, idNames, initializing, loadingChild, mergedClipParameters, modalWindow, regX, regY, skinCloseDisabled, skinCloseDown, skinCloseOver, skinCloseUp, skinIDBorder, skinIDForm, skinIDTitleBackground, skinTitleBackground, symbolName, symbolOwner, titleStyleDeclaration, version

Fields inherited from class mx.core.ScrollView

__hPosition, __hScrollPolicy, __maxHPosition, __viewMetrics, __vPosition, __vScrollPolicy, className, columnWidth, heightPadding, hScroller, invLayout, MASK_DEPTH, mask_mc, numberOfCols, oldRndUp, owner, propsInited, rowC, rowH, scrollAreaChanged, specialHScrollCase, symbolName, symbolOwner, version, viewableColumns, viewableRows, vScroller, widthPadding

Fields inherited from class mx.core.View

__tabIndex, border_mc, boundingBox_mc, childNameBase, className, createClassChildAtDepth, depth, loadExternal, symbolName, symbolOwner, 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.containers.Window

contentPath, title

Properties inherited from class mx.core.ScrollView

hPosition, hScrollPolicy, maxHPosition, maxVPosition, vPosition, vScrollPolicy

Properties inherited from class mx.core.View

numChildren, tabIndex

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


Alert ( )


Method Summary


createChildren ( Void ): Void
create the mask and make it invisible


doLayout ( Void ): Void



draw ( Void ): Void
draw by making everything visible, then laying out


getViewMetrics ( Void ): Object
get the thickness of the edges of the object taking into account the border, title bar and scrollbars if visible


init ( Void ): Void
init variables and create internal objects

static
show ( text, title, flags, parent, listener, icon, defButton ): Alert
static method that shows the alert with title,message and requested buttons


size ( Void ): Void
respond to size changes

Methods inherited from class mx.containers.Window

childLoaded, createChild, createChildren, delegateClick, doLayout, dragTracking, draw, getComponentCount, getComponentRect, getViewMetrics, init, setEnabled, startDragging, stopDragging

Methods inherited from class mx.core.ScrollView

__onMouseWheel, childLoaded, createChild, createChildren, doLayout, draw, getHPosition, getHScrollPolicy, getMaxHPosition, getViewMetrics, getVPosition, getVScrollPolicy, init, invalidate, onScroll, scrollProxy, setEnabled, setHPosition, setHScrollPolicy, setMaxHPosition, setScrollProperties, setVPosition, setVScrollPolicy, size

Methods inherited from class mx.core.View

addLayoutObject, childLoaded, convertToUIObject, createChild, createChildren, destroyChildAt, doLayout, draw, extension, getChildAt, init, initLayout, size

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

backgroundColor

var backgroundColor: Number

buttonDown

static var buttonDown: String
symbol name for the down state for the alert buttons

buttonDownEmphasized

static var buttonDownEmphasized: String
symbol name of skin element for emphasized down button state

buttonHeight

static var buttonHeight: Number
height of Alert buttons

buttonOver

static var buttonOver: String
symbol name for the over state for the alert buttons

buttonOverEmphasized

static var buttonOverEmphasized: String
symbol name of skin element for emphasized over button state

buttonStyleDeclaration

static var buttonStyleDeclaration: String
style declaration name for the button text

buttonUp

static var buttonUp: String
symbol name for the up state for the alert buttons

buttonUpEmphasized

static var buttonUpEmphasized: String
symbol name of skin element for emphasized up button state

buttonWidth

static var buttonWidth: Number
width of Alert buttons

CANCEL

static var CANCEL: Number

cancelLabel

static var cancelLabel: String
label for CANCEL button

className

var className: String

messageStyleDeclaration

static var messageStyleDeclaration: String
style declaration name for the message text

NO

static var NO: Number

noLabel

static var noLabel: String
label for NO button

NONMODAL

static var NONMODAL: Number

OK

static var OK: Number

okLabel

static var okLabel: String
label for OK button

P

static var P: MovieClip

parent

var parent: MovieClip

style

static var style: Object

symbolOwner

static var symbolOwner: Object

titleBackground

static var titleBackground: String
symbol name of skin element for background of the title bar

titleStyleDeclaration

static var titleStyleDeclaration: String
style declaration name for the text in the title bar

version

static var 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.

YES

static var YES: Number

yesLabel

static var yesLabel: String
label for YES button


Constructor Documentation

Alert

function Alert()

Method Documentation

createChildren

function createChildren(Void): Void
create the mask and make it invisible

Overrides:

doLayout

function doLayout(Void): Void
Overrides:

draw

function draw(Void): Void
draw by making everything visible, then laying out

Overrides:

getViewMetrics

function getViewMetrics(Void): Object
get the thickness of the edges of the object taking into account the border, title bar and scrollbars if visible

Overrides:

Returns:
object with left, right, top and bottom edge thickness in pixels

init

function init(Void): Void
init variables and create internal objects

Overrides:

show

static function show(text,
 title,
 flags,
 parent,
 listener,
 icon,
 defButton): Alert
static method that shows the alert with title,message and requested buttons

size

function size(Void): Void
respond to size changes

Overrides:


The documentation was generated from the following file:


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