2004/08/11 | TextField onKillFocus 的死循环
类别(Actionscript) | 评论(0) | 阅读(108) | 发表于 14:07
txt.onKillFocus = function() {
Selection.setFocus(null);
};

出错信息:
256 levels of recursion were exceeded in one action list.
This is probably an infinite loop.
Further execution of actions has been disabled in this movie.

这说明onKillFocus是在失去焦点这个动作发生之前触发的,要不然,他就该叫onKillFocused。
0

评论Comments