用于 Adobe® Flash® Platform 的 ActionScript® 3.0 参考
主页  |  隐藏包列表和类列表 |   |   |  新增内容  |  索引  |  附录  |  为什么显示为英语?
过滤条件: 正在从服务器检索数据...
正在从服务器检索数据...
fl.video 

VideoEvent  - AS3 Flash

fl.video
public class VideoEvent
继承VideoEvent Inheritance Event Inheritance Object
实现 IVPEvent

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

Flash® Player 在用户播放视频时调度 VideoEvent 对象。



公共属性
 属性由以下参数定义
 Inheritedbubbles : Boolean
[只读] 表示事件是否为冒泡事件。
Event
 Inheritedcancelable : Boolean
[只读] 表示是否可以阻止与事件相关联的行为。
Event
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
 InheritedcurrentTarget : Object
[只读] 当前正在使用某个事件侦听器处理 Event 对象的对象。
Event
 InheritedeventPhase : uint
[只读] 事件流中的当前阶段。
Event
  playheadTime : Number
一个数字,表示当前播放头的时间或位置(以秒为单位计算),可以是小数值。
VideoEvent
  state : String
一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。
VideoEvent
 Inheritedtarget : Object
[只读] 事件目标。
Event
 Inheritedtype : String
[只读] 事件的类型。
Event
  vp : uint
该事件涉及的 VideoPlayer 对象的索引。
VideoEvent
公共方法
 方法由以下参数定义
  
VideoEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, state:String = null, playheadTime:Number = NaN, vp:uint = 0)
创建一个 Event 对象,其中包含有关 video 事件的信息。
VideoEvent
 Inherited
复制 Event 子类的实例。
Event
 Inherited
formatToString(className:String, ... arguments):String
用于在自定义 ActionScript 3.0 Event 类中实现 toString() 方法的实用程序函数。
Event
 Inherited
表示对象是否已经定义了指定的属性。
Object
 Inherited
检查是否已对事件调用 preventDefault() 方法。
Event
 Inherited
表示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
如果可以取消事件的默认行为,则取消该行为。
Event
 Inherited
表示指定的属性是否存在、是否可枚举。
Object
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
防止对事件流中当前节点中和所有后续节点中的事件侦听器进行处理。
Event
 Inherited
防止对事件流中当前节点的后续节点中的所有事件侦听器进行处理。
Event
 Inherited
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。
Object
 Inherited
返回一个字符串,其中包含 Event 对象的所有属性。
Event
 Inherited
返回指定对象的原始值。
Object
公共常量
 常量由以下参数定义
  AUTO_REWOUND : String = "autoRewound"
[静态] 定义 autoRewound 事件对象的 type 属性值。
VideoEvent
  BUFFERING_STATE_ENTERED : String = "bufferingStateEntered"
[静态] 定义 bufferingStateEntered 事件对象的 type 属性值。
VideoEvent
  CLOSE : String = "close"
[静态] 定义 close 事件对象的 type 属性值。
VideoEvent
  COMPLETE : String = "complete"
[静态] 定义 complete 事件对象的 type 属性值。
VideoEvent
  FAST_FORWARD : String = "fastForward"
[静态] 定义 fastForward 事件对象的 type 属性值。
VideoEvent
  PAUSED_STATE_ENTERED : String = "pausedStateEntered"
[静态] 定义 pausedStateEntered 事件对象的 type 属性值。
VideoEvent
  PLAYHEAD_UPDATE : String = "playheadUpdate"
[静态] 定义 playheadUpdate 事件对象的 type 属性值。
VideoEvent
  PLAYING_STATE_ENTERED : String = "playingStateEntered"
[静态] 定义 playingStateEntered 事件对象的 type 属性值。
VideoEvent
  READY : String = "ready"
[静态] 定义 ready 事件对象的 type 属性值。
VideoEvent
  REWIND : String = "rewind"
[静态] 定义 rewind 事件对象的 type 属性值。
VideoEvent
  SCRUB_FINISH : String = "scrubFinish"
[静态] 定义 scrubFinish 事件对象的 type 属性值。
VideoEvent
  SCRUB_START : String = "scrubStart"
[静态] 定义 scrubStart 事件对象的 type 属性值。
VideoEvent
  SEEKED : String = "seeked"
