fl.video
public class LayoutEvent
继承LayoutEvent Inheritance Event Inheritance Object
子类 AutoLayoutEvent

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

调整视频播放器大小和/或布置视频播放器时调度此事件。 布局有以下两种情况:

只有一种类型的 LayoutEvent 对象:LayoutEvent.LAYOUT

另请参见

LAYOUT



公共 属性
 属性定义方
 Inheritedbubbles : Boolean
[read-only] 指示事件是否为冒泡事件。
Event
 Inheritedcancelable : Boolean
[read-only] 指示是否可以阻止与事件相关联的行为。
Event
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
 InheritedcurrentTarget : Object
[read-only] 当前正在使用某个事件侦听器处理 Event 对象的对象。
Event
 InheritedeventPhase : uint
[read-only] 事件流中的当前阶段。
Event
  oldBounds : Rectangle
指示在事件发生前,目标的 x、y、width 和 height 属性的值。
LayoutEvent
  oldRegistrationBounds : Rectangle
指示在事件发生前,目标的 registrationX、registrationY、registrationWidth 和 registrationHeight 属性的值。
LayoutEvent
 Inheritedprototype : Object
[static] 对类或函数对象的原型对象的引用。
Object
 Inheritedtarget : Object
[read-only] 事件目标。
Event
 Inheritedtype : String
[read-only] 事件的类型。
Event
公共 方法
 方法定义方
  
LayoutEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, oldBounds:Rectangle = null, oldRegistrationBounds:Rectangle = null)
创建一个 Event 对象,其中包含有关 layout 事件的信息。
LayoutEvent
 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
 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
  LAYOUT : String = "layout"
[static] 定义 layout 事件对象的 type 属性值。
LayoutEvent
 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
属性详细信息
oldBounds属性
oldBounds:Rectangle  [read-write]

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

指示在事件发生前,目标的 xywidthheight 属性的值。


实现
    public function get oldBounds():Rectangle
    public function set oldBounds(value:Rectangle):void
oldRegistrationBounds属性 
oldRegistrationBounds:Rectangle  [read-write]

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

指示在事件发生前,目标的 registrationXregistrationYregistrationWidthregistrationHeight 属性的值。


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

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

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

参数
type:String — 事件的类型。 事件侦听器可以通过继承的 type 属性访问此信息。 只有一种类型的自动 layout 事件:LayoutEvent.LAYOUT
 
bubbles:Boolean (default = false) — 确定 Event 对象是否参与事件流的冒泡阶段。 事件侦听器可以通过继承的 bubbles 属性访问此信息。
 
cancelable:Boolean (default = false) — 确定是否可以取消 Event 对象。 事件侦听器可以通过继承的 cancelable 属性访问此信息。
 
oldBounds:Rectangle (default = null) — 指示在发生 layout 事件前,目标的 xywidthheight 属性的值。 事件侦听器可以通过 oldBounds 属性访问此信息。
 
oldRegistrationBounds:Rectangle (default = null) — 指示在发生 layout 事件前,目标的 registrationXregistrationYregistrationWidthregistrationHeight 属性的值。 事件侦听器可以通过 oldRegistrationBounds 属性访问此信息。

另请参见

常量详细信息
LAYOUT常量
public static const LAYOUT:String = "layout"

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

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

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
oldBoundslayout 事件发生前,目标的 xywidthheight 属性的值。
oldRegistrationBoundslayout 事件发生前,目标的 registrationXregistrationYregistrationWidthregistrationHeight 属性的值。

另请参见





 

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

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