mx.core
接口public interface IButton extends IUIComponent , IFlexDisplayObject , IBitmapDrawable , IEventDispatcher
实现器 Button

IButton 接口是一个标记接口,指示组件用作按钮。



公共属性
 属性定义方
 InheritedaccessibilityProperties : AccessibilityProperties
此显示对象的当前辅助功能选项。
IFlexDisplayObject
 Inheritedalpha : Number
指示指定对象的 Alpha 透明度值。
IFlexDisplayObject
 InheritedbaselinePosition : Number
[只读 (read-only)] 组件第一行文本的基线的 y 坐标。
IUIComponent
 InheritedblendMode : String
BlendMode 类中的一个值,用于指定要使用的混合模式。
IFlexDisplayObject
 InheritedcacheAsBitmap : Boolean
如果设置为 true,则 Flash Player 或 Adobe AIR 将缓存显示对象的内部位图表示形式。
IFlexDisplayObject
 Inheriteddocument : Object
对与此组件关联的文档对象的引用。
IUIComponent
  emphasized : Boolean
当 Button 控件处于弹起状态并且 emphasized 设置为 true 时,在该控件周围绘制宽边框。
IButton
 Inheritedenabled : Boolean
组件是否可以接受用户交互。
IUIComponent
 InheritedexplicitHeight : Number
在组件坐标中显式指定的组件高度(以像素为单位)。
IUIComponent
 InheritedexplicitMaxHeight : Number
[只读 (read-only)] 在组件坐标中指定组件最大高度的数字(以像素为单位)。
IUIComponent
 InheritedexplicitMaxWidth : Number
[只读 (read-only)] 在组件坐标中指定组件最大宽度的数字(以像素为单位)。
IUIComponent
 InheritedexplicitMinHeight : Number
[只读 (read-only)] 在组件坐标中指定组件最小高度的数字(以像素为单位)。
IUIComponent
 InheritedexplicitMinWidth : Number
[只读 (read-only)] 在组件坐标中指定组件最小宽度的数字(以像素为单位)。
IUIComponent
 InheritedexplicitWidth : Number
在组件坐标中显式指定的组件宽度(以像素为单位)。
IUIComponent
 Inheritedfilters : Array
包含当前与显示对象关联的每个滤镜对象的索引数组。
IFlexDisplayObject
 InheritedfocusPane : Sprite
在组件中共享并用作绘图焦点叠加层的单个 Sprite 对象。
IUIComponent
 Inheritedheight : Number
指示显示对象的高度,以像素为单位。
IFlexDisplayObject
 InheritedincludeInLayout : Boolean
指定此组件是否包含在父容器的布局中。
IUIComponent
 InheritedisPopUp : Boolean
PopUpManager 将其设置为 true 以指示已弹出该组件。
IUIComponent
 InheritedloaderInfo : LoaderInfo
[只读 (read-only)] 返回一个 LoaderInfo 对象,其中包含加载此显示对象所属的文件的相关信息。
IFlexDisplayObject
 Inheritedmask : DisplayObject
调用显示对象被指定的 mask 对象遮罩。
IFlexDisplayObject
 InheritedmaxHeight : Number
[只读 (read-only)] 在组件坐标中指定组件最大高度的数字(以像素为单位)。
IUIComponent
 InheritedmaxWidth : Number
[只读 (read-only)] 在组件坐标中指定组件最大宽度的数字(以像素为单位)。
IUIComponent
 InheritedmeasuredHeight : Number
[只读 (read-only)] 此对象的测量高度。
IFlexDisplayObject
 InheritedmeasuredMinHeight : Number
组件的默认最小高度(以像素为单位)。
IUIComponent
 InheritedmeasuredMinWidth : Number
组件的默认最小宽度(以像素为单位)。
IUIComponent
 InheritedmeasuredWidth : Number
[只读 (read-only)] 此对象的测量宽度。
IFlexDisplayObject
 InheritedminHeight : Number
[只读 (read-only)] 在组件坐标中指定组件最小高度的数字(以像素为单位)。
IUIComponent
 InheritedminWidth : Number
[只读 (read-only)] 在组件坐标中指定组件最小宽度的数字(以像素为单位)。
IUIComponent
 InheritedmouseX : Number
[只读 (read-only)] 指示鼠标位置的 x 坐标,以像素为单位。
IFlexDisplayObject
 InheritedmouseY : Number
[只读 (read-only)] 指示鼠标位置的 y 坐标,以像素为单位。
IFlexDisplayObject
 Inheritedname : String
指示 DisplayObject 的实例名称。
IFlexDisplayObject
 InheritedopaqueBackground : Object
指定显示对象是否由于具有某种背景颜色而不透明。
IFlexDisplayObject
 Inheritedowner : DisplayObjectContainer
通常为此组件的父容器。
IUIComponent
 Inheritedparent : DisplayObjectContainer
[只读 (read-only)] 指示包含此显示对象的 DisplayObjectContainer 对象。
IFlexDisplayObject
 InheritedpercentHeight : Number
以组件父项大小百分比的方式指定组件高度的数字。
IUIComponent
 InheritedpercentWidth : Number