[静态] 定义 seeked 事件对象的 type 属性值。
VideoEvent
  SKIN_LOADED : String = "skinLoaded"
[静态] 定义 skinLoaded 事件对象的 type 属性值。
VideoEvent
  STATE_CHANGE : String = "stateChange"
[静态] 定义 stateChange 事件对象的 type 属性值。
VideoEvent
  STOPPED_STATE_ENTERED : String = "stoppedStateEntered"
[静态] 定义 stoppedStateEntered 事件对象的 type 属性值。
VideoEvent
属性详细信息

playheadTime

属性
playheadTime:Number

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

一个数字,表示当前播放头的时间或位置(以秒为单位计算),可以是小数值。 设置此属性会触发搜索,并具有搜索的所有限制。

播放头时间发生变化(播放 FLV 文件时每隔 0.25 秒更改一次)时,该组件会调度 playheadUpdate 事件。

由于几种原因,在调用一种搜索方法或者设置 playheadTime 以引发搜索后,playheadTime 属性中可能不会立即包含预期值。 首先,对于渐进式下载,由于只能搜索关键帧,因此搜索将转到指定时间后第一个关键帧的时间。 (对于流式下载,搜索总是转到指定的确切时间,即使 FLV 源文件在此处没有关键帧也是如此。) 其次,由于搜索是异步执行的,因此,如果调用搜索方法或者设置 playheadTime 属性,playheadTime 将不会立即更新。 若要在搜索完成后获取时间,请侦听 seek 事件,该事件在 playheadTime 属性更新后才会引发。



实现
    public function get playheadTime():Number
    public function set playheadTime(value:Number):void

相关 API 元素

state

属性 
state:String

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。 该属性通过 load()play()stop()pause()seek() 方法进行设置。

state 属性的可能值包括:bufferingconnectionErrordisconnectedloadingpausedplayingrewindingseekingstopped。您可以使用 FLVPlayback 类的属性测试这些状态。



实现
    public function get state():String
    public function set state(value:String):void

相关 API 元素

vp

属性 
vp:uint

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

该事件涉及的 VideoPlayer 对象的索引。



实现
    public function get vp():uint
    public function set vp(value:uint):void
构造函数详细信息

VideoEvent

()构造函数
public function VideoEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, state:String = null, playheadTime:Number = NaN, vp:uint = 0)

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

创建一个 Event 对象,其中包含有关 video 事件的信息。 将 Event 对象作为参数传递给事件侦听器。

参数
type:String — 事件的类型。事件侦听器可以通过继承的 type 属性访问此信息。可能的值有:VideoEvent.AUTO_REWOUNDVideoEvent.BUFFERING_STATE_ENTEREDVideoEvent.CLOSEVideoEvent.COMPLETEVideoEvent.FAST_FORWARDVideoEvent.PAUSED_STATE_ENTEREDVideoEvent.PLAYHEAD_UPDATEVideoEvent.PLAYING_STATE_ENTEREDVideoEvent.READYVideoEvent.REWINDVideoEvent.SCRUB_FINISHVideoEvent.SCRUB_STARTVideoEvent.SEEKEDVideoEvent.SKIN_LOADEDVideoEvent.STATE_CHANGEVideoEvent.STOPPED_STATE_ENTEREDVideoEvent.VOLUME_UPDATE
 
bubbles:Boolean (default = false) — 确定 Event 对象是否参与事件流的冒泡阶段。事件侦听器可以通过继承的 bubbles 属性访问此信息。
 
cancelable:Boolean (default = false) — 确定是否可以取消 Event 对象。事件侦听器可以通过继承的 cancelable 属性访问此信息。
 
state:String (default = null) — 一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。
 
playheadTime:Number (default = NaN) — 一个数字,表示当前播放头的时间或位置。
 
vp:uint (default = 0) — 确定 VideoPlayer 对象的索引。

相关 API 元素

常量详细信息

AUTO_REWOUND

常量
public static const AUTO_REWOUND:String = "autoRewound"

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

定义 autoRewound 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
state一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。
playheadTime一个数字,表示当前播放头的时间或位置。
vpVideoPlayer 对象的索引。

相关 API 元素

BUFFERING_STATE_ENTERED

常量 
public static const BUFFERING_STATE_ENTERED:String = "bufferingStateEntered"

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

