Packagekm.components
Classpublic class GUI_VideoObject
InheritanceGUI_VideoObject Inheritance flash.display.Sprite

The GUI_VideoObject class is used by KoolMoves when a video is imported.



Public Properties
 PropertyDefined by
  loop : Boolean
GUI_VideoObject
  netStream : NetStream
GUI_VideoObject
  video : Video
GUI_VideoObject
Public Methods
 MethodDefined by
  
GUI_VideoObject
  
Clears a chroma key.
GUI_VideoObject
  
play(url:String):void
Starts playing a video.
GUI_VideoObject
  
setChromaKey(keyColor:uint = 0x00ff00, chromaTolerance:int = 60, lumaTolerance:int = 255, preBlur:Boolean = true, postBlur:Boolean = false, invertMask:Boolean = false, preserveLuma:Boolean = false):void
Sets a chroma key.
GUI_VideoObject
  
setSize(w:int = 320, h:int = 240):void
Sets the size of the video object.
GUI_VideoObject
Property detail
loopproperty
public var loop:Boolean
netStreamproperty 
public var netStream:NetStream
videoproperty 
public var video:Video
Constructor detail
GUI_VideoObject()constructor
public function GUI_VideoObject()
Method detail
clearChromaKey()method
public function clearChromaKey():void

Clears a chroma key.

play()method 
public function play(url:String):void

Starts playing a video.

Parameters
url:String — the url of the video to play.
setChromaKey()method 
public function setChromaKey(keyColor:uint = 0x00ff00, chromaTolerance:int = 60, lumaTolerance:int = 255, preBlur:Boolean = true, postBlur:Boolean = false, invertMask:Boolean = false, preserveLuma:Boolean = false):void

Sets a chroma key.

Parameters
keyColor:uint (default = 0x00ff00) — the key color.
 
chromaTolerance:int (default = 60) — the chroma tolerance (0 - 191) .
 
lumaTolerance:int (default = 255) — the luma tolerance (0 - 255) .
 
preBlur:Boolean (default = true) — blur the video before the tolerance check.
 
postBlur:Boolean (default = false) — blur the alpha channel after the tolerance check.
 
invertMask:Boolean (default = false) — when set to true, the mask is inverted.
 
preserveLuma:Boolean (default = false) — when set to true, instead of making areas transparent only the color is removed.
setSize()method 
public function setSize(w:int = 320, h:int = 240):void

Sets the size of the video object.

Parameters
w:int (default = 320) — width
 
h:int (default = 240) — height