KoolMoves AS3 API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class GUI_VideoObject

Package | km.components
Class | public class GUI_VideoObject
Inheritance | GUI_VideoObject flash.display.Sprite

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

Public Properties

| Property | Defined by
--- | --- | ---
|  | loop : Boolean | GUI_VideoObject
|  | netStream : NetStream | GUI_VideoObject
|  | video : Video | GUI_VideoObject

Public Methods

| Method | Defined by
--- | --- | ---
|  | GUI_VideoObject() | GUI_VideoObject
|  | clearChromaKey():void 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

loop | property

`public var loop:Boolean`

netStream | property |

`public var netStream:NetStream`

video | property |

`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

Last update : 04/05/2008