- Top
- Summary
- Constructors
- Class properties
- Instance properties
- Class methods
- Instance methods
- Event handlers
Alert
| Kind of class: | class |
|---|---|
| Inherits from: | Window < ScrollView < View < UIComponent < UIObject < MovieClip |
| Classpath: | mx.controls.Alert |
| File last modified: | Tuesday, 18 December 2007, 15:44:37 |
a alert window with a title bar, caption
The title bar can be used to drag the alert window to a new location.
The title bar can be used to drag the alert window to a new location.
Summary
Constructor
Class properties
- symbolOwner : Object
- version : String
- buttonWidth : Number
- width of Alert buttons
- buttonHeight : Number
- height of Alert buttons
- okLabel : String
- label for OK button
- yesLabel : String
- label for YES button
- noLabel : String
- label for NO button
- cancelLabel : String
- label for CANCEL button
- buttonUp : String
- symbol name for the up state for the alert buttons
- buttonDown : String
- symbol name for the down state for the alert buttons
- buttonOver : String
- symbol name for the over state for the alert buttons
- titleBackground : String
- symbol name of skin element for background of the title bar
- buttonUpEmphasized : String
- symbol name of skin element for emphasized up button state
- buttonOverEmphasized : String
- symbol name of skin element for emphasized over button state
- buttonDownEmphasized : String
- symbol name of skin element for emphasized down button state
- messageStyleDeclaration : String
- style declaration name for the message text
- titleStyleDeclaration : String
- style declaration name for the text in the title bar
- buttonStyleDeclaration : String
- style declaration name for the button text
- style : Object
- NONMODAL : Number
- YES : Number
- NO : Number
- OK : Number
- CANCEL : Number
- P : MovieClip
Class properties inherited from Window
Class properties inherited from ScrollView
Class properties inherited from View
Class properties inherited from UIComponent
Class properties inherited from UIObject
Instance properties
- className : String
- backgroundColor : Number
- parent : MovieClip
Instance properties inherited from Window
Instance properties inherited from ScrollView
__hPosition __hScrollPolicy __maxHPosition __viewMetrics __vPosition __vScrollPolicy className columnWidth heightPadding hPosition hScroller hScrollPolicy invLayout MASK_DEPTH mask_mc maxHPosition maxVPosition numberOfCols oldRndUp owner propsInited rowC rowH scrollAreaChanged specialHScrollCase viewableColumns viewableRows vPosition vScroller vScrollPolicy vScrollPolicy widthPadding
Instance properties inherited from View
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
- show (text, title, flags, parent, listener, icon, defButton) : Alert
- static method that shows the alert with title,message and requested buttons
Class methods inherited from UIObject
Instance methods
- init (Void) : Void
- createChildren (Void) : Void
- getViewMetrics (Void) : Object
- get the thickness of the edges of the object taking into account the border, title bar and scrollbars if visible
- doLayout (Void) : Void
- draw (Void) : Void
- size (Void) : Void
- setSize (w:Number, h:Number)
- size the Alert
Instance methods inherited from Window
Instance methods inherited from 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
Instance methods inherited from View
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
- allowSize : Boolean
Event handlers inherited from ScrollView
Event handlers inherited from UIComponent
Constructor
Alert
function Alert (
)
Class properties
buttonDown
static buttonDown:String = "ButtonSkin"
(read)
symbol name for the down state for the alert buttons
buttonDownEmphasized
static buttonDownEmphasized:String = "ButtonSkin"
(read)
symbol name of skin element for emphasized down button state
buttonHeight
static buttonHeight:Number = 22
(read)
height of Alert buttons
buttonOver
static buttonOver:String = "ButtonSkin"
(read)
symbol name for the over state for the alert buttons
buttonOverEmphasized
static buttonOverEmphasized:String = "ButtonSkin"
(read)
symbol name of skin element for emphasized over button state
buttonStyleDeclaration
static buttonStyleDeclaration:String
(read)
style declaration name for the button text
buttonUp
static buttonUp:String = "ButtonSkin"
(read)
symbol name for the up state for the alert buttons
buttonUpEmphasized
static buttonUpEmphasized:String = "ButtonSkin"
(read)
symbol name of skin element for emphasized up button state
buttonWidth
static buttonWidth:Number = 50
(read)
width of Alert buttons
CANCEL
static CANCEL:Number = 0x8
(read)
cancelLabel
static cancelLabel:String = "Cancel"
(read)
label for CANCEL button
messageStyleDeclaration
static messageStyleDeclaration:String
(read)
style declaration name for the message text
NO
static NO:Number = 0x2
(read)
noLabel
static noLabel:String = "No"
(read)
label for NO button
NONMODAL
static NONMODAL:Number = 0x8000
(read)
OK
static OK:Number = 0x4
(read)
okLabel
static okLabel:String = "OK"
(read)
label for OK button
P
static P:MovieClip = _root
(read)
style
static style:Object
(read)
symbolOwner
static symbolOwner:Object = Window
(read)
titleBackground
static titleBackground:String = "TitleBackground"
(read)
symbol name of skin element for background of the title bar
titleStyleDeclaration
static titleStyleDeclaration:String
(read)
style declaration name for the text in the title bar
version
static version:String = "2.0.2.127"
(read)
YES
static YES:Number = 0x1
(read)
yesLabel
static yesLabel:String = "Yes"
(read)
label for YES button
Instance properties
backgroundColor
backgroundColor:Number
(read)
className
className:String = "Alert"
(read)
parent
parent:MovieClip
(read)
Class methods
show
static method that shows the alert with title,message and requested buttons
Instance methods
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
Returns:
- object with left, right, top and bottom edge thickness in pixels
Overrides:
setSize
function setSize (
w:Number,
h:Number)
size the Alert
Parameters:
w:
width of the Alert
h:
height of the Alert
Event handlers
allowSize
allowSize:Boolean = false
(read)