![]() ![]() | |
Flash Player 6。
my_mc.onEnterFrame = function() {
// 此处是您的语句
}
无。
无。
事件处理函数;以 SWF 文件的帧频持续调用。首先处理与 enterFrame 剪辑事件关联的动作,然后才处理附加到受影响帧的所有帧动作。
必须定义一个在调用事件处理函数时执行的函数。
下面的示例为 onEnterFrame 方法定义一个函数,该函数将 trace() 动作发送到“输出”面板。
my_mc.onEnterFrame = function () {
trace ("onEnterFrame called");
};
![]() ![]() | |