%
dim rs
dim sql
set rs=server.createobject("adodb.recordset")
set rs1=server.createobject("adodb.recordset")
%>
宇风多媒体---ActionScript字典
|
|
 Flash
MX ActionScript字典
|
|
|
Button(对象)
Flash动画中所有的按钮对象都是Button类的实例。在属性面板中可以为按钮对象命名,然后使用Button类的方法和属性来控制按钮对象的行为。按钮对象的名称被显示在电影浏览(Movie
Explorer)窗口和Actions面板的插入目标路径对话框中。
Button类继承了Object类的所有属性。
播放器:Flash
Player 6或更新
下面是Button类中所有属性和方法的列表。
|
方法
|
描述
|
|
Button.getDepth
|
返回一个按钮对象的层次深度
|
下面是此对象使用相应属性的列表。
|
属性
|
描述
|
|
Button._alpha
|
按钮对象的透明度
|
|
Button.enabled
|
表示一个按钮对象是否可用
|
|
Button._focusrect
|
表示一个已获得焦点的按钮对象否显示黄色外框
|
|
Button._height
|
按钮对象的高度,以像素为单位
|
|
Button._highquality
|
设置按钮对象的显示质量
|
|
Button._name
|
按钮对象的实例名
|
|
Button._parent
|
返回包含该按钮对象的父对象指针
|
|
Button._quality
|
设置按钮对象的显示质量
|
|
Button._rotation
|
按钮对象的旋转角度
|
|
Button._soundbuftime
|
声音缓冲区的大小(以秒计算)
|
|
Button._tabEnabled
|
表示按钮对象是否能被tab键选中
|
|
Button._tabIndex
|
表示按钮对象被tab键选中的次序
|
|
Button.target
|
按钮对象的目标路径
|
|
Button.trackAsMenu
|
表示其他的按钮对象是否能够接受鼠标放开事件
|
|
Button._url
|
用来创建按钮对象的SWF动画的URL地址
|
|
Button.useHandCursor
|
表示当鼠标在按钮对象上时鼠标是否以手形光标显示
|
|
Button._visible
|
设置按钮对象是否可见
|
|
Button._width
|
按钮对象的宽度,以像素为单位
|
|
Button._x
|
按钮对象的x坐标值
|
|
Button._xmouse
|
鼠标光标坐标相对于按钮对象的x坐标值
|
|
Button._xscale
|
按钮对象在x方向的缩放比例
|
|
Button._y
|
按钮对象的y坐标值
|
|
Button._ymouse
|
鼠标光标坐标相对于按钮对象的y坐标值
|
|
Button._yscale
|
按钮对象在y方向的缩放比例
|
Button实例的事件概要
Button._alpha
|
语法
|
MyButton._alpha
|
|
参数
|
无
|
|
说明
|
属性。按钮对象的透明度,有效值范围为0到100。为0时,按钮将不可见,但是仍然是可用的。
|
|
播放器
|
Flash
6或更新版本
|
|
示例
|
下边的例子将名为star的按钮对象的透明度设为30%
on(release)
{
star._alpha
= 30;
}
|
|
参看
|
无转载请注明出处:宇风多媒体
|
Button.enabled
|
语法
|
MyButton.enabled
|
|
参数
|
无
|
|
说明
|
属性 。设置一个按钮对象是否可用,默认值为true,即可用
|
|
播放器
|
Flash
6或更新版本
|
|
示例
|
myButton.enabled
= true;
|
|
参看
|
无
|
Button._focusrect
|
语法
|
myButton._focusrect
|
|
参数
|
无
|
|
说明
|
属性 。设置当按钮聚焦时,是否显示黄色边框。该属性优先于全局的_focusrect属性。
|
|
播放器
|
Flash
6或更新版本
|
|
示例
|
无
|
|
参看
|
无
|
Button.getDepth
|
语法
|
myButton.getDepth()
|
|
参数
|
无
|
|
说明
|
属性。 返回按钮对象的深度值,为一个整数
|
|
播放器
|
Flash
6或更新版本
|
|
示例
|
无
|
|
参看
|
无
|
Button._height
|
语法
|
myButton._height
|
|
参数
|
无
|
|
说明
|
属性 。按钮对象的高度,以像素为单位
|
|
播放器
|
Flash
6或更新版本
|
|
示例
|
当单击鼠标时,下面的例子设置了按钮对象myButton的高度和宽度
On(release){
myButton._width = 200;
myButton._height = 200;
}
|
|
参看
|
无
|
第一、二、三、四页
选自《循序渐进——Flash
MX基础与技巧》随书光盘
转载请保留链结
|
|
|
|
| |
<%
set rs=nothing
conn.close
set conn=nothing
%>