LightboxWindow

Kind of class: public class
Package:
Inherits from:
  • Sprite
Author: John Polacek, john@johnpolacek.com
Classpath: com.johnpolacek.components.LightboxWindow
File last modified: Thursday, 24 February 2011, 22:09:57
The LightboxWindow class contains the ContentDisplay sprite. Uses the ContentDisplayCreator simple Factory to generate content containers
Events broadcasted to listeners
  • new Event(LIGHTBOX_PREV) # When prevButton is clicked.
  • new Event(LIGHTBOX_NEXT) # When prevButton is clicked.

Summary

Constructor
Constants
Instance properties
Instance methods

Constructor

Constants

TRANSITION_BUILD

static const TRANSITION_BUILD = "transitionBuild"

Constant for build transitionStyle

TRANSITION_FLY_IN_LEFT

static const TRANSITION_FLY_IN_LEFT = "transitionFlyInLeft"

Constant for fly in left transitionStyle

TRANSITION_FLY_IN_RIGHT

static const TRANSITION_FLY_IN_RIGHT = "transitionFlyInRight"

Constant for fly in right transitionStyle

Instance properties

contentInfo

contentInfo:LightboxContentInfo(read,write)

The content info object corresponding to the content in the window

maxContentHeight

maxContentHeight:int = 9999(read,write)

Maximum height of content, in pixels.

maxContentWidth

maxContentWidth:int = 9999(read,write)

Maximum width of content, in pixels.

transitionStyle

transitionStyle:String = TRANSITION_BUILD(read,write)

Determines which style is used for transitions in and out

Instance methods

close

function close() : void

Initiates content window close transition.

destroy

function destroy() : void

displayContent

function displayContent(c:LightboxContentInfo) : void

Loads and displays content.

Parameters
 

setNavIndex

function setNavIndex(cE:int, tE:int) : void

Sets values for next and previous buttons.

transitionOut

function transitionOut() : void