Packageimpression.events
Classpublic class VideoFrameEvent
InheritanceVideoFrameEvent Inheritance flash.events.Event

The SWFVideoPlayer dispatches a VideoFrame object when the ENTER_FRAME event of a video step clip is dispatched.



Public Properties
 PropertyDefined By
  currentFrame : int
[read-only] The current frame of the current step clip.
VideoFrameEvent
  currentStep : int
[read-only] The current step displayed by the player.
VideoFrameEvent
  currentStepClip : MovieClip
[read-only] The MovieClip currently being displayed.
VideoFrameEvent
  totalFrames : int
[read-only] The total number of frames in the current step clip.
VideoFrameEvent
  totalSteps : int
[read-only] The total number of steps in the video.
VideoFrameEvent
Public Methods
 MethodDefined By
  
VideoFrameEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, currentStep:int = -1, totalSteps:int = -1, currentStepClip:MovieClip = null, currentFrame:int = -1, totalFrames:int = -1)
Creates a new instance of a VideoFrameEvent object.
VideoFrameEvent
  
clone():Event
[override] Duplicates an instance of the event object.
VideoFrameEvent
  
toString():String
[override] Returns a string containing all the properties of the VideoFrameEvent object.
VideoFrameEvent
Public Constants
 ConstantDefined By
  ENTER_FRAME : String = videoEnterFrame
[static] The VideoFrameEvent.ENTER_FRAME constant defines the value of the type property of a frame event object.
VideoFrameEvent
Property Detail
currentFrameproperty
currentFrame:int  [read-only]

The current frame of the current step clip.


Implementation
    public function get currentFrame():int
currentStepproperty 
currentStep:int  [read-only]

The current step displayed by the player.


Implementation
    public function get currentStep():int
currentStepClipproperty 
currentStepClip:MovieClip  [read-only]

The MovieClip currently being displayed.


Implementation
    public function get currentStepClip():MovieClip
totalFramesproperty 
totalFrames:int  [read-only]

The total number of frames in the current step clip.


Implementation
    public function get totalFrames():int
totalStepsproperty 
totalSteps:int  [read-only]

The total number of steps in the video.


Implementation
    public function get totalSteps():int
Constructor Detail
VideoFrameEvent()Constructor
public function VideoFrameEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, currentStep:int = -1, totalSteps:int = -1, currentStepClip:MovieClip = null, currentFrame:int = -1, totalFrames:int = -1)

Creates a new instance of a VideoFrameEvent object.

If currentStepClip is not null and the values of either the currentFrame or totalFrames parameters are -1 (the default), this method will use the values from the currentStepClip property to populate the currentFrame and/or totalFrames properties.

Parameters
type:String — The type of the event. Event listeners can access this information through the inherited type property.
 
bubbles:Boolean (default = false) — Determines whether the event object participates in the bubbling phase of the event flow. Event listeners can access this information through the inheritied bubbles property.
 
cancelable:Boolean (default = false) — Determines whether the event object can be canceled. Event listeners can access this information through the inherited cancelable property.
 
currentStep:int (default = -1) — The current step displayed by the player. Event listeners can access this information through the currentStep property.
 
totalSteps:int (default = -1) — The total number of steps in the video. Event listeners can access this information through the totalSteps property.
 
currentStepClip:MovieClip (default = null) — The current step clip being displayed by the player. Event listeners can access this information through the currentStepClip property.
 
currentFrame:int (default = -1) — The current frame of the current step clip. Event listeners can access this information through the currentFrame property.
 
totalFrames:int (default = -1) — The total number of frames in the current step clip. Event listeners can access this information through the totalFrames property.
Method Detail
clone()method
override public function clone():Event

Duplicates an instance of the event object.

Returns a new VideoFrameEvent object that is a copy of the original instance of the VideoFrameEvent object. You do not normally call clone(); the EventDispatcher class calls it automatically when you redispatch an event--that is, when you call dispatchEvent(event) from a handler that is handling event.

Returns
Event — A new VideoStatusEvent object that is identical to the original.
toString()method 
override public function toString():String

Returns a string containing all the properties of the VideoFrameEvent object. The string is in the following format:

[VideoFrameEvent type=value bubbles=value cancelable=value eventPhase=value currentStep=value totalSteps=value currentStepClip=value currentFrame=value totalFrames=value]

Returns
String — A string containing all the properties of the VideoFrameEvent object.
Constant Detail
ENTER_FRAMEConstant
public static const ENTER_FRAME:String = videoEnterFrame

The VideoFrameEvent.ENTER_FRAME constant defines the value of the type property of a frame event object. This event has the following properties:

PropertyValue
bubblesfalse
cancelablefalse; there is no default behavior to cancel.
currentTargetThe object that is actively processing the Event object with an event listener.
targetThe object that raised the event.
currentStepThe current step displayed by the player.
totalStepsThe total number of steps in the video.
currentStepClipThe MovieClip object that is the current step clip.
currentFrameThe value of the currentFrame property of the current step clip.
totalFramesThe value of the totalFrames property of the current step clip.