fl.video
public class CaptionTargetEvent
继承CaptionTargetEvent Inheritance Event Inheritance Object

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9.0.28.0

自动创建 captionTargetCreated 事件后,在向其添加任何字幕前,调度的 captionTargetCreated 事件的类型。 如果使用自定义显示对象设置 captionTarget 属性,或设置了 captionTargetName 属性,则不调度该事件。 这对于自定义 TextField 对象的属性(如 defaultTextFormat 属性)非常有用。

另请参见

flash.text.TextField.defaultTextFormat



公共 属性
 属性定义方
 Inheritedbubbles : Boolean
[read-only] 指示事件是否为冒泡事件。
Event
 Inheritedcancelable : Boolean
[read-only] 指示是否可以阻止与事件相关联的行为。
Event
  captionTarget : DisplayObject
来自于具有相同名称的 FLVPlaybackCaptioning 实例属性的字幕目标。
CaptionTargetEvent
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
 InheritedcurrentTarget : Object
[read-only] 当前正在使用某个事件侦听器处理 Event 对象的对象。
Event
 InheritedeventPhase : uint
[read-only] 事件流中的当前阶段。
Event
 Inheritedprototype : Object
[static] 对类或函数对象的原型对象的引用。
Object
 Inheritedtarget : Object
[read-only] 事件目标。
Event
 Inheritedtype : String
[read-only] 事件的类型。
Event
公共 方法
 方法定义方
  
CaptionTargetEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, captionTarget:DisplayObject = null)
创建一个 Event 对象,其中包含有关字幕目标事件的信息。
CaptionTargetEvent
 Inherited
复制 Event 子类的实例。
Event
 Inherited
formatToString(className:String, ... arguments):String
在自定义 Event 类中实现 toString() 方法的实用程序函数。
Event
 Inherited
指示对象是否已经定义了指定的属性。
Object
 Inherited
检查是否已对事件调用 preventDefault()。
Event
 Inherited
指示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
如果可以取消事件的默认行为,则取消该行为。
Event
 Inherited
指示指定的属性是否存在、是否可枚举。
Object
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
防止对事件流中当前节点中和所有后续节点中的事件侦听器进行处理。
Event
 Inherited
防止对事件流中当前节点的后续节点中的所有事件侦听器进行处理。
Event
 Inherited
返回一个字符串,其中包含 Event 对象的所有属性。
Event
 Inherited
返回指定对象的原始值。
Object
公共 常量
 常量定义方
 InheritedACTIVATE : String = "activate"
[static] 定义 activate 事件对象的 type 属性值。
Event
 InheritedADDED : String = "added"
[static] 定义 added 事件对象的 type 属性值。
Event
 InheritedADDED_TO_STAGE : String = "addedToStage"
[static] 定义 addedToStage 事件对象的 type 属性值。
Event
 InheritedCANCEL : String = "cancel"
[static] 定义 cancel 事件对象的 type 属性值。
Event
  CAPTION_TARGET_CREATED : String = "captionTargetCreated"
[static] CaptionTargetEvent.CAPTION_TARGET_CREATED 常量定义 captionTargetCreated 事件对象的 type 属性值。
CaptionTargetEvent
 InheritedCHANGE : String = "change"
[static] 定义 change 事件对象的 type 属性值。
Event
 InheritedCLOSE : String = "close"
[static] 定义 close 事件对象的 type 属性值。
Event
 InheritedCOMPLETE : String = "complete"
[static] 定义 complete 事件对象的 type 属性值。
Event
 InheritedCONNECT : String = "connect"
[static] 定义 connect 事件对象的 type 属性值。
Event
 InheritedDEACTIVATE : String = "deactivate"
[static] 定义 deactivate 事件对象的 type 属性值。
Event
 InheritedENTER_FRAME : String = "enterFrame"
[static] 定义 enterFrame 事件对象的 type 属性值。
Event
 InheritedFULLSCREEN : String = "fullScreen"
[static] 定义 fullScreen 事件对象的 type 属性值。
Event
 InheritedID3 : String = "id3"
[static] 定义 id3 事件对象的 type 属性值。
Event
 InheritedINIT : String = "init"
[static] 定义 init 事件对象的 type 属性值。
Event
 InheritedMOUSE_LEAVE : String = "mouseLeave"
[static] 定义 mouseLeave 事件对象的 type 属性值。
Event
 InheritedOPEN : String = "open"
[static] 定义 open 事件对象的 type 属性值。
Event
 InheritedREMOVED : String = "removed"
[static] 定义 removed 事件对象的 type 属性值。
Event
 InheritedREMOVED_FROM_STAGE : String = "removedFromStage"
[static] 定义 removedFromStage 事件对象的 type 属性值。
Event
 InheritedRENDER : String = "render"
[static] 定义 render 事件对象的 type 属性值。
Event
 InheritedRESIZE : String = "resize"
[static] 定义 resize 事件对象的 type 属性值。
Event
 InheritedSCROLL : String = "scroll"
[static] 定义 scroll 事件对象的 type 属性值。
Event
 InheritedSELECT : String = "select"
[static] 定义 select 事件对象的 type 属性值。
Event
 InheritedSOUND_COMPLETE : String = "soundComplete"
[static] 定义 soundComplete 事件对象的 type 属性值。
Event
 InheritedTAB_CHILDREN_CHANGE : String = "tabChildrenChange"
[static] 定义 tabChildrenChange 事件对象的 type 属性值。
Event
 InheritedTAB_ENABLED_CHANGE : String = "tabEnabledChange"
[static] 定义 tabEnabledChange 事件对象的 type 属性值。
Event
 InheritedTAB_INDEX_CHANGE : String = "tabIndexChange"
[static] 定义 tabIndexChange 事件对象的 type 属性值。
Event
 InheritedUNLOAD : String = "unload"
[static] 定义 unload 事件对象的 type 属性值。
Event
属性详细信息
captionTarget属性
captionTarget:DisplayObject  [read-write]

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9.0.28.0

来自于具有相同名称的 FLVPlaybackCaptioning 实例属性的字幕目标。


实现
    public function get captionTarget():DisplayObject
    public function set captionTarget(value:DisplayObject):void
构造函数详细信息
CaptionTargetEvent()构造函数
public function CaptionTargetEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, captionTarget:DisplayObject = null)

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9.0.28.0

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

参数
type:String — 事件的类型。 事件侦听器可以通过继承的 type 属性访问此信息。 只有一种类型的 captionTargetCreated 事件:CaptionTargetEvent.CAPTION_CHANGE
 
bubbles:Boolean (default = false) — 确定 Event 对象是否参与事件流的冒泡阶段。 事件侦听器可以通过继承的 bubbles 属性访问此信息。
 
cancelable:Boolean (default = false) — 确定是否可以取消 Event 对象。 事件侦听器可以通过继承的 cancelable 属性访问此信息。
 
captionTarget:DisplayObject (default = null) — 来自于 FLVPlaybackCaptioning 实例的 captionTarget 属性的显示对象。
常量详细信息
CAPTION_TARGET_CREATED常量
public static const CAPTION_TARGET_CREATED:String = "captionTargetCreated"

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9.0.28.0

CaptionTargetEvent.CAPTION_TARGET_CREATED 常量定义 captionTargetCreated 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
captionTarget来自于 FLVPlaybackCaptioning 实例的 captionTarget 属性的显示对象。





 

评论添加到页面后给我发送电子邮件 | 评论报告

当前页: http://livedocs.adobe.com/flash/9.0_cn/ActionScriptLangRefV3/fl/video/CaptionTargetEvent.html