Class bgswitcher.BGVideo

Description

This class is the video that is displayed in the background in the gallery. The following events are dispatched by this class:

BGVideoStarted - dispatched when the playback of the video is started

BGVideoStopped - dispatched when the playback of the video is stopped

Field Index

loop

Method Index

new BGVideo()
addEventListener(), playVideo(), removeEventListener(), stopVideo()

Constructor Detail

BGVideo

public function BGVideo()

Field Detail

loop

public loop:Boolean
Use this property to get or set whether the video loops or not

Method Detail

playVideo

public function playVideo(str:String)

Use this method to play a video file

Parameters

str- the path to the video file

addEventListener

public function addEventListener()

removeEventListener

public function removeEventListener()

stopVideo

public function stopVideo()

Use this function to stop the video