Main Page | Packages | Class Tree | Index | Help

mx.containers

class Window

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

All Known Subclasses: Alert

class Window
extends ScrollView

a window with a title bar, caption and optional close button The title bar can be used to drag the window to a new location.



Field Summary


__contentPath: String
stored value of the contentPath property


_child0: MovieClip
alternate instance name of the content


_title: String



back_mc: MovieClip



boundingBox_mc: MovieClip



button_mc: SimpleButton



className: String
name of this class


clipParameters: Object



closeButton: Boolean
true if you want the close button displayed


content: MovieClip
The URL or linkage name of the SWF or JPEG has been loaded into the ScrollPane.


deletePopUp: Function
modal windows must be destroyed via deletePopUp


idNames: Array



initializing: Boolean



loadingChild: Boolean


static
mergedClipParameters: Boolean



modalWindow: MovieClip
setup by PopUpManager


regX: Number
the location on the window the mouse was clicked


regY: Number



skinCloseDisabled: String
symbol name of skin element for the disabled state of the close button


skinCloseDown: String
symbol name of skin element for the down state of the close button


skinCloseOver: String
symbol name of skin element for the over state of the close button


skinCloseUp: String
symbol name of skin element for the up state of the close button

static
skinIDBorder: Number


static
skinIDForm: Number


static
skinIDTitleBackground: Number



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

static
symbolName: String


static
symbolOwner: Object



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

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

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

Property Summary


contentPath: String (read, write)
name of the symbol or URL to the image or movie to display as the content


title: String (read, write)
the title/caption displayed in the title bar

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


Window ( )


Method Summary


childLoaded ( obj: MovieClip ): Void



createChild ( id: String, name: String, props: Object ): MovieClip
add a new child object


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


delegateClick ( obj: Object ): Void
forward clicks to the listeners of the owner


doLayout ( Void ): Void



dragTracking ( ): Void



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


getComponentCount ( Void ): Number
used by future live-preview to preview contents in the containers


getComponentRect ( container: Number ): Object
used by future live-preview to preview contents in the containers


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


setEnabled ( enable: Boolean ): Void
the close button and content must be disabled/enabled when we are


startDragging ( Void ): Void



stopDragging ( Void ): Void


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

__contentPath

var __contentPath: String
stored value of the contentPath property

_child0

var _child0: MovieClip
alternate instance name of the content

_title

var _title: String

back_mc

var back_mc: MovieClip

boundingBox_mc

var boundingBox_mc: MovieClip

button_mc

var button_mc: SimpleButton

className

var className: String
name of this class

clipParameters

var clipParameters: Object

closeButton

var closeButton: Boolean
true if you want the close button displayed

content

var content: MovieClip
The URL or linkage name of the SWF or JPEG has been loaded into the ScrollPane.

deletePopUp

var deletePopUp: Function
modal windows must be destroyed via deletePopUp

idNames

var idNames: Array

initializing

var initializing: Boolean

loadingChild

var loadingChild: Boolean

mergedClipParameters

static var mergedClipParameters: Boolean

modalWindow

var modalWindow: MovieClip
setup by PopUpManager

regX

var regX: Number
the location on the window the mouse was clicked

regY

var regY: Number

skinCloseDisabled

var skinCloseDisabled: String
symbol name of skin element for the disabled state of the close button

skinCloseDown

var skinCloseDown: String
symbol name of skin element for the down state of the close button

skinCloseOver

var skinCloseOver: String
symbol name of skin element for the over state of the close button

skinCloseUp

var skinCloseUp: String
symbol name of skin element for the up state of the close button

skinIDBorder

static var skinIDBorder: Number

skinIDForm

static var skinIDForm: Number

skinIDTitleBackground

static var skinIDTitleBackground: Number

skinTitleBackground

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

symbolName

static var symbolName: String

symbolOwner

static var symbolOwner: Object

titleStyleDeclaration

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

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.


Property Documentation

contentPath

contentPath: String (read, write)
name of the symbol or URL to the image or movie to display as the content

title

title: String (read, write)
the title/caption displayed in the title bar


Constructor Documentation

Window

function Window()

Method Documentation

childLoaded

function childLoaded(obj: MovieClip): Void
Overrides:

Parameters:
obj
the loaded child

createChild

function createChild(id: String,
 name: String,
 props: Object): MovieClip
add a new child object

Overrides:

Parameters:
id
className the name of the symbol, a reference to a class, or file path or URL to the external content
name
instanceName the instance name of the child
props
initProps object containing initialization properties
Returns:
reference to the child object

See also:

createChildren

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

Overrides:

delegateClick

function delegateClick(obj: Object): Void
forward clicks to the listeners of the owner

doLayout

function doLayout(Void): Void
Overrides:

dragTracking

function dragTracking(): Void

draw

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

Overrides:

getComponentCount

function getComponentCount(Void): Number
used by future live-preview to preview contents in the containers

getComponentRect

function getComponentRect(container: Number): Object
used by future live-preview to preview contents in the containers

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:

setEnabled

function setEnabled(enable: Boolean): Void
the close button and content must be disabled/enabled when we are

Overrides:

startDragging

function startDragging(Void): Void

stopDragging

function stopDragging(Void): Void

The documentation was generated from the following file:


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