Main Page | Packages | Class Tree | Index | Help

mx.managers

class PopUpManager

Object
  |
  +--mx.managers.PopUpManager


class PopUpManager
extends Object

Class for creating new top level windows.

Also provides modality and event if clicked outside window



Field Summary


_name: String



_parent: UIObject
properties and methods that actually live on UIObject


_visible: Boolean


static
mixins: PopUpManager
need an instance of yourself so you can add methods to another instance


modalWindow: MovieClip
modality is accomplished by creating a full screen transparent window underneath the popup that eats all mouse clicks


move: Function



owner: MovieClip



popUp: MovieClip



setSize: Function


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

Fields inherited from class Object

__proto__, constructor, prototype

Method Summary

static
createModalWindow ( parent: MovieClip, o: MovieClip, broadcastOutsideEvents: Boolean ): Void
create the modal window

static
createPopUp ( parent: MovieClip, className: Object, modal: Boolean, initobj: Object, broadcastOutsideEvents: Boolean ): MovieClip
create a top level window.


deletePopUp ( Void ): Void
modal windows must be destroyed via deletePopUp


getVisible ( Void ): Boolean
override visible in order to take care of the modal window


nullFunction ( Void ): Void
stub function used to capture mouse


onMouseDown ( Void ): Void
check to see if we've been clicked outside the modal window


onPress ( Void ): Void
added to modal window to get mouseDownOutside events


resize ( Void ): Void
the modal window must react to screen size changes


setVisible ( v: Boolean, noEvent: Boolean ): Void
override visible in order to take care of the modal window

Methods inherited from class Object

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



Field Documentation

_name

var _name: String

_parent

var _parent: UIObject
properties and methods that actually live on UIObject

_visible

var _visible: Boolean

mixins

static var mixins: PopUpManager
need an instance of yourself so you can add methods to another instance

modalWindow

var modalWindow: MovieClip
modality is accomplished by creating a full screen transparent window underneath the popup that eats all mouse clicks

move

var move: Function

owner

var owner: MovieClip

popUp

var popUp: MovieClip

setSize

var setSize: Function

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.


Method Documentation

createModalWindow

static function createModalWindow(parent: MovieClip,
 o: MovieClip,
 broadcastOutsideEvents: Boolean): Void
create the modal window

createPopUp

static function createPopUp(parent: MovieClip,
 className: Object,
 modal: Boolean,
 initobj: Object,
 broadcastOutsideEvents: Boolean): MovieClip
create a top level window.

Modal windows must be destroyed by calling deletePopUp() which will be added to the top level window

Parameters:
parent
the object to use to center the new top level window. The top level window will probably actually be parented by _root
className
the class of object to convert into the top level window.
modal
if true, window is modal
initobj
initObj object containing initialization properties
broadcastOutsideEvents
if true, will dispatch mouseDownOutside events if mouse clicked outside the window
Returns:
reference to new top level window

deletePopUp

function deletePopUp(Void): Void
modal windows must be destroyed via deletePopUp

getVisible

function getVisible(Void): Boolean
override visible in order to take care of the modal window

nullFunction

function nullFunction(Void): Void
stub function used to capture mouse

onMouseDown

function onMouseDown(Void): Void
check to see if we've been clicked outside the modal window

onPress

function onPress(Void): Void
added to modal window to get mouseDownOutside events

resize

function resize(Void): Void
the modal window must react to screen size changes

setVisible

function setVisible(v: Boolean,
 noEvent: Boolean): Void
override visible in order to take care of the modal window


The documentation was generated from the following file:


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