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
[override] 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)

Creates a new VideoEvent object.

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####
Method Detail
clone()method
override public 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)