以组件父项大小百分比形式指定其宽度的数字。
IUIComponent
 Inheritedroot : DisplayObject
[只读 (read-only)] 此处介绍的几种方法通常只位于 IDisplayObject 中,但为了具有向后兼容性,在 IFlexDisplayObject 中还必须直接包含它们,因此这些方法存在于此独立的包含文件中。
IFlexDisplayObject
 Inheritedrotation : Number
指示 DisplayObject 实例距其原始方向的旋转程度,以度为单位。
IFlexDisplayObject
 Inheritedscale9Grid : Rectangle
当前有效的缩放网格。
IFlexDisplayObject
 InheritedscaleX : Number
指示从注册点开始应用的对象的水平缩放比例(百分比)。
IFlexDisplayObject
 InheritedscaleY : Number
指示从对象注册点开始应用的对象的垂直缩放比例(百分比)。
IFlexDisplayObject
 InheritedscrollRect : Rectangle
显示对象的滚动矩形范围。
IFlexDisplayObject
 Inheritedstage : Stage
[只读 (read-only)] 显示对象的舞台。
IFlexDisplayObject
 InheritedsystemManager : ISystemManager
对此组件的 SystemManager 对象的引用。
IUIComponent
 Inheritedtransform : Transform
一个对象,具有与显示对象的矩阵、颜色转换和像素范围有关的属性。
IFlexDisplayObject
 InheritedtweeningProperties : Array
由 EffectManager 使用。
IUIComponent
 Inheritedvisible : Boolean
显示对象是否可见。
IFlexDisplayObject
 Inheritedwidth : Number
指示显示对象的宽度,以像素为单位。
IFlexDisplayObject
 Inheritedx : Number
指示 DisplayObject 实例相对于父级 DisplayObjectContainer 本地坐标的 x 坐标。
IFlexDisplayObject
 Inheritedy : Number
指示 DisplayObject 实例相对于父级 DisplayObjectContainer 本地坐标的 y 坐标。
IFlexDisplayObject
公共方法
 方法定义方
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。
IEventDispatcher
  
callLater(method:Function, args:Array = null):void
排队稍后调用的函数。
IButton
 Inherited
将事件调度到事件流中。
IEventDispatcher
 Inherited
getBounds(targetCoordinateSpace:DisplayObject):Rectangle
返回一个矩形,该矩形定义相对于 targetCoordinateSpace 对象坐标系的显示对象区域。
IFlexDisplayObject
 Inherited
确定是使用显式高度还是测量高度的一种简便方法
IUIComponent
 Inherited
确定是使用显式宽度还是测量宽度的一种简便方法
IUIComponent
 Inherited
getRect(targetCoordinateSpace:DisplayObject):Rectangle
返回一个矩形,该矩形根据 targetCoordinateSpace 参数定义的坐标系定义显示对象的边界,但不包括形状上的任何笔触。
IFlexDisplayObject
 Inherited
将 point 对象从舞台(全局)坐标转换为显示对象的(本地)坐标。
IFlexDisplayObject
 Inherited
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。
IEventDispatcher
 Inherited
计算显示对象,以确定它是否与 obj 显示对象重叠或相交。
IFlexDisplayObject
 Inherited
hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean
计算显示对象,以确定它是否与 x 和 y 参数指定的点重叠或相交。
IFlexDisplayObject
 Inherited
初始化对象。
IUIComponent
 Inherited
将 point 对象从显示对象的(本地)坐标转换为舞台(全局)坐标。
IFlexDisplayObject
 Inherited
将此对象移动到指定的 x 和 y 坐标。
IFlexDisplayObject
 Inherited
如果 owner 属性链从 child 指向此 UIComponent,则返回 true。
IUIComponent
 Inherited
当在父项中添加或删除 UIComponent 对象时由 Flex 调用。
IUIComponent
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
从 EventDispatcher 对象中删除侦听器。
IEventDispatcher
 Inherited
setActualSize(newWidth:Number, newHeight:Number):void
设置此对象的实际大小。
IFlexDisplayObject
 Inherited
setVisible(value:Boolean, noEvent:Boolean = false):void
当 visible 属性发生更改时调用。
IUIComponent
 Inherited
检查是否用此 EventDispatcher 对象或其任何始祖为指定事件类型注册了事件侦听器。
IEventDispatcher
属性详细信息
emphasized属性
emphasized:Boolean  [读写]

当 Button 控件处于弹起状态并且 emphasized 设置为 true 时,在该控件周围绘制宽边框。



实现
    public function get emphasized():Boolean
    public function set emphasized(value:Boolean):void
方法详细信息
callLater()方法
public function callLater(method:Function, args:Array = null):void

排队稍后调用的函数。

在每次更新屏幕之前,Flash Player 或 AIR 都会调用为更新预定的函数集。有时,应在下次更新时调用函数,以执行为当前更新预定的其余代码。部分功能(如效果)可能会延迟排队的函数,直到功能完成为止。

参数

method:Function — 对稍后执行的方法的引用。
 
args:Array (default = null) — 对象 Array,给出要传递给此方法的参数。