发信人: younger.zz(Gori)
整理人: yufif(2003-06-02 09:03:15), 站内信件
|
Button.onPress
详细说明
事件处理函数;当按下按钮时调用。必须定义一个在调用该事件时执行的函数。
语法规范
myButton.onPress
实例示范
下面的示例为 onPress 方法定义一个函数,该函数将 trace 动作发送到输出窗口。
myButton.onPress = function () {
trace ("myButton被按下!");
};
Button.onRelease
详细说明
事件处理函数;当释放按钮时调用。
语法规范
myButton.onRelease
实例示范
下面的示例为 onRelease 方法定义一个函数,该函数将 trace 动作发送到输出窗口。
myButton.onRelease = function () {
trace ("onRelease called");
};
----
》是什么让我成熟?是什么让我不哭?《
|
|