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.

Summary


Constructor
Class properties
Instance properties
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 View
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
Event handlers
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 function show (
text, title, flags, parent, listener, icon, defButton) : Alert

static method that shows the alert with title,message and requested buttons

Instance methods

createChildren

function createChildren (
Void) : Void

doLayout

function doLayout (
Void) : Void

draw

function draw (
Void) : Void

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

init

function init (
Void) : Void

setSize

function setSize (
w:Number, h:Number)

size the Alert
Parameters:
w:
width of the Alert
h:
height of the Alert

size

function size (
Void) : Void

Event handlers

allowSize

allowSize:Boolean = false
(read)