定义 bufferingStateEntered 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
state一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。
playheadTime一个数字,表示当前播放头的时间或位置。
vpVideoPlayer 对象的索引。

相关 API 元素

CLOSE

常量 
public static const CLOSE:String = "close"

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

定义 close 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
state一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。
playheadTime一个数字,表示当前播放头的时间或位置。
vpVideoPlayer 对象的索引。

相关 API 元素

COMPLETE

常量 
public static const COMPLETE:String = "complete"

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

定义 complete 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
state一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。
playheadTime一个数字,表示当前播放头的时间或位置。
vpVideoPlayer 对象的索引。

相关 API 元素

FAST_FORWARD

常量 
public static const FAST_FORWARD:String = "fastForward"

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

定义 fastForward 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
state一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。
playheadTime一个数字,表示当前播放头的时间或位置。
vpVideoPlayer 对象的索引。

相关 API 元素

PAUSED_STATE_ENTERED

常量 
public static const PAUSED_STATE_ENTERED:String = "pausedStateEntered"

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

定义 pausedStateEntered 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
state一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。
playheadTime一个数字,表示当前播放头的时间或位置。
vpVideoPlayer 对象的索引。

相关 API 元素

PLAYHEAD_UPDATE

常量 
public static const PLAYHEAD_UPDATE:String = "playheadUpdate"

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

定义 playheadUpdate 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
state一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。
playheadTime一个数字,表示当前播放头的时间或位置。
vpVideoPlayer 对象的索引。

相关 API 元素

PLAYING_STATE_ENTERED

常量 
public static const PLAYING_STATE_ENTERED:String = "playingStateEntered"

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

定义 playingStateEntered 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
state一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。
playheadTime一个数字,表示当前播放头的时间或位置。
vpVideoPlayer 对象的索引。

相关 API 元素

READY

常量 
public static const READY:String = "ready"

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

定义 ready 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
state一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。
playheadTime一个数字,表示当前播放头的时间或位置。
vpVideoPlayer 对象的索引。

相关 API 元素

REWIND

常量 
public static const REWIND:String = "rewind"

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

定义 rewind 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
state一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。
playheadTime一个数字,表示当前播放头的时间或位置。
vpVideoPlayer 对象的索引。

相关 API 元素

SCRUB_FINISH

常量 
public static const SCRUB_FINISH:String = "scrubFinish"

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

定义 scrubFinish 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
state一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。
playheadTime一个数字,表示当前播放头的时间或位置。
vpVideoPlayer 对象的索引。

相关 API 元素

SCRUB_START

常量 
public static const SCRUB_START:String = "scrubStart"

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

定义 scrubStart 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
state一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。
playheadTime一个数字,表示当前播放头的时间或位置。
vpVideoPlayer 对象的索引。

相关 API 元素

SEEKED

常量 
public static const SEEKED:String = "seeked"

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

定义 seeked 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
state一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。
playheadTime一个数字,表示当前播放头的时间或位置。
vpVideoPlayer 对象的索引。

相关 API 元素

SKIN_LOADED

常量 
public static const SKIN_LOADED:String = "skinLoaded"

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

定义 skinLoaded 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
state一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。
playheadTime一个数字,表示当前播放头的时间或位置。
vpVideoPlayer 对象的索引。

相关 API 元素

STATE_CHANGE

常量 
public static const STATE_CHANGE:String = "stateChange"

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

定义 stateChange 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
state一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。
playheadTime一个数字,表示当前播放头的时间或位置。
vpVideoPlayer 对象的索引。

相关 API 元素

STOPPED_STATE_ENTERED

常量 
public static const STOPPED_STATE_ENTERED:String = "stoppedStateEntered"

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

定义 stoppedStateEntered 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
state一个字符串,标识来自 VideoState 类的用于描述组件播放状态的常量。
playheadTime一个数字,表示当前播放头的时间或位置。
vpVideoPlayer 对象的索引。

相关 API 元素





[ X ]为什么显示为英语?
《ActionScript 3.0 参考》中的内容以英语显示

《ActionScript 3.0 参考》中的部分内容未翻译成所有语言。当某个语言元素未翻译时,将显示为英语。例如,ga.controls.HelpBox 类未翻译成任何语言。因此在简体中文版的参考中,ga.controls.HelpBox 类显示为英语。