| Package | away3d.events |
| Class | public class VideoEvent |
| Inheritance | VideoEvent flash.events.Event |
| Property | Defined By | ||
|---|---|---|---|
| file : String
A reference to the FLV that is relevant to the event. | VideoEvent | ||
| object : Object
A reference to the related object (for metadata)
| VideoEvent | ||
| stream : NetStream
A reference to the NetStream that is relevant to the event. | VideoEvent | ||
| Method | Defined By | ||
|---|---|---|---|
VideoEvent(type:String, stream:NetStream, file:String, object:Object = null)
Creates a new VideoEvent object. | VideoEvent | ||
clone():Event [override]
Creates a copy of the VideoEvent object and sets the value of each property to match that of the original. | VideoEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| METADATA : String = onMetadata [static]
Dispatched when the metadata is downloaded
| VideoEvent | ||
| PLAY : String = onPlay [static]
Dispatched when the video starts playing (NetStream.Play.Start)
| VideoEvent | ||
| STOP : String = onStop [static]
Dispatched when the video stops playing (NetStream.Play.Start)
| VideoEvent | ||
| file | property |
public var file:StringA reference to the FLV that is relevant to the event.
| object | property |
public var object:ObjectA reference to the related object (for metadata)
| stream | property |
public var stream:NetStreamA reference to the NetStream that is relevant to the event.
| VideoEvent | () | Constructor |
public function VideoEvent(type:String, stream:NetStream, file:String, object:Object = null)
Creates a new VideoEvent object.
type:String — The type of the event. Possible values are: VideoEvent.START, VideoEvent.STOP and VideoEvent.METADATA.
| |
stream:NetStream — A reference to the NetStream that is relevant to the event.
| |
file:String — A reference to the file that is playing on the stream.
| |
object:Object (default = null) — A reference to an object passed from the event dispatcher (used for passing the MetaData)
|
| clone | () | method |
override public function clone():EventCreates a copy of the VideoEvent object and sets the value of each property to match that of the original.
ReturnsEvent |
| METADATA | Constant |
public static const METADATA:String = onMetadataDispatched when the metadata is downloaded
| PLAY | Constant |
public static const PLAY:String = onPlayDispatched when the video starts playing (NetStream.Play.Start)
| STOP | Constant |
public static const STOP:String = onStopDispatched when the video stops playing (NetStream.Play.Start)