Packageaway3d.events
Classpublic class VideoEvent
InheritanceVideoEvent Inheritance flash.events.Event

Passed as a parameter when a material event occurs

Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Public Constants
 ConstantDefined 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
Property detail
fileproperty
public var file:String

A reference to the FLV that is relevant to the event.

objectproperty 
public var object:Object

A reference to the related object (for metadata)

streamproperty 
public var stream:NetStream

A reference to the NetStream that is relevant to the event.

Constructor detail
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)
Init Parameters
Method detail
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.

Returns
Event
Constant detail
METADATAconstant
public static const METADATA:String = "onMetadata"

Dispatched when the metadata is downloaded

PLAYconstant 
public static const PLAY:String = "onPlay"

Dispatched when the video starts playing (NetStream.Play.Start)

STOPconstant 
public static const STOP:String = "onStop"

Dispatched when the video stops playing (NetStream.Play.Start)

Wiki link
Click to go to the wiki page for 'away3d.events.VideoEvent'

Code examples

Comments