Class bgswitcher.BGSwitcher

Description

This class is the main application. The following events are dispatched by this class:

SwitcherInit - dispatched when the all the listeners of the switcher are initialised

XMLInit - dispatched after the XML is loaded, all elements aligned on stage and the slideshow is started

SlideShowToggled - dispatched when the slideshow is either sitched on or off. This event has the following properties:
state - evaluates to either "true" or "false" (string) denoting if the slidshow was switched on or off.

Field Index

slideShowOn, xmlFile

Method Index

new BGSwitcher()
addEventListener(), removeEventListener(), startShow(), stopShow()

Constructor Detail

BGSwitcher

public function BGSwitcher()

Field Detail

xmlFile

public xmlFile:String [Write Only]
Use this property to load an XML file.

slideShowOn

public slideShowOn:Boolean
Use this property to set whether the slideshow is on or not.

Method Detail

startShow

public function startShow()

Used for the slideshow

stopShow

public function stopShow()

Used to stop the slideshow

addEventListener

public function addEventListener()

removeEventListener

public function removeEventListener()