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
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:String
A reference to the FLV that is relevant to the event.
object | property |
public var object:Object
A reference to the related object (for metadata)
stream | property |
public var stream:NetStream
A reference to the NetStream that is relevant to the event.
VideoEvent | () | constructor |
public function VideoEvent(type:String, stream:NetStream, file:String, object:Object = null)
Parameters
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 |
public override function clone():Event
Creates 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 = "onMetadata"
Dispatched when the metadata is downloaded
PLAY | constant |
public static const PLAY:String = "onPlay"
Dispatched when the video starts playing (NetStream.Play.Start)
STOP | constant |
public static const STOP:String = "onStop"
Dispatched when the video stops playing (NetStream.Play.Start)