Packagecom.pcthomatos.components.videoplayer
Classpublic class ULVideoPlayer
InheritanceULVideoPlayer Inheritance flash.display.Sprite

ULVideoPlayer is a standalone class. No other class files are required, expect for ULVideo and that is only for casting. It is designed to be used with ULVideo types which are loaded in using UltraLoader.

See also

com.pcthomatos.ultraloader
com.pcthomatos.ultraloader.types.ULVideo


Public Properties
 PropertyDefined by
  barOpacity : Number = .8
Changes the scrubber bar and timeline bar opacity.
ULVideoPlayer
  bufrAnimationBarsTotal : int = 5
Changes the number of buffering animation bars color.
ULVideoPlayer
  bufrBarColorDone : uint = 0x00FF00
Changes the buffering bar done color.
ULVideoPlayer
  bufrBarColorDoneOpacity : Number = .5
Changes the buffering bar done opacity.
ULVideoPlayer
  bufrBarColorOff : uint = 0xFF0000
Changes the buffering bar off color.
ULVideoPlayer
  bufrBarColorOn : uint = 0xFFFF00
Changes the buffering bar on color.
ULVideoPlayer
  bufrBarColorOnOpacity : Number = .5
Changes the buffering bar on opacity.
ULVideoPlayer
  bufrBarColorOpacity : Number = .3
Changes the buffering bar opacity.
ULVideoPlayer
  bufrBgColor : uint = 0x000000
Changes the buffering bar background color.
ULVideoPlayer
  bufrBgColorOpacity : Number = .6
Changes the buffering bar opacity.
ULVideoPlayer
  buttonOpacity : Number = .4
Changes the button opacity of all the butons.
ULVideoPlayer
  mainColor : uint = 0xCCCCCC
Changes the main color of all the buttons and the borders.
ULVideoPlayer
  mainFillColor : uint = 0x000000
Changes the fill color (negative space) of all the buttons.
ULVideoPlayer
  mainFillOpacity : Number = .8
Changes the fill opacity (negative space of all the buttons.
ULVideoPlayer
  mainOverColor : uint = 0xFFFFFF
Changes the mouse over state of all the buttons
ULVideoPlayer
  mainOverOpacity : Number = 1
Changes the mouse over opacity of all the buttons
ULVideoPlayer
  scrubberColor : uint = 0x777777
Changes the scrubber color.
ULVideoPlayer
  scrubberOnColor : uint = 0xEEEEEE
Changes the scrubber color on color.
ULVideoPlayer
  tFormat : TextFormat
Changes the textFormat of the timecode.
ULVideoPlayer
  timelineBarEmpty : uint = 0x111111
Changes the unloaded bar color of the timeline.
ULVideoPlayer
  timelineBarFull : uint = 0x333333
Changes the loaded bar color of the timeline.
ULVideoPlayer
  videoBg : uint = 0x000000
Changes the background of the player.
ULVideoPlayer
  volumeBarEmpty : uint = 0x333333
Changes the volume bar empty color.
ULVideoPlayer
  volumeBarFull : uint = 0xFFFFFF
Changes the volume bar full color.
ULVideoPlayer
  volumeOffSpriteColor : uint = 0x440000
Changes the volume off "red X" color.
ULVideoPlayer
Public Methods
 MethodDefined by
  
ULVideoPlayer(ulVideo:ULVideo, ulImage:Bitmap = null)
Creates the ULVideoPlayer Object
ULVideoPlayer
  
changeVideo(ulVideo:ULVideo, ulImage:Bitmap = null):void
Allows you to swap videos easily.
ULVideoPlayer
  
clean():void
Destructor method.
ULVideoPlayer
  
setFullScreenXY(fsX:Number, fsY:Number):void
Specifies the X Y coordinates of the fullscreen rectangle.
ULVideoPlayer
  
stop():void
Stops the video and moves the playhead back to the beginning.
ULVideoPlayer
  
Call this method every time you update the color properties.
ULVideoPlayer
Property detail
barOpacityproperty
public var barOpacity:Number = .8

Changes the scrubber bar and timeline bar opacity.

The default value is .8.

bufrAnimationBarsTotalproperty 
public var bufrAnimationBarsTotal:int = 5

Changes the number of buffering animation bars color.

The default value is 5.

bufrBarColorDoneproperty 
public var bufrBarColorDone:uint = 0x00FF00

Changes the buffering bar done color.

The default value is 0x00FF00.

bufrBarColorDoneOpacityproperty 
public var bufrBarColorDoneOpacity:Number = .5

Changes the buffering bar done opacity.

The default value is .5.

bufrBarColorOffproperty 
public var bufrBarColorOff:uint = 0xFF0000

Changes the buffering bar off color.

The default value is 0xFF0000.

bufrBarColorOnproperty 
public var bufrBarColorOn:uint = 0xFFFF00

Changes the buffering bar on color.

The default value is 0xFFFF00.

bufrBarColorOnOpacityproperty 
public var bufrBarColorOnOpacity:Number = .5

Changes the buffering bar on opacity.

The default value is .5.

bufrBarColorOpacityproperty 
public var bufrBarColorOpacity:Number = .3

Changes the buffering bar opacity.

The default value is .3.

bufrBgColorproperty 
public var bufrBgColor:uint = 0x000000

Changes the buffering bar background color.

The default value is 0x000000.

bufrBgColorOpacityproperty 
public var bufrBgColorOpacity:Number = .6

Changes the buffering bar opacity.

The default value is .6.

buttonOpacityproperty 
public var buttonOpacity:Number = .4

Changes the button opacity of all the butons.

The default value is .

mainColorproperty 
public var mainColor:uint = 0xCCCCCC

Changes the main color of all the buttons and the borders.

The default value is .

mainFillColorproperty 
public var mainFillColor:uint = 0x000000

Changes the fill color (negative space) of all the buttons.

The default value is .

mainFillOpacityproperty 
public var mainFillOpacity:Number = .8

Changes the fill opacity (negative space of all the buttons.

The default value is .

mainOverColorproperty 
public var mainOverColor:uint = 0xFFFFFF

Changes the mouse over state of all the buttons

The default value is .

mainOverOpacityproperty 
public var mainOverOpacity:Number = 1

Changes the mouse over opacity of all the buttons

The default value is .

scrubberColorproperty 
public var scrubberColor:uint = 0x777777

Changes the scrubber color.

The default value is 0x777777.

scrubberOnColorproperty 
public var scrubberOnColor:uint = 0xEEEEEE

Changes the scrubber color on color.

The default value is 0xEEEEEE.

tFormatproperty 
public var tFormat:TextFormat

Changes the textFormat of the timecode.

The default value is TextFormat("Arial, Helvetica, Sans-Serif", 12, 0xFFFFFF);.

timelineBarEmptyproperty 
public var timelineBarEmpty:uint = 0x111111

Changes the unloaded bar color of the timeline.

The default value is 0x111111.

timelineBarFullproperty 
public var timelineBarFull:uint = 0x333333

Changes the loaded bar color of the timeline.

The default value is 0x333333.

videoBgproperty 
public var videoBg:uint = 0x000000

Changes the background of the player. Only see if no default image is used.

The default value is .

volumeBarEmptyproperty 
public var volumeBarEmpty:uint = 0x333333

Changes the volume bar empty color.

The default value is 0x333333.

volumeBarFullproperty 
public var volumeBarFull:uint = 0xFFFFFF

Changes the volume bar full color.

The default value is 0xFFFFFF.

volumeOffSpriteColorproperty 
public var volumeOffSpriteColor:uint = 0x440000

Changes the volume off "red X" color.

The default value is 0x440000.

Constructor detail
ULVideoPlayer()constructor
public function ULVideoPlayer(ulVideo:ULVideo, ulImage:Bitmap = null)

Creates the ULVideoPlayer Object

Parameters
ulVideo:ULVideo — A ULVideo type either loaded through UltraLoader or manually created using the ULVideo type.
 
ulImage:Bitmap (default = null) — A Bitmap image for the start screen, optional.

See also

Method detail
changeVideo()method
public function changeVideo(ulVideo:ULVideo, ulImage:Bitmap = null):void

Allows you to swap videos easily.

Parameters
ulVideo:ULVideo — A ULVideo type either loaded through UltraLoader or manually created using the ULVideo type.
 
ulImage:Bitmap (default = null) — A Bitmap image for the start screen, optional.

See also

clean()method 
public function clean():void

Destructor method. In order to properly destroy ULVideoPlayer this method must be run first. Otherwise a memory leak will occur.

setFullScreenXY()method 
public function setFullScreenXY(fsX:Number, fsY:Number):void

Specifies the X Y coordinates of the fullscreen rectangle. Should be the X,Y coordinates of your video player relative to the stage. If the video player moves, reset this value.

Parameters
fsX:Number — X coordinate of the video player relative to the stage.
 
fsY:Number — Y coordinate of the video player relative to the stage.
stop()method 
public function stop():void

Stops the video and moves the playhead back to the beginning.

updateSettings()method 
public function updateSettings():void

Call this method every time you update the color properties.