The GUI_VideoObject class is used by KoolMoves when a video is imported.
public var loop:Boolean
public var netStream:NetStream
public var video:Video
public function GUI_VideoObject()
public function clearChromaKey():void
Clears a chroma key.
public function play(url:String):void
Starts playing a video.
Parameters
| url:String — the url of the video to play.
|
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.
|
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
|
Last update : 11/27/2009