Packagecom.adobe.mediacore.events
Classpublic final class SeekEvent
InheritanceSeekEvent Inheritance flash.events.Event

Event dispatched by the MediaPlayer when the player starts seeking of the seek operation completes.



Public Properties
 PropertyDefined By
  actualPosition : Number
[read-only] The actual position for the seek operation.
SeekEvent
  desiredPosition : Number
[read-only] The desired position for the seek operation.
SeekEvent
  local : Boolean
[read-only] The actual position for the seek operation.
SeekEvent
Public Methods
 MethodDefined By
  
SeekEvent(type:String, bubbles:Boolean, cancelable:Boolean, desiredPosition:Number, actualPosition:Number, local:Boolean)
Default constructor.
SeekEvent
  
clone():Event
[override]
SeekEvent
  
create(type:String, desiredPosition:Number, actualPosition:Number, local:Boolean):SeekEvent
[static] Helper method for creating seek events.
SeekEvent
Public Constants
 ConstantDefined By
  SEEK_BEGIN : String = seekBegin
[static] Event dispatched when the seek operation begins.
SeekEvent
  SEEK_END : String = seekEnd
[static] Event dispatched when the seek operation completes.
SeekEvent
  SEEK_POSITION_ADJUSTED : String = seekPositionAdjusted
[static] Event dispatched when the desired seek position is adjusted due internal playback rules (eg: you can not seek outside seekable range) or due external business rules (eg: application doesn't allow seeking past ads).
SeekEvent
Property Detail
actualPositionproperty
actualPosition:Number  [read-only]

The actual position for the seek operation.


Implementation
    public function get actualPosition():Number
desiredPositionproperty 
desiredPosition:Number  [read-only]

The desired position for the seek operation.


Implementation
    public function get desiredPosition():Number
localproperty 
local:Boolean  [read-only]

The actual position for the seek operation.


Implementation
    public function get local():Boolean
Constructor Detail
SeekEvent()Constructor
public function SeekEvent(type:String, bubbles:Boolean, cancelable:Boolean, desiredPosition:Number, actualPosition:Number, local:Boolean)

Default constructor.

Parameters
type:String — Event type.
 
bubbles:Boolean — Specifies whether the event can bubble up the display list hierarchy.
 
cancelable:Boolean — Specifies whether the behavior associated with the event can be prevented.
 
desiredPosition:Number — Desired seek position.
 
actualPosition:Number — Actual seek position.
 
local:Boolean — Flag indicating if the positions represent local or virtual time.
Method Detail
clone()method
override public function clone():Event

Returns
Event
create()method 
public static function create(type:String, desiredPosition:Number, actualPosition:Number, local:Boolean):SeekEvent

Helper method for creating seek events.

Parameters

type:String — Event type.
 
desiredPosition:Number — Desired seek position.
 
actualPosition:Number — Actual seek position.
 
local:Boolean — Flag indicating if the positions represent local or virtual time.

Returns
SeekEvent — a SeekEvent instance.
Constant Detail
SEEK_BEGINConstant
public static const SEEK_BEGIN:String = seekBegin

Event dispatched when the seek operation begins.

SEEK_ENDConstant 
public static const SEEK_END:String = seekEnd

Event dispatched when the seek operation completes.

SEEK_POSITION_ADJUSTEDConstant 
public static const SEEK_POSITION_ADJUSTED:String = seekPositionAdjusted

Event dispatched when the desired seek position is adjusted due internal playback rules (eg: you can not seek outside seekable range) or due external business rules (eg: application doesn't allow seeking past ads). The desiredPosition property will contain the desired seek position in stream while the actualPosition property will contain the adjusted position where the MediaPlayer will try to seek to.