#32002/2/24 9:59:13
随便抄的:
在下面的例子中, 关键字this 指的是 Circle 对象:
function Circle(radius){
this.radius = radius;
this.area = math.PI * radius * radius;
}
在下面的设计给某帧的语句中, 关键字 this 指的是当前电影夹:
//sets the alpha property of the current movie clip to 20.
this._alpha = 20;
在下面的包含在 onClipEvent 句柄中的语句中, 关键字 this 指的是当前电影夹:
//when the movie clip loads, a startDrag operation is initiated for the current movie clip.
onClipEvent (load) {
startDrag (this, true);